Name: rlT66838 Date: 12/11/99
java version "1.2.1"
Classic VM (build JDK-1.2.1-A, native threads)
Class can't put in directory include '#' charactor.
spec or bug?
C:\aaa>type HelloWorld.java
public class HelloWorld{
public static void main(String[] args){
System.out.println("HelloWorld!");
}
}
C:\aaa>java HelloWorld
HelloWorld!
C:\aaa>cd ..
C:\>rename aaa aaa#
C:\>cd aaa#
C:\aaa#>java HelloWorld
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld
(Review ID: 98006)
======================================================================
Name: rlT66838 Date: 12/11/99
C:\My Documents\homework\coen283\proj2\simple>java -version
java version "1.2.2"
Classic VM (build JDK-1.2.2-001, native threads, symcjit)
*********************************************************************
here's a log of what happens, pay attention to the directory name change...
*********************************************************************
C:\My Documents\homework\coen283\proj2\simple#>java program1
Exception in thread "main" java.lang.NoClassDefFoundError: program1
C:\My Documents\homework\coen283\proj2\simple#>cd..
C:\My Documents\homework\coen283\proj2>rename simple# simple
C:\My Documents\homework\coen283\proj2>cd simple
C:\My Documents\homework\coen283\proj2\simple>java program1
welcome message!
C:\My Documents\homework\coen283\proj2\simple>
*********************************************************************
here's the program code
*********************************************************************
class program1
{
public static void main(String args[])
{
System.out.println("welcome message!");
}
}
(Review ID: 98565)
======================================================================
- duplicates
-
JDK-4273532 toURL() method in File class needs to escape excluded URL characters
-
- Closed
-