"If you think itís expensive to hire a professional to do the job, wait until you hire an amateur."
~ Red Adair (born: 1915-06-18 died: 2004-08-07 at age: 89)
> Lew wrote:
>> The 'java' command is the same in both the JDK and the JRE, so that
>> argument was a red herring.
> Maybe not as much as you'd think. I actually found this doing exactly
> what Roedy did. The sample works fine in my IDE, which runs the JVM
> from the JDK. But when run outside my IDE, the system picks up the
> java.exe file in my /System/Windows/ directory, which happens to be the
> JRE version, and they do different things.
> Anyway, this might be too rare to bother Sun with, and if others aren't
> seeing it, well that was my primary concern, that my code had a bug that
> others would see.
And you are certain that the C:/System/Windows/java.exe is from the same
version as your JDK?
Roedy Green wrote:
> On Thu, 13 Aug 2009 09:45:45 -0400, Lew <(E-Mail Removed)> wrote,
> quoted or indirectly quoted someone who said :
>> The 'java' command is the same in both the JDK and the JRE, so that argument
>> was a red herring.
> They are different. The evidence:
> [ 145,184 bytes ]
> C:\Program Files\Java\jre6\bin\java.exe
> [ 145,184 bytes JRE ]
> J:\Program Files\Java\jdk1.6.0_16\jre\bin\java.exe
> [ 139,264 bytes JDK ]
> the C: version does not understand -server option, the J: version
> The 145,184 byte version checks the registry to figure out which
> java.exe to use.
> What is the equivalent set of files/directories for Linux? I would
> like to document its scheme under
That all depends, just like it does on Windows. It goes wherever you tell the
installer to install it on Windows. It goes where I "mv" the unpacked tarball
In my particular Linux installation that would be, e.g.,