Hi there, I've posted on the gentoo website but havent had many responses. I think i've totally fudged the installation of java on my computer. As a result some websites dont open (even though doing the java test on the sun website says i have the player installed). I've tried to follow the instructions from the java upgrade guide in the following link
http://www.gentoo.org/proj/en/java/java-upgrade.xml
but come up with the error:
heaven mark # /usr/bin/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
http://www.gentoo.org/proj/en/java/java-upgrade.xml for details
* Checking vm_environment_files ... [ ok ]
* Checking user_settings ...
* Running as root. Don't need to check user settings. [ ok ]
* Checking generation_1_system_vm ...
Traceback (most recent call last):
File "/usr/bin/java-config-1", line 14, in ?
from java_config import jc_options
File "/usr/lib/python2.4/site-packages/java_config/jc_options.py", line 18, in ?
from jc_util import get_line_from_env_file
File "/usr/lib/python2.4/site-packages/java_config/jc_util.py", line 97, in ?
JAVA_HOME = get_java_home()
File "/usr/lib/python2.4/site-packages/java_config/jc_util.py", line 70, in get_java_home
for f in os.listdir('/etc/env.d/java/'):
OSError: [Errno 2] No such file or directory: '/etc/env.d/java/'
* No Generation-1 System VM is set!
* Run 'java-config-1 -L' to see a list of available VMs
* Then run 'java-config-1 -S <VM choice>' [ !! ]
* Some problems were found. Please follow the instructions above, and rerun java-check-environment
Can someone tell me what I need to do to completely remove it ((eg if i need to unmerge a list of programs) and how to install it fresh rather than perform an upgrade?
when i run java-config-1 -L , i get:
heaven mark # java-config-1 -L
Traceback (most recent call last):
File "/usr/bin/java-config-1", line 14, in ?
from java_config import jc_options
File "/usr/lib/python2.4/site-packages/java_config/jc_options.py", line 18, in ?
from jc_util import get_line_from_env_file
File "/usr/lib/python2.4/site-packages/java_config/jc_util.py", line 97, in ?
JAVA_HOME = get_java_home()
File "/usr/lib/python2.4/site-packages/java_config/jc_util.py", line 70, in get_java_home
for f in os.listdir('/etc/env.d/java/'):
OSError: [Errno 2] No such file or directory: '/etc/env.d/java/'
Problem is i've lost my way in the steps i've taken to try and install it so i dont know what I broke and how , hence the requirement for a clean install
Also for some reason emerge complains that virtual/jdk isnt installed when the emerge was successful
* There was a problem determining which VM to use for generation-1
* This is because the way Java is handled on Gentoo has drastically changed.
* There does not seem to be a 1.4 or 1.3 JDK installed.
* You should probably install =virtual/jdk-1.4* or =virtual/jdk-1.3*
* It is important to have either a 1.4 or 1.3 JDK installed
* in order for the old and new Java systems to coexist