Solved

Portable JRE that can be run from USB flash drive

Posted on 2003-11-17
7
4,593 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
[X]
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
7 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 75 total points
ID: 9765405
>>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
ID: 9766315
Can't you copy the JRE directory onto your flash drive and run from there?
0
 

Author Comment

by:jamesstaylor
ID: 9766546
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
ID: 9766578
>>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
ID: 9768107
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

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

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

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…
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 will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
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:

617 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