United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4298764 : Class can't put in directory include '#' charactor.

Details
Type:
Bug
Submit Date:
1999-12-11
Status:
Closed
Updated Date:
1999-12-12
Project Name:
JDK
Resolved Date:
1999-12-12
Component:
hotspot
OS:
windows_nt,windows_98
Sub-Component:
runtime
CPU:
x86
Priority:
P4
Resolution:
Duplicate
Affected Versions:
1.2.2,1.3.0
Fixed Versions:

Related Reports
Duplicate:

Sub Tasks

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)
======================================================================
                                     
2004-06-11



Hardware and Software, Engineered to Work Together