How do I put/remove my class into VM thru code ?

Posted on 2002-06-19
Last Modified: 2010-03-31
I have a jar file called test.jar.
I will set the jar path in Classpath.

How do I use java code to put/remove that jar
to/from VM ? So, I don't have to reboot my PC.
Question by:j_script
LVL 35

Expert Comment

ID: 7094124
 What exactly do you mean? You do not have to restart your computer every time you change your classpath. It should pick it up automatically every time you try to run a java application.

  Hope it helps.

Author Comment

ID: 7094640
OK ! Then, how about removing it from the VM ?
LVL 92

Accepted Solution

objects earned 200 total points
ID: 7094647
afaik you have to restart the VM.
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.


Author Comment

ID: 7094778
How do I restart VM ?
LVL 92

Expert Comment

ID: 7094785
If its an applet then restart the browser.
If it's an application then just restart the application.
If it's a servlet then restart the container.

Expert Comment

ID: 8581096

EE Admin

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ArrayIndexOutOfBoundException 9 80
Cipher Configuration on Apache HTTPD 4 62
Oracle SQL syntax check  without executing 6 50
SHA2 certs for IIS AND Java? 2 79
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
The viewer will learn how to implement Singleton Design Pattern in Java.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now