This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Untill recently I have been using JDK1.3.1. Due to misunderstanding (i.e. some confusion in my head, sometimes) and because I have not consulted before with Cindy, I installed JRE1.4 (j2re-1_4_1_01-windows-i586.exe). Tried running in Command line: java started giving the following error. “Registry key ‘Software\javasoft\Java Runtime Environment\CurrentVersion’ has value ‘1.3’, but ‘1.4’ is required. Eror: could not find java.dll Error: could not find java 2 Runtime Environment” while javac or jar commands are not “recognized as an internal or external command, operable program or file” I uninstalled JRE1.4, JDK1.3.1 (I also tried to uninstall JDK because just uninstalling JRE did not give results) and installed again JDK1.3.1. Now the command java runs but javac and jar are still not. What is wrong?
Cindy Glass
"The Hood"
Sheriff
Joined: Sep 29, 2000
Posts: 8521
posted
0
You know Guennadii, We could go down this path and resolve your classpath and Windows Registry issues - but I got the impression that you are actually trying to code for a BROWSER. Is that true, or are you doing a little coding for stand alone applications also? If you are attempting to code for some stand alone applications (to run outside a browser) - then HOW did you actually uninstall JRE1.4?
"JavaRanch, where the deer and the Certified play" - David O'Meara
Guennadiy VANIN
Ranch Hand
Joined: Aug 30, 2001
Posts: 898
posted
0
Cindy, as matter of fact, I wanted even to post a new thread abt it: What is being changed in Registry during installation of JDK and JRE? Is it possible to configure CD and run javac/java from CD (for ex., I am in a library branch and it has PCs with restrictions and no administrator nearby). There are millions of PCs, in banks, in big organizations, where you have MS Windows installed, you may run MS VBS but it is not possible to install and run java Earlier I used JBUilder without any concerns about deployment. I have tasks both for a browser and stand-alone (though it is possible to program an applet with possibility to run stand-alone). Currently, I am free-lancer, I do not like to switch to MS programming but Sun overcomplicated everything [ November 19, 2002: Message edited by: G Vanin ]
Guennadiy VANIN
Ranch Hand
Joined: Aug 30, 2001
Posts: 898
posted
0
j2sdk-1_3_1_01-win.exe installs, or at least assures it at the end of installation, that Java Runtime Environment was installed
Cindy Glass
"The Hood"
Sheriff
Joined: Sep 29, 2000
Posts: 8521
posted
0
If you have a CD with the Java JRE on it, and your application on it, then you can create a .bat file that sets the classpath to look at the CD to get the JRE. All this can be done even if there is no JRE on the user machine. However if you are using a browser to present your applet, the browser will go to the Windows Registry to find out where go get the Java Plugin. Try going to the Run command >Start/Run/Regedit.exe And look in the HKEY_LOCAL_MACHINE/Software/JavaSoft directory and you can see how it is set up.