Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > What is java.vm.version 14.1-b02?

Reply
Thread Tools

What is java.vm.version 14.1-b02?

 
 
Roedy Green
Guest
Posts: n/a
 
      08-13-2009
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.



139,264 java.exe

C:\Program Files\Java\jre6\bin\
--
Roedy Green Canadian Mind Products
http://mindprod.com

"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)
 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      08-13-2009
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:

C:\Windows\System32\java.exe
[ 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
does.


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
http://mindprod.com/jgloss/javaexe.html#MULTIPLES

--
Roedy Green Canadian Mind Products
http://mindprod.com

"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)
 
Reply With Quote
 
 
 
 
Lew
Guest
Posts: n/a
 
      08-14-2009
markspace wrote:
> 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?

--
Lew
 
Reply With Quote
 
Lew
Guest
Posts: n/a
 
      08-14-2009
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:
>
> C:\Windows\System32\java.exe
> [ 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
> does.
>
>
> 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
> http://mindprod.com/jgloss/javaexe.html#MULTIPLES


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
on Linux.

In my particular Linux installation that would be, e.g.,
/opt/java/jdk1.6.0_16
/opt/java/jre1.6.0_16

$ cd /opt/java
$ ls -l jdk1.6.0_16/bin/java jdk1.6.0_16/jre/bin/java jre1.6.0_16/bin/java
-rwxr-xr-x 1 foo foo 50810 2009-07-31 09:58 jdk1.6.0_16/bin/java
-rwxr-xr-x 1 foo foo 50810 2009-07-31 09:58 jdk1.6.0_16/jre/bin/java
-rwxr-xr-x 1 foo foo 50810 2009-07-31 09:58 jre1.6.0_16/bin/java
$ diff jdk1.6.0_16/bin/java jdk1.6.0_16/jre/bin/java
$ echo $?
0
$ diff jdk1.6.0_16/bin/java jre1.6.0_16/bin/java
$ echo $?
0
$

I have a symlink /opt/java/java that points to the latest or preferred
JAVA_HOME directory.

--
Lew
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments