Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

JRE from zip file

Thread view: 
Samik R - 23 Dec 2005 02:14 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.