Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Query on JDK installer?

 
Satya Maheshwari
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wanted to know if explicitly installing JDK on a machine is any different from copying the JDK folder to it from a machine where that JDK was installed?
 
Prashant Langade
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Obviously yes..
You need to install it separately.Copying only the folder doesn't work.

Prashant
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The explicit installation might do additional things like setup the Path & possible create an uninstall link.
Other than that - I really don't think there is any difference in the two approaches.
 
Satya Maheshwari
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prashant Langade wrote:Obviously yes..
You need to install it separately.Copying only the folder doesn't work.

Prashant


Ok. But what additional does the installer do?
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prashant Langade wrote:Obviously yes..
You need to install it separately.Copying only the folder doesn't work.

Prashant


Nopes. Coping Just the folder works!!
 
Campbell Ritchie
Sheriff
Posts: 48418
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Obviously the only thing required for the folder to work is its PATH environment entrz.
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Obviously the only thing required for the folder to work is its PATH environment entrz.


and if you compile the way I was taught in college - by going into the bin directory you might not even have to do that!!!
 
Rob Spoor
Sheriff
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The installation also updates your registry. Now I don't know if it only needs to do that to be able to use C:\WINDOWS\system32\java.exe and C:\WINDOWS\system32\javaw.exe, which are actually nothing more than wrappers that call the same executable from one of the actually installed JREs, but I still wouldn't try the simple copying myself, to be honest.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic