You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ivan Popov (JIRA)" <ji...@apache.org> on 2007/07/06 08:17:04 UTC
[jira] Closed: (HARMONY-3783) [classlib][luni] java cannot find
class in a directory started with dot
[ https://issues.apache.org/jira/browse/HARMONY-3783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivan Popov closed HARMONY-3783.
-------------------------------
This bug was fixed, closing this issue.
> [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
> Assignee: Paulex Yang
> Priority: Blocker
>
> 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.