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 <class search path of directories and zip/jar files> -classpath <class search path of directories and zip/jar files> A : separated list of directories, JAR archives, and ZIP archives to search for class files. -D<name>=<value> set a system property -verbose[:class|gc|jni] enable verbose output -version print product version and exit -version:<value> require the specified version to run -showversion print product version and continue -jre-restrict-search | -jre-no-restrict-search include/exclude user private JREs in the version search -? -help print this help message -X print help on non-standard options -ea[:<packagename>...|:<classname>] -enableassertions[:<packagename>...|:<classname>] enable assertions -da[:<packagename>...|:<classname>] -disableassertions[:<packagename>...|:<classname>] disable assertions -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system assertions -agentlib:<libname>[=<options>] load native agent library <libname>, e.g. -agentlib:hprof see also, -agentlib:jdwp=help and -agentlib:hprof=help -agentpath:<pathname>[=<options>] load native agent library by full pathname -javaagent:<jarpath>[=<options>] load Java programming language agent, see java.lang.instrument EasyStreet:/ # ------------------------------------- Now, this seems like it should work, has all the requisites, except it does NOT have the plugins directory for MozillaFirefox!! Is it that there are now 64 bit versions but no plugins?? (clueless) Sigh!! I guess that it is still not possible ! Guess I will just have to wait or revert to a 32 bit Firefox. Getting frustrating. Question: Flash is a completly separate issue, right? Just for kicks, the following is my PATH for root and user. ----------------------------------------------------- EasyStreet:/ # echo $PATH /usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin:/usr/java ------------------------------------------------------ EasyStreet:/ # su bob ------------------------------------------------------ bob@EasyStreet:/> echo $PATH /usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin bob@EasyStreet:/> ------------------------------------------------------- Thanks for trying to help out an old guy trying to understand his OS and the way it works or should work. Your comments and suggestions would certainly be appreciated. Bob S.