• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to add jar file in the application classpath  RSS feed

 
madhu madineni
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi



Will you please explain me how to add jar file in the application classpath?
 
Mourouganandame Arunachalam
Ranch Hand
Posts: 398
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mathu,

In your application, you just place the jar under WEB-INF\lib folder. That's it.

If you running your class from command prompt which refers the classes inside the jar, then you need to manually add the jar file in the classpath variable.

for example, in windows,



(assuming your jar is under c:\utility folder).

Hope this helps.

Mourougan
[ November 27, 2008: Message edited by: Mourouganandame Arunachalam ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!