JDK-4298764 : Class can't put in directory include '#' charactor.
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.2.2,1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_98,windows_nt
  • CPU: x86
  • Submitted: 1999-12-11
  • Updated: 1999-12-12
  • Resolved: 1999-12-12
Related Reports
Duplicate :  
Description

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)
======================================================================

Comments
WORK AROUND Name: rlT66838 Date: 12/11/99 change directory name to eliminate the "#" sign. see log session in 'Description' JDK version 1.1.7 does not have this problem. (Review ID: 98565) ======================================================================
11-06-2004