Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4298764

Class can't put in directory include '#' charactor.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.2, 1.3.0
    • hotspot
    • x86
    • windows_98, windows_nt



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

            hongzh Hong Zhang
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: