permaculture playing cards*
The moose likes Beginning Java and the fly likes Query on JDK installer? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Query on JDK installer?" Watch "Query on JDK installer?" New topic
Author

Query on JDK installer?

Satya Maheshwari
Ranch Hand

Joined: Jan 01, 2007
Posts: 368
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?


Thanks and Regards
Prashant Langade
Ranch Hand

Joined: Jul 01, 2009
Posts: 71
Obviously yes..
You need to install it separately.Copying only the folder doesn't work.

Prashant
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 597

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.


Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
Satya Maheshwari
Ranch Hand

Joined: Jan 01, 2007
Posts: 368
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

Joined: Feb 08, 2009
Posts: 597

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

Joined: Oct 13, 2005
Posts: 38057
    
  22
Obviously the only thing required for the folder to work is its PATH environment entrz.
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 597

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

Joined: Oct 27, 2005
Posts: 19655
    
  18

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
Consider Paul's rocket mass heater.
 
subject: Query on JDK installer?
 
Similar Threads
Hi can anybody solve this problem....
date and time
Cannot compile in 1.5
still this code gives compile time error
JDK location