Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jar files???

 
Suka Hati
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i mean to say path of the dorectory containg jar!!!

Hope this solves your problem.

bye.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic