Meaningless Drivel is fun!*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "jar files???" Watch "jar files???" New topic

jar files???

Suka Hati
Ranch Hand

Joined: Oct 28, 2004
Posts: 56
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

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

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

Hope this solves your problem.

I agree. Here's the link:
subject: jar files???
Similar Threads
How to include third party jar files with in manifest file.
implementation and interfaces in seperate jar files
java.lang.NoClassDefFoundError When trying to load a class which is dependant on a class inside jar
Weblogic - cannot instantiate weblogic.jndi.WLInitialContextFactory
jar files