If you are adding classpath by using the -cp %classpath%;c:\your_dir on the command line, it may be that the classpath environment variable has an embedded space which will terminate the definition of the classpath prematurely and the java.exe won't find your class as it will interpret the remainder of the classpath as the class to be interpreted. This is solved either by using quotes around the path in the Classpath environment variable or, if on a Windows machine, by using the 8.3 short name for the directories as shown by issuing the following command from the command prompt: dir /x
Perhaps a more detailed description of the error and/or what you are executing would help. Best Regards, Nat Tuesday, December 31, 2002 11:58 PM To: "JDJList" <[EMAIL PROTECTED]> cc: From: "Lambok Sianturi" <[EMAIL PROTECTED]> Subject: [jdjlist] CLASSPATH Why if I add a CLASSPATH variable, all my codes will not work. Even a 'Hello world' code will not run if I add it. Have someone know how to workaround this? I have J2SDK 1.4.0 installed in my computer. Thanks in advance Lambok Sianturi ____________________________________________________ To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm Be respectful! Clean up your posts before replying ____________________________________________________ ____________________________________________________ To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm Be respectful! Clean up your posts before replying ____________________________________________________
