Solved

Portable JRE that can be run from USB flash drive

Posted on 2003-11-17
7
4,583 Views
Last Modified: 2012-05-04
I have written a lot of small utilities in java that I store on my USB flash drive.  The problem is that not all of the computers I work on have a jre.  I have been putting the JRE installer on there and installing it on the machine everytime I need to use one of my utillities.  My question is is the JRE self containing?  Does it put any dll's in the System32 directory, or anywhere else?  If yes, then is there a small stripped down version of the JRE that will run from a single directory?
0
Comment
Question by:jamesstaylor
7 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 75 total points
Comment Utility
>>My question is is the JRE self containing?  

No.

>>Does it put any dll's in the System32 directory

Yes - the JVM *is* a dll.

Have you thought about using a Linux RAM disk (Knoppix)? That way you should be able to boot up the machine from CD and get to the Java programs on the USB drive.
0
 
LVL 3

Expert Comment

by:savalou
Comment Utility
Can't you copy the JRE directory onto your flash drive and run from there?
0
 

Author Comment

by:jamesstaylor
Comment Utility
If I copy the jvm.dll into the jre directory, will it run from my flash... I really should just fiddle with this myself and figure it out, but I thought I would post a quick question.   Answering the Knoppix question:  I use Knoppix right now, but I want something that I can carry in my pocket and always have with me.  I played around with setting up my USB Flash drive to boot to knoppix, but  a lot of my java utilities have been written specifically to handle windows problems.  So Linux is out of the question for this problem.
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
>>but I want something that I can carry in my pocket

Have you got pockets too small to fit a CD in? ;-) But, point taken about

>>my java utilities have been written specifically to handle windows problems

What are these, out of interest?
0
 
LVL 92

Assisted Solution

by:objects
objects earned 75 total points
Comment Utility
Easiest would probably be to just setup a batch on your flash drive to do a silent install, and just run that if no jre is installed. Fairly painless, and would only need to be done once for each box you found without VM.

Something like:

start /w jre_install.exe /s /v "/qn ADDLOCAL=ALL IEXPLORER=1 INSTALLDIR


0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

744 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

16 Experts available now in Live!

Get 1:1 Help Now