Current Position:Home > How to load jar file in one shot?

How to load jar file in one shot?

Update:10-11Source: network consolidation
Advertisement
I have a Java app refers some jar files on remote location. Loading class by class is very time consuming.
Is it possible to load the jar files as a whole? like what applet does?
Tried URLClass loading, even run java -jar, still those load class on demand.
I want the jar file loaded only one time into JVM.

The Best Answer

Advertisement
I don't really understand. When you load a jar file using URLClassLoader it brings over the jar file and extracts the class files from the jar file. It does not bring over the class files as individual class files. If you mean you want to only ever bring over the jar file once then why not just copy the jar file using URLConnection and save it to disk. You can then load the jar file from disk each time the program starts.
  • How to load jar file in one shot? Update:10-11

    I have a Java app refers some jar files on remote location. Loading class by class is very time consuming. Is it possible to load the jar files as a whole? like what applet does? Tried URLClass loading, even run java -jar, still those load class on d

  • Loading jar files at execution time via URLClassLoader Update:10-11

    Hello�All, I'm�making�a�Java�SQL�Client.�I�have�practicaly�all�basic�work�done,�now�I'm�trying�to�improve�it. One�thing�I�want�it�to�do�is�to�allow�the�user�to�specify�new�drivers�and�to�use�them�to�make�new�connections.�To�do�this�I�have�this�class:

  • How to dynamically load jar files - limiting scope to that thread Update:10-11

    Dynamically loading jar files has been discussed a lot. I have read a quite a few posts, articles, and demo code for doing just that. However, I have yet to find a solution to my problem. Most people modify their system class loader and are happy. I

  • How to load jar files from remote location Update:10-11

    Hi all, I am trying to load jar files from remote server, from a servlet which is running on OC4j. For doing this,First I am getting ClassLoader by using ClassLoader.getSystemClassLoader() and then type casting it to URLClassLoader. But by doing it I

  • How to load jar file in oracle 9i??? Update:11-30

    Hi Friends, Can you help me, how to load jar file oracle 9i? I have to tried to load in 10g using loadjava command but it's not working in oracle 9i because the loadjava batch file itself is not there in oralce 9i. Is there any other way then pls let

  • Load jar file into Oracle db 10.1.0.2.0. Update:11-30

    Hi, I am trying to create a Java Stored procedure that is dependent on some other classes. The java source doesn't compile since it cannot find the imported libs. How can I load jar files into the database so I can get my java source to compile? I ha

  • Urgent: Does dbms_java package is required  to load jar file into database? Update:11-30

    Hi, It's a urgent request. I am trying to install jar file that was created by JDeveloper into database using loadjava. But it is giving so many errors. Do we need to install dbms_java package in order to load jar files into the database? Thanks.Than

  • Load jar file Update:11-30

    Hi I use EBS r12, i try to load jar file, i put it in $OA_JAVA/oracle/apps/fnd/jar and run adautocfg.sh, but the application not see the jar file? Is there any solution for that? ThanksRead from application developers guide for ebs developers about h

  • Load .JAR file using SQL Developer Update:11-30

    Hi, I have couple of .JAR files on my local machine which has to be loaded on to the oracle server (11g). I tried using the load Java functionality in the SQL Developer but realised one could load a java class only if you had the source code. Is my u

  • How to load jar file using SQL Developer Update:11-30

    Dear All, I need urgent help to load mytest.jar to the database using SQL Developer. I am able to load individual java classes to the database using SQL developers, but i could not load JAR files. Please help me any one know how to do this using SQL