• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help with JarURLConnection

 
Maki Jav
Ranch Hand
Posts: 447
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The problem is that I want to get jar file for classes, no matter where it is located, and make it available to them; so that calling Jar classes from those classes is no problem. We do it all the time, but the jar file is usually in classpath. how to use Jar file not in class path? I have come across JarRunner and JarLoader classes, which one can find in Sun's tutorial about jar files.
It uses URL, JarUrlConnection and Class.load() to run executable jar file whether they are on the net or in your system.
eg:
I used:
java JarRunner file:/c:/Cafe/medical.jar
to run it from e:\myfolder
I think something similar can be done, right?

Thanx in Advance,

Maki Jav
 
Maki Jav
Ranch Hand
Posts: 447
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is my question too unclear or too tough or what?
I am waiting for a reply guys.


Thanx in Advance,

Maki Jav
[ March 25, 2005: Message edited by: Maki Jav ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!