File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes JRE install Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JRE install" Watch "JRE install" New topic
Author

JRE install

Tmmet Johnson
Ranch Hand

Joined: Nov 03, 2004
Posts: 56
Hi,
I have a question.
I want to install JRE in two machines.
I installed in one machine and then,copied the newly created JRE folder and placed in second machine's C drive.

I was able to run my java applications from both the machine.I thought the java application will not work in second machine as I didn't install JRE,but,copied jre folder.

My questions are

1. Will copied jre files works as expected?

2. What does the installation do?Does it updates the registry?

3. When I do the upgrade in machine 2, what will happen in both cases?
4.What is the drawback in copiying jre folders and using it?


Thanks in advance,
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

1. Will copied jre files works as expected?
I don't know, but just copying the JRE folder is not how the JRE was designed to work. So if some things don't work as they should, don't be surprised.

2. What does the installation do? Does it updates the registry?
Yes it does write some things into the Windows registry.

3. When I do the upgrade in machine 2, what will happen in both cases?
I don't know.

4. What is the drawback in copiying jre folders and using it?
That you're not installing it the way it's supposed to be installed, so you can't be sure if everything will work as it should.

Just use the installer instead of copying directories.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Jesper de Jong:
...you're not installing it the way it's supposed to be installed, so you can't be sure if everything will work as it should.

Just use the installer instead of copying directories.

Exactly! Copy over the setup.exe and run that.

(Or just switch to Apple. )


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
Don't get me started about those stupid light bulbs.
 
subject: JRE install
 
Similar Threads
rt.jar file questions (import, size, redundancy)
JDK 1.6.0_20 download
How to - Advanced Integration Existing Webapp
IS 1.6 JRE Required
Can a java application be put on a server