File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Install JDK question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Install JDK question" Watch "Install JDK question" New topic

Install JDK question

Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 672
I installed JDK on computer A as C:\jdk1.4.0.
Can I simply copy this folder (jdk1.4.0) to computer B? Will this install JDK on B?

We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
You may want to adjust the path and classpath settings after such an operation - but you wouldn't have to depending on how you use the JDK.
I think that the best answer is, "Give it a try and find out how well it works."
If you let us know what you learn, we all get to learn something.
Good Luck.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
It depends on whether or not the install affects the registry, installs files in other subdirectories, etc. I have not seen any documentation on it, but it seems that suddenly my javac is coming from 1.4 even though I have not changed my path and classpath.

I think would copy the .exe file and reinstall it with the install program. But if you decide to try installing with just copying the files in the subdir, let us know whether or not it works.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
I agree. Here's the link:
subject: Install JDK question
jQuery in Action, 3rd edition