M
misra.manisha
I need to set the CLASSPATH environment variable to include a 3rd party
jar that I want with my application. Lets say that the jar is is in the
directory-
C:\ThirdPartyApp\Useme.1.2.3.jar
(I use such a name 'coz my jar has a similar name - multiple ".",
before the actual extension)
When I add this to my CLASSPATH from cmd as
set CLASSPATH=%CLASSPATH%;C:\ThirdPartyApp\Useme.1.2.3.jar;
it appends the jar. But when I try to run my application, say myApp.jar
form cmd, it gives following error-
java.lang.NoClassDefFoundError: com//ThirdPartyApp/abc
Now, this class is definitely present in the Useme.1.2.3.jar....
Where am I going wrong??
Also, if I set the CLASSPATH from cmd, I need to do that every time I
open the cmd window... I want to set the CLASSPATH permanently to
include my jar.... Should I create a variable called CLASSPATH in my
WinXP system's environment variable?
Please help...
jar that I want with my application. Lets say that the jar is is in the
directory-
C:\ThirdPartyApp\Useme.1.2.3.jar
(I use such a name 'coz my jar has a similar name - multiple ".",
before the actual extension)
When I add this to my CLASSPATH from cmd as
set CLASSPATH=%CLASSPATH%;C:\ThirdPartyApp\Useme.1.2.3.jar;
it appends the jar. But when I try to run my application, say myApp.jar
form cmd, it gives following error-
java.lang.NoClassDefFoundError: com//ThirdPartyApp/abc
Now, this class is definitely present in the Useme.1.2.3.jar....
Where am I going wrong??
Also, if I set the CLASSPATH from cmd, I need to do that every time I
open the cmd window... I want to set the CLASSPATH permanently to
include my jar.... Should I create a variable called CLASSPATH in my
WinXP system's environment variable?
Please help...