Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JRE install

 
Tmmet Johnson
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 15367
40
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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. )
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic