Red Hat Bugzilla – Bug 154704
Java does not seem to build CLASSPATH properly
Last modified: 2007-11-30 17:11:04 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.7.6) Gecko/20050322 Epiphany/1.5.8
Description of problem:
The java command does not seem to build Java's CLASSPATH properly. If I add statement to the script that prints the contents of CLASSPATH right before gij is executed, I get:
/usr/share/java/libgcj-java version 1.4.2.jar
There are two problems with this:
1. This path is not correct.
2. If I execute gij with CLASSPATH not set, gij will search "." by default. However, if I execute java with CLASSPATH not set, java will build a CLASSPATH that does not include ".". As a result, java will not search "." by default.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Select a program that uses classes in ".".
2. Execute the program using gij.
3. Execute the program using java.
Actual Results: Step 2 succeeds. Step 3 fails because "." is not searched for classes.
Expected Results: Steps 2 and 3 should succeed.
Fixed in Rawhide. Closing.