| View previous topic :: View next topic |
| Author |
Message |
Vael n00b

Joined: 03 Oct 2004 Posts: 30 Location: Chihuas, México
|
Posted: Fri May 18, 2012 7:31 pm Post subject: What does it mean? |
|
|
I have installed icedtea-bin-7 and set it as default vm. After that I do:
| Code: | eselect java-vm list
Available Java Virtual Machines:
[1] icedtea-bin-6
[2] icedtea-bin-7 system-vm
|
And when I try to check java version:
| Code: |
java --version
/usr/bin/java: line 21: /usr/lib/jvm//icedtea-bin-7/bin/java: No such file or directory
/usr/bin/java: line 21: /usr/lib/jvm//icedtea-bin-7/bin/java: Success
|
Why in first place I see "Not such file or directory" and after that "Success" ?
Whats wrong here? |
|
| Back to top |
|
 |
Kaso_da_Zmok Apprentice


Joined: 19 Aug 2004 Posts: 187 Location: Cork, Ireland
|
Posted: Fri May 18, 2012 7:36 pm Post subject: Unrecognized option: --version |
|
|
what does this mean?
| Code: | risko@e6400 ~ $ eselect java-vm list
Available Java Virtual Machines:
grep: /usr/share/java-config-2/vm/icedtea6-bin: No such file or directory
[1] icedtea6-bin
[2] oracle-jre-bin-1.7 system-vm
risko@e6400 ~ $ java --version
Unrecognized option: --version
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
risko@e6400 ~ $ |
|
|
| Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 6423 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri May 18, 2012 7:47 pm Post subject: |
|
|
Well first of all it means you both typed the command wrong. Command line parameters to java are preceded by a single dash character, not two. This works for me: | Code: | ~ $ java -version
java version "1.7.0_03-icedtea"
OpenJDK Runtime Environment (IcedTea7 2.1) (Gentoo build 1.7.0_03-icedtea-b147)
OpenJDK Client VM (build 22.0-b10, mixed mode) | Try it.
- John _________________ This space intentionally left blank. |
|
| Back to top |
|
 |
Vael n00b

Joined: 03 Oct 2004 Posts: 30 Location: Chihuas, México
|
Posted: Fri May 18, 2012 7:53 pm Post subject: |
|
|
Like this?
| Code: |
java -version
/usr/bin/java: line 21: /usr/lib/jvm//icedtea-bin-7/bin/java: No such file or directory
/usr/bin/java: line 21: /usr/lib/jvm//icedtea-bin-7/bin/java: Success
|
|
|
| Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 6423 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri May 18, 2012 8:08 pm Post subject: |
|
|
No user VM set. Run | Code: | | eselect java-vm set user 1 | and try again.
- John _________________ This space intentionally left blank. |
|
| Back to top |
|
 |
Vael n00b

Joined: 03 Oct 2004 Posts: 30 Location: Chihuas, México
|
Posted: Fri May 18, 2012 8:11 pm Post subject: |
|
|
| Code: |
eselect java-vm set user 2
!!! Error: Sorry, you cannot set a user vm as root. Set the system vm instead
exiting
|
 |
|
| Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 6423 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri May 18, 2012 8:13 pm Post subject: |
|
|
Your previous post showed a "$" prompt, indicating that you were logged in as a regular user. Did you switch? In any case, run | Code: | | java-check-environment | (as root, please) and report back.
Edit: Sorry; I thought you were the other guy. Still run java-check-environment for me, please.
- John _________________ This space intentionally left blank. |
|
| Back to top |
|
 |
Vael n00b

Joined: 03 Oct 2004 Posts: 30 Location: Chihuas, México
|
Posted: Fri May 18, 2012 8:16 pm Post subject: |
|
|
| Code: |
java-check-environment
* === Java Environment Checker ===
* The purpose of this script is to check the sanity of your Java Environment.
* We have significantly changed and improved the way Java is handled in many
* respects.
* Please refer to our upgrade guide for details:
* http://www.gentoo.org/proj/en/java/java-upgrade.xml
* Checking fastjar ... [ ok ]
* Checking vm_environment_files ... [ ok ]
* Checking user_settings ...
* Running as root. Don't need to check user settings. [ ok ]
* Checking generation_1_system_vm ... [ ok ]
* Checking java_config_1 ... [ ok ]
* Checking global_classpath ... [ ok ]
* Checking virtual_provides ... [ ok ]
* Checking overlays_eclasses ... [ ok ]
* Checking package_env ...
grep: /usr/share/*/package.env: No such file or directory
grep: /usr/share/*/package.env: No such file or directory [ ok ]
* Checking proc_mounted ... [ ok ]
* Java environment is sane. Congratulations!
|
I am doing all this as root |
|
| Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 6423 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri May 18, 2012 8:25 pm Post subject: |
|
|
Hmm. Output of | Code: | | equery list -p icedtea-bin | please.
- John _________________ This space intentionally left blank. |
|
| Back to top |
|
 |
Vael n00b

Joined: 03 Oct 2004 Posts: 30 Location: Chihuas, México
|
Posted: Fri May 18, 2012 8:29 pm Post subject: |
|
|
| Code: |
equery list -p icedtea-bin
* Searching for icedtea-bin ...
[IP-] [ ] dev-java/icedtea-bin-6.1.11.1:6
[-P-] [ ] dev-java/icedtea-bin-6.1.11.1-r1:6
[-P-] [ ] dev-java/icedtea-bin-7.2.1:7
[IP-] [ ] dev-java/icedtea-bin-7.2.1-r1:7
|
 |
