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

Bug 38136

Summary: java-config --set-system-classpath IOError: [Errno 2] No such file or directory: 'etc/env.d/21java-classpath'
Product: Gentoo Linux Reporter: albanard <albanard>
Component: New packagesAssignee: Jason A. Mobarak (RETIRED) <aether>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 31468    

Description albanard 2004-01-13 21:34:08 UTC
After updating to java-config 1.2.2 

I get the following error after calling --set-system-classpath

java-config --set-system-classpath=whatever 
Traceback (most recent call last): 
File "/usr/bin/java-config", line 121, in ? 
run(option_list) 
File "/usr/bin/java-config", line 41, in run 
func(args) 
File "/usr/lib/python2.2/site-packages/java_config/jc_options.py", line 609, in __call__ 
file(os.path.join('etc', 'env.d', '21java-classpath'), 'w').write( 
IOError: [Errno 2] No such file or directory: 'etc/env.d/21java-classpath'

Reproducible: Always
Steps to Reproduce:
1.emerge oro (or whatever you want to add to classpath)
2.emerge -u java-config
3.java-config --set-system-classpath=oro

Actual Results:  
Traceback (most recent call last): 
File "/usr/bin/java-config", line 121, in ? 
run(option_list) 
File "/usr/bin/java-config", line 41, in run 
func(args) 
File "/usr/lib/python2.2/site-packages/java_config/jc_options.py", line 609, in 
__call__ 
file(os.path.join('etc', 'env.d', '21java-classpath'), 'w').write( 
IOError: [Errno 2] No such file or directory: 'etc/env.d/21java-classpath'

Expected Results:  
System classpath set
You may want to update your enviroment by running:
        "/usr/sbin/env-update && source /etc/profile"
Comment 1 albanard 2004-01-13 21:38:24 UTC
Downgrading to 1.1.8-r1 fixes the problem.
Comment 2 Jason A. Mobarak (RETIRED) gentoo-dev 2004-01-14 10:43:00 UTC
It's fixed for me, please re-open if necessary.
Comment 3 Jason A. Mobarak (RETIRED) gentoo-dev 2004-01-14 10:44:07 UTC
Fixed in version 1.2.3 that is, which should be at your local mirror and rsync fairly soon.
Comment 4 albanard 2004-01-14 20:26:35 UTC
Great thanks, its fixed in 1.2.3