On Tuesday 11 October 2005 03:58 am, Randall R Schulz wrote:
Hi,
On Tuesday 11 October 2005 00:38, Steve Graegert wrote:
...
It seems that you have not invoked the correct version. Java 2 version 1.4.2 is not the same as Java 5 version 1.5. Please check your path or installation and try again. Anyway, if the d64 switch is not understood, this particular version does not support 64-bit applications. The output should be something like the following:
% java -d64 -version -server java version "1.6.0-ea" Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b11) Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-ea-b11, mixed mode)
Yes Steve, Thank you. That is known and completely understood. Now, please have patience and compassion for your fellow dense unknowlegeable SuSE Linux users. It seems that Suse has installed java in very different places than where the actual java files (from Sun) are installed, otherwise wouldn't the newer version overwrite the older version? I added the PATH to /usr/java (for the new 64 bit version) and it still does not show the newer version. Wouldn't the -version command show either the newer one of at least both? Actually I prefer that both versions exist, the new one only to serve Firefox and the older to continue doing whatever it does. Now, the newer downloaded verion from Sun is actually 64 bit according to the -version command, but, it does not have the plugins for Mozilla/Firefox. So I went and got the Blackdown version. It is also a 64 bit version and does have the plugins for Mozila/Firefox. (which I added to the Firefox plugins section) But, even though it shows as a 64 bit version the -d64 command shows it as unsupported ????? (See below for the actual output of the commands)
Or, for those of us with 32-bit systems, this:
Thanks Randall, for your input. You taught me about all of the crazy links in java and showed me how I was able to get the version and options by directly accessing the file. See the results of my commands below.
% java -version java version "1.5.0_03" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07) Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
% java -d64 Running a 64-bit JVM is not supported on this platform.
Equivalently (for the default /etc/alternatives configuration):
% /usr/lib/jvm/java-1.5.0-sun/bin/java -version java version "1.5.0_03" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07) Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)
% /usr/lib/jvm/java-1.5.0-sun/bin/java -d64 Running a 64-bit JVM is not supported on this platform.
Invoking the earlier 1.4.2 version:
% /usr/lib/jvm/java-1.4.2-sun-1.4.2.06/bin/java -version java version "1.4.2_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03) Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)
% /usr/lib/jvm/java-1.4.2-sun-1.4.2.06/bin/java -d64 Unrecognized option: -d64 Could not create the Java virtual machine.
Here are the results of my commands of the two new versions that I have
installed:
----------------------
bob@EasyStreet:~> /opt/java/j2re1.4.2/bin/java -version
java version "1.4.2-02"
Java(TM) 2 Runtime Environment, Standard Edition (build
Blackdown-1.4.2-02)
Java HotSpot(TM) 64-Bit Server VM (build Blackdown-1.4.2-02, mixed mode)
bob@EasyStreet:~> /opt/java/j2re1.4.2/bin/java -d64
Unrecognized option: -d64
Could not create the Java virtual machine.
--------------------------------------
Question: Now if this a 64 bit version, why does it not recognize the
d64 option?? Also, remember now, that this is the only version I have
found that has the plugins for Firefox.
-------------------------------
But: On to the latest version from Sun:
-------------------------------------------
EasyStreet:/ # /usr/java/jre1.5.0_04/bin/java -version
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_04-b05, mixed mode)
EasyStreet:/ # /usr/java/jre1.5.0_04/bin/java -d64
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-server to select the "server" VM
The default VM is server.
-cp