If a "#" exists in any element of the classpath (as an absolute path)
then those classpath elements are unreachable, leading to NoClassDefFoundError.
Create a directory /tmp/a#b.
Create a trivial java program:
public class Hello {
public static void main(String[] args) {
System.out.println("Hello");
}
}
# cd /tmp/a#b
# javac Hello.java
# jar cf Hello.jar Hello.class
Case 1:
# java Hello
Exception in thread "main" java.lang.NoClassDefFoundError: Hello
Case 2:
# java -classpath Hello.jar Hello
Exception in thread "main" java.lang.NoClassDefFoundError: Hello
This problem occurs with Merlin build b25.
- relates to
-
JDK-4380043 Changes to ParseUtil in Merlin should be backported to Ladybird
- Resolved
-
JDK-4273532 toURL() method in File class needs to escape excluded URL characters
- Closed
-
JDK-4416056 Application requesting JRE 1.4.0-beta could not be launched (B58)
- Closed