|
| Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 6423 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri May 18, 2012 8:56 pm Post subject: |
|
|
And the output ofplease?
- John _________________ This space intentionally left blank. |
|
| Back to top |
|
 |
Vael n00b

Joined: 03 Oct 2004 Posts: 30 Location: Chihuas, México
|
Posted: Fri May 18, 2012 8:57 pm Post subject: |
|
|
| Code: |
ls -l /usr/lib/jvm
total 0
lrwxrwxrwx 1 root root 25 May 18 11:44 icedtea-bin-6 -> /opt/icedtea-bin-6.1.11.1
lrwxrwxrwx 1 root root 22 May 18 13:21 icedtea-bin-7 -> /opt/icedtea-bin-7.2.1
|
|
|
| Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 6423 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri May 18, 2012 9:01 pm Post subject: |
|
|
And, finally, | Code: | | ls -l /opt/icedtea-bin-7.2.1/bin | - John _________________ This space intentionally left blank. |
|
| Back to top |
|
 |
Vael n00b

Joined: 03 Oct 2004 Posts: 30 Location: Chihuas, México
|
Posted: Fri May 18, 2012 9:10 pm Post subject: |
|
|
| Code: |
ls -l /opt/icedtea-bin-7.2.1/bin
total 392
-rwxr-xr-x 1 root root 5476 May 18 13:21 appletviewer
-rwxr-xr-x 1 root root 5476 May 18 13:21 apt
-rwxr-xr-x 1 root root 5476 May 18 13:21 extcheck
-rwxr-xr-x 1 root root 5476 May 18 13:21 idlj
-rwxr-xr-x 1 root root 5476 May 18 13:21 jar
-rwxr-xr-x 1 root root 5476 May 18 13:21 jarsigner
-rwxr-xr-x 1 root root 5460 May 18 13:21 java
-rwxr-xr-x 1 root root 2806 Mar 1 05:54 java-rmi.cgi
-rwxr-xr-x 1 root root 5476 May 18 13:21 javac
-rwxr-xr-x 1 root root 5476 May 18 13:21 javadoc
-rwxr-xr-x 1 root root 5476 May 18 13:21 javah
-rwxr-xr-x 1 root root 5476 May 18 13:21 javap
-rwxr-xr-x 1 root root 5484 May 18 13:21 jconsole
-rwxr-xr-x 1 root root 5480 May 18 13:21 jdb
-rwxr-xr-x 1 root root 5476 May 18 13:21 jhat
-rwxr-xr-x 1 root root 5488 May 18 13:21 jinfo
-rwxr-xr-x 1 root root 5488 May 18 13:21 jmap
-rwxr-xr-x 1 root root 5476 May 18 13:21 jps
-rwxr-xr-x 1 root root 5476 May 18 13:21 jrunscript
-rwxr-xr-x 1 root root 5480 May 18 13:21 jsadebugd
-rwxr-xr-x 1 root root 5488 May 18 13:21 jstack
-rwxr-xr-x 1 root root 5476 May 18 13:21 jstat
-rwxr-xr-x 1 root root 5476 May 18 13:21 jstatd
-rwxr-xr-x 1 root root 5476 May 18 13:21 keytool
-rwxr-xr-x 1 root root 5476 May 18 13:21 native2ascii
-rwxr-xr-x 1 root root 5488 May 18 13:21 orbd
-rwxr-xr-x 1 root root 5480 May 18 13:21 pack200
-rwxr-xr-x 1 root root 5476 May 18 13:21 policytool
-rwxr-xr-x 1 root root 5476 May 18 13:21 rmic
-rwxr-xr-x 1 root root 5476 May 18 13:21 rmid
-rwxr-xr-x 1 root root 5476 May 18 13:21 rmiregistry
-rwxr-xr-x 1 root root 5476 May 18 13:21 schemagen
-rwxr-xr-x 1 root root 5476 May 18 13:21 serialver
-rwxr-xr-x 1 root root 5476 May 18 13:21 servertool
-rwxr-xr-x 1 root root 5488 May 18 13:21 tnameserv
-rwxr-xr-x 1 root root 90444 May 18 13:21 unpack200
-rwxr-xr-x 1 root root 5476 May 18 13:21 wsgen
-rwxr-xr-x 1 root root 5476 May 18 13:21 wsimport
-rwxr-xr-x 1 root root 5476 May 18 13:21 xjc
|
|
|
| Back to top |
|
 |
John R. Graham Administrator


Joined: 08 Mar 2005 Posts: 6423 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri May 18, 2012 9:15 pm Post subject: |
|
|
Can you run it directly, I wonder? Just for grins, try | Code: | | /opt/icedtea-bin-7.2.1/bin/java -version | and, while you're at it, let me know what version of eselect and java-config you're running: | Code: | equery list -i eselect
equery list -i java-config | - John _________________ This space intentionally left blank. |
|
| Back to top |
|
 |
Vael n00b

Joined: 03 Oct 2004 Posts: 30 Location: Chihuas, México
|
Posted: Tue May 22, 2012 2:26 pm Post subject: |
|
|
Well I can find the solution. Everything looks fine, but just java is not working.
All this was in a vserver guest. So I try it on a host and the magic happens. It looks like some kind of problem in vserver. So, if somebody find the solution in vserver will be nice, just I am not in a hurry.
Thanks folks |
|
| Back to top |
|
 |
|