• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

JRE install

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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,
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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. )
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic