Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TEN Java.exes

4 views
Skip to first unread message

Roedy Green

unread,
Dec 4, 2011, 9:31:17 AM12/4/11
to
I counted TEN copies of Java.exe on my machine. This does not count
Javaw.exe which hides the console.

There really only need to be two, a 32-bit and 64-bit version.

I think it is time to prune the two of them out of the JDK and use
only the ones in the JRE. It just causes confusion when you have so
many, especially when it comes time to configure a firewall.

The server vs desktop version could be handled by a command line
switch.

--
Roedy Green Canadian Mind Products
http://mindprod.com
For me, the appeal of computer programming is that
even though I am quite a klutz,
I can still produce something, in a sense
perfect, because the computer gives me as many
chances as I please to get it right.

Joerg Meier

unread,
Dec 5, 2011, 8:40:20 AM12/5/11
to
On Sun, 04 Dec 2011 06:31:17 -0800, Roedy Green wrote:

> I counted TEN copies of Java.exe on my machine. This does not count
> Javaw.exe which hides the console.

> There really only need to be two, a 32-bit and 64-bit version.

Java has more versions than just 1.6_29. Many programs bundle specific java
versions due to version incompatibilities.

> I think it is time to prune the two of them out of the JDK and use
> only the ones in the JRE. It just causes confusion when you have so
> many, especially when it comes time to configure a firewall.

So if I download the JDK, I won't be able to run Java programs ? That
doesn't really strike me as a sensible idea.

Liebe Gruesse,
Joerg

--
Ich lese meine Emails nicht, replies to Email bleiben also leider
ungelesen.

Roedy Green

unread,
Dec 5, 2011, 9:02:25 PM12/5/11
to
On Mon, 5 Dec 2011 14:40:20 +0100, Joerg Meier <joerg...@arcor.de>
wrote, quoted or indirectly quoted someone who said :

>
>So if I download the JDK, I won't be able to run Java programs ? That
>doesn't really strike me as a sensible idea.

No. The JDK includes the JRE. It would continue to do so, just drop
the two extra java.exes.

consider all the copies of Java.exe on my machine, each with its own
ext dir.

C:\Program Files\Java\jre7\bin\java.exe
C:\Program Files (x86)\Java\jre7\bin\java.exe
C:\Windows\System32\java.exe
C:\Windows\SysWOW64\java.exe
E:\Program Files\Java\jdk1.7.0_01\bin\java.exe
E:\Program Files\Java\jdk1.7.0_01\jre\bin\java.exe
E:\Program Files (x86)\Java\jdk1.7.0_01\bin\java.exe
E:\Program Files (x86)\Java\jdk1.7.0_01\jre\bin\java.exe
F:\Program Files (x86)\jet7.6-pro\profile1.6.0_27\jre\bin\java.exe
F:\Program Files (x86)\JetBrains\IntelliJ
IDEA10.5.2\jre\jre\bin\java.exe

When you install a JDK you get three copies of Java.exe. You need
only one.

the Java.exe in System32 and SysWOW64 could be replaced with a
registry entry in
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App
Paths\

You still need the Jet and IntelliJ private copies. They cause less
trouble since they don't even show up in the Java control panel.

Real Gagnon

unread,
Dec 6, 2011, 10:21:08 PM12/6/11
to
Roedy Green <see_w...@mindprod.com.invalid> wrote in
news:slhqd71baum3bidtp...@4ax.com:

> the Java.exe in System32 and SysWOW64 could be replaced with a
> registry entry in
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App
> Paths\
>

AFAIK The java.exe in system32 is a special wrapper. It is designed to be
used when java.exe is launched from the PATH variable. This java.exe will
look the registry (HKLM/Software/JavaSoft) to choose the "current" java
installation. It is also possible to select a specific version with the
"-version" switch.

http://docs.oracle.com/javase/6/docs/technotes/tools/windows/java.html#de
scription

http://www.rgagnon.com/javadetails/java-0634.html

Bye.

--
Real Gagnon from Quebec, Canada
* Java, Javascript, VBScript or PowerBuilder snippets
* http://rgagnon.com/howto.html
* http://rgagnon.com/bigindex.html
0 new messages