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...
lordy - 12 Jul 2006 16:32 GMT
> 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
http://mindprod.com/jgloss/jar.html#CLASSPATH
Lordy
Andrew T. - 12 Jul 2006 16:35 GMT
misra.mani...@gmail.com wrote:
...
> ...when I try to run my application, say myApp.jar
> form cmd, it gives following error-
>
> java.lang.NoClassDefFoundError: com//ThirdPartyApp/abc
Where did that second '/' after com come from?
Why do you have a package called ThirdPartyApp?
Why is your class called 'abc'?
Andrew T.