java jre issue

I upgraded this machine from using jre-6u37 to jre-7u17 (oracle). A java
program I need starts and runs well, it appears. However, I wanted to
check the java version, and got this:


cer@Telcontar:~> java --help
Unrecognized option: --help
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
cer@Telcontar:

Does it simply mean that the “–help” or “–version” options are not
recognized, or do I have something else missing?


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

java does not follow the GNU style for options, you have to call it with


java -version
java -help

only one minus sign.


PC: oS 12.2 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.10.1 | GTX 650 Ti
ThinkPad E320: oS 12.2 x86_64 | i3@2.30GHz | 8GB | KDE 4.10.1 | HD 3000
eCAFE 800: oS 12.2 i586 | AMD Geode LX 800@500MHz | 512MB | KDE 3.5.10

On 03/15/2013 03:13 PM, Carlos E. R. wrote:
> jre-6u37 to jre-7u17 (oracle)

one “-” as Martin says…which here gives


denverd@linux-os114:~> java -version
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode)
denverd@linux-os114:~>

you can also test the browser part at
http://java.com/en/download/installed.jsp

which here tells my 11.4 evergreen has “Java version: Version 7
Update 5” and

so, did you put update 7 on your 11.4?? and how? (that is, did you
use yast to install the rpm, or rpm command at the CLI? and did the
oracle instructions work alright
[http://java.com/en/download/help/linux_install.xml])


dd

On 2013-03-15 15:53, Martin Helm wrote:
> java does not follow the GNU style for options, you have to call it with
>


> java -version
> java -help
> 

> only one minus sign.

AHH!! :slight_smile:

How obvious. Once you know… or remember.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

On 2013-03-15 17:04, dd wrote:
> On 03/15/2013 03:13 PM, Carlos E. R. wrote:
>> jre-6u37 to jre-7u17 (oracle)
>
> one “-” as Martin says…which here gives
>
>


> denverd@linux-os114:~> java -version
> java version "1.7.0_05"
> Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
> Java HotSpot(TM) Client VM (build 23.1-b03, mixed mode)
> denverd@linux-os114:~>
> 

cer@Telcontar:~> java -version
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
cer@Telcontar:~>

That’s on 12.1, later I can test in 11.4. I have to go out.

you can also test the browser part at
http://java.com/en/download/installed.jsp

which here tells my 11.4 evergreen has “Java version: Version 7 Update
5” and

Completion checkmark
Congratulations!
You have the recommended Java installed (Version 7 Update 17).

so, did you put update 7 on your 11.4?? and how? (that is, did you use
yast to install the rpm, or rpm command at the CLI? and did the oracle
instructions work alright
[http://java.com/en/download/help/linux_install.xml])

I did not even read the instructions, or I forgot them :slight_smile:

I simply downloaded the 64 bit rpm, and run “rpm --upgrade packagename”
on it as root, that’s all. Of course, I already had the 1.6 rpm
installed, also from Oracle, so I did not have to change anything,
worked out of the box.

(and I tried first in my 11.4 box - java is not that crucial for me in
there)

Actually, I once followed the link at:


https://sites.google.com/site/easylinuxtipsproject/java-for-opensuse
http://java.com/en/download/manual_v6.jsp

but instead of using the bin package it recommends, I went for the rpm.
It is much easier to upgrade to the next version once you install the
first one.


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

On 2013-03-15 17:23, Carlos E. R. wrote:

>


> cer@Telcontar:~> java -version
> java version "1.7.0_17"
> Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
> Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
> cer@Telcontar:~>
> 

That’s on 12.1, later I can test in 11.4. I have to go out


cer@minas-tirith:~> java -version
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
cer@minas-tirith:~

So, exactly the same - not surprising, I used the same rpm :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))