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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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.
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.


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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
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…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

728 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