aspose file tools*
The moose likes Beginning Java and the fly likes jar files??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "jar files???" Watch "jar files???" New topic
Author

jar files???

Suka Hati
Ranch Hand

Joined: Oct 28, 2004
Posts: 56
hi,
i have 1 class which will call other classes where this classes is in a jar files. however both are in the same directory. when i try to compile my class(the calling class), i get an error says that it cannot resolve symbol.
the error was at the line where i call the classes in jar file. how to handle this error?

im using windows 98 and TextPad as the editor..
harry pt
Greenhorn

Joined: Jan 12, 2005
Posts: 2
Hi Suka,

Make sure that the directory containing the jar file
is in the classpath variable of your system. Then
only it will identify the classes in the jar.

you can add the directory containing jar in the classpath variable
of your system.
Let me know if it works.

Good luck!!!
harry pt
Greenhorn

Joined: Jan 12, 2005
Posts: 2
i mean to say path of the dorectory containg jar!!!

Hope this solves your problem.

bye.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jar files???
 
Similar Threads
java.lang.NoClassDefFoundError When trying to load a class which is dependant on a class inside jar
jar files
Weblogic - cannot instantiate weblogic.jndi.WLInitialContextFactory
How to include third party jar files with in manifest file.
implementation and interfaces in seperate jar files