harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Popov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-3783) [classlib][luni] java cannot find class in a directory started with dot
Date Fri, 27 Apr 2007 10:57:15 GMT
[classlib][luni] java cannot find class in a directory started with dot
-----------------------------------------------------------------------

                 Key: HARMONY-3783
                 URL: https://issues.apache.org/jira/browse/HARMONY-3783
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: Windows/x86, Harmony-jdk-r532975
            Reporter: Ivan Popov
            Priority: Critical


If you put HelloWorld.class to a directory started with dot, e.g., .xxx and run java, it will
result in NoClassDefFaulndError.

> ls .xxx
HelloWorld.class

> ...\jdk\jre\bin\java.exe -cp .xxx HelloWorld
Uncaught exception in main:
java.lang.NoClassDefFoundError: HelloWorld
Caused by: java.lang.ClassNotFoundException: HelloWorld
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:554)
        at java.lang.ClassLoader$SystemClassLoader.loadClass(ClassLoader.java:942)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:311)
FAILED to invoke JVM.

If you copy .xxx to xxx, it will be found successfully:

> cp -r .xxx xxx
> ls xxx
HelloWorld.class

> ...\jdk\jre\bin\java.exe -cp .xxx HelloWorld
Hello

It seems causing problems with starting Eclipse on the latest Harmony builds, so I'm marking
this bug as critical.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message