Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 145671

Summary: java-config-1 errors out without a 1.4 JDK
Product: Gentoo Linux Reporter: indarios
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description indarios 2006-08-30 21:58:33 UTC
Kio ~ # java-config-1
Traceback (most recent call last):
  File "/usr/bin/java-config-1", line 14, in ?
    from java_config import jc_options
  File "/usr/lib64/python2.4/site-packages/java_config/jc_options.py", line 18, in ?
    from jc_util import get_line_from_env_file
  File "/usr/lib64/python2.4/site-packages/java_config/jc_util.py", line 111, in ?
    JAVA_HOME = get_java_home()
  File "/usr/lib64/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/'

Installing blackdown-jdk fixes this problem.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-08-31 00:51:09 UTC
May I ask what are you trying to configure without appropriate JDK version installed?
Comment 2 indarios 2006-08-31 09:05:04 UTC
It complains about having no /etc/env.d/java/ folder without an 1.4 JDK but if you  either install a 1.4 JDK or make the /etc/env.d/java/ folder the command will work just fine. Seems like a bug to me