LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 09-13-2006, 07:29 AM   #1
Maverick1182
Member
 
Registered: Aug 2004
Location: London
Distribution: Gentoo
Posts: 277

Rep: Reputation: 30
JAVA wont install in gentoo


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

Last edited by Maverick1182; 09-13-2006 at 07:32 AM.
 
Old 09-13-2006, 08:53 AM   #2
Maverick1182
Member
 
Registered: Aug 2004
Location: London
Distribution: Gentoo
Posts: 277

Original Poster
Rep: Reputation: 30
Turns out that the long list of files which needed to be added to the kerowrds file was cropped by 3 lines. It was enough to prevent the programs installing properly. I redid the install according to the manial and its all weel. azurues is working fine Just to let others know
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
java console wont install "error: Failed dependencies" io13 Linux - Software 2 08-26-2006 07:02 PM
Gentoo Linux Install Wireless wont work Hit3k Linux - Wireless Networking 1 01-25-2006 08:46 PM
Wine wont install on gentoo?! adamscybot Linux - Software 4 02-27-2005 06:21 AM
2 probs, apt-get wont download anything. blackbox wont install minibootsy Linux - Software 2 06-10-2004 02:55 AM
ARGH! Java Wont INstalL! linuxnoobgod Linux - Newbie 5 05-19-2003 03:14 AM


All times are GMT -5. The time now is 10:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration