VMware {code} Community
Dikang
Contributor
Contributor

Issues when setting up for java development (follow the Developer's Setup Guide)

hi guys,

i meet some problems when i try to set up the enviroment for java development. i follow the developer's setup guide,

use the jdk1.5, axis1.4, visdk2.5, ubuntu9.04, and set enviroment variables as said in the document.

but when i type

java -Djavax.net.ssl.trustStore=<keystore-path> <package-hierarchy-classname> <server-url>

<username> <password>

to test the enviroment, it says: Exception in thread "main" java.lang.NoClassDefFoundError: com/vmware/vimsample/simpleclient/SimpleClient

anyone can help me?

Thanks

Stephen

0 Kudos
2 Replies
admin
Immortal
Immortal

Please check that you complied the files or not. Have you followed the steps mentioned in the section "Generating Stubs and Compiling Classes" as well? The error you mentioned is received when class files are not found at the specified path.

0 Kudos
LarryZio
Contributor
Contributor

This path looks odd to me:

com/vmware/vimsample/simpleclient/SimpleClient

Which version of the SDK are you using? For SDK 4.0, the SimpleClient.java class is contained in the com.vmware.samples.general package. Try double-checking your classpath and path settings, and run the build.sh.

0 Kudos