You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Petrenko (JIRA)" <ji...@apache.org> on 2007/04/27 13:11:15 UTC

[jira] Assigned: (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 ]

Alexey Petrenko reassigned HARMONY-3783:
----------------------------------------

    Assignee: Alexey Petrenko

> [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
>         Assigned To: Alexey Petrenko
>            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.