Hello,
If I just zip the jre directory from one machine and unzip it in another machine, and set the path, classpath etc, will my java program run ok?
I am planning to run my java program in a machine where I am not able to install JRE (not enough previlege and other issues). Was wondering if I will be able to run my program.
Thanks.

Signature
Please reply to the newsgroup.
To mail me directly, replace 'K' with 'e'.
Dave Glasser - 23 Dec 2005 03:25 GMT
Samik R <samik@frKKshKll.org> wrote on Thu, 22 Dec 2005 20:14:37 -0600
in comp.lang.java.programmer:
>Hello,
>
>If I just zip the jre directory from one machine and unzip it in another machine, and set the path, classpath etc, will my java program run ok?
>I am planning to run my java program in a machine where I am not able to install JRE (not enough previlege and other issues). Was wondering if I will be able to run my program.
I did it successfully once, using JDK 1.3, I think. YMMV.

Signature
Check out QueryForm, a free, open source, Java/Swing-based
front end for relational databases.
http://qform.sourceforge.net
If you're a musician, check out RPitch Relative Pitch
Ear Training Software.
http://rpitch.sourceforge.net
Roedy Green - 23 Dec 2005 04:36 GMT
>If I just zip the jre directory from one machine and unzip it in another machine, and set the path, classpath etc, will my java program run ok?
No. You won't get the registry set up. Copy the JRE download and
install. Get the big one.
see http://mindprod.com/jgloss/jre.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Samik R - 23 Dec 2005 06:16 GMT
>>If I just zip the jre directory from one machine and unzip it in another machine, and set the path, classpath etc, will my java program run ok?
>
> No. You won't get the registry set up. Copy the JRE download and
> install. Get the big one.
> see http://mindprod.com/jgloss/jre.html
Thanks for the comments. I did it successfully just now with JRE_1.5.0_05.
While running, I guess, it does not require the registry settings.

Signature
Please reply to the newsgroup.
To mail me directly, replace 'K' with 'e'.
Thomas Kellerer - 23 Dec 2005 09:11 GMT
Samik R wrote on 23.12.2005 07:16:
>>> If I just zip the jre directory from one machine and unzip it in
>>> another machine, and set the path, classpath etc, will my java
[quoted text clipped - 6 lines]
> Thanks for the comments. I did it successfully just now with JRE_1.5.0_05.
> While running, I guess, it does not require the registry settings.
The registry entries are only required for the browser plugin, for some
.exe wrappers that use the registry to search for the JDK/JRE, and it
enables you to doubleclick executable jar files.
You will always be able to start a Java program without the registry
setting by simply calling java.exe supplying the necessary parameters.
Thomas
Roedy Green - 23 Dec 2005 12:40 GMT
>Thanks for the comments. I did it successfully just now with JRE_1.5.0_05.
>While running, I guess, it does not require the registry settings.
the Java console in the control panel will be screwed up.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Chris Uppal - 23 Dec 2005 08:51 GMT
> If I just zip the jre directory from one machine and unzip it in another
> machine, and set the path, classpath etc, will my java program run ok?
That should work. In believe that is the generally recommended way to ship a
Java-based application since it avoids dependency on the end-user's set up.
-- chris
Dave Glasser - 23 Dec 2005 15:09 GMT
"Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> wrote on Fri,
23 Dec 2005 08:51:14 -0000 in comp.lang.java.programmer:
>> If I just zip the jre directory from one machine and unzip it in another
>> machine, and set the path, classpath etc, will my java program run ok?
>
>That should work. In believe that is the generally recommended way to ship a
>Java-based application since it avoids dependency on the end-user's set up.
In my case, I put both the JDK and a Swing app on a network file
server, along with a .bat file to launch the app. Users only needed to
double-click the icon for the .bat file and they had the app up and
running, with no code at all deployed to their PCs. It made it very
easy to deploy updates to the Swing app.

Signature
Check out QueryForm, a free, open source, Java/Swing-based
front end for relational databases.
http://qform.sourceforge.net
If you're a musician, check out RPitch Relative Pitch
Ear Training Software.
http://rpitch.sourceforge.net