You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Vladimir Ivanov <iv...@gmail.com> on 2007/06/05 06:36:14 UTC

[hdk][jdk] launcher should work on Windows when run without extension

Hello,
I think, jdk/bin/java launcher should be fixed to work on Windows when
it runs without extension. Now it reports NoClassDefFoundError.
Note it may confuse users who use HDK snapshots.

 thanks, Vladimir

Execution log:
trunk\target\hdk\jdk\bin>java.exe -version
Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundatio
n or its licensors, as applicable.
java version "1.5.0"
pre-alpha : not complete or compatible
svn = r544357, (Jun  5 2007), Windows/ia32/msvc 1310, release build
http://harmony.apache.org

target\hdk\jdk\bin>java -version
Uncaught exception in main:
java.lang.NoClassDefFoundError: org/apache/harmony/tools/java/EXE/Main
Caused by: java.lang.ClassNotFoundException: org.apache.harmony.tools.java.EXE.M
ain
        at java.net.URLClassLoader.findClass(URLClassLoader.java:895)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:574)
        at java.lang.ClassLoader$SystemClassLoader.loadClass(ClassLoader.java:96
2)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
FAILED to invoke JVM.

target\hdk\jdk\bin>

Re: [hdk][jdk] launcher should work on Windows when run without extension

Posted by Vladimir Ivanov <iv...@gmail.com>.
Issue https://issues.apache.org/jira/browse/HARMONY-3251 was created
some time ago for this bug. Seems, it should be fixed.

 thanks, Vladimir

On 6/5/07, Vladimir Ivanov <iv...@gmail.com> wrote:
> On 6/5/07, Alexey Petrenko <al...@gmail.com> wrote:
> > BTW, I can not reproduce the issue:
> You run jdk/JRE/bin. It works fine for me too. please, try jdk/bin
>
> >
> > C:\...king_classlib\deploy\jdk\jre\bin>java -help
> > Harmony Java launcher
> > Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundatio
> > n or its licensors, as applicable.
> > java [-vm:vmdll -vmdir:dir -D... [-X...]] [args]
> >
> >
> > 2007/6/5, Alexey Petrenko <al...@gmail.com>:
> > > Interesting behaviour... :)
> > >
> > > Have you filed a JIRA?
> > >
> > > SY, Alexey
> > >
> > > 2007/6/5, Vladimir Ivanov <iv...@gmail.com>:
> > > > Hello,
> > > > I think, jdk/bin/java launcher should be fixed to work on Windows when
> > > > it runs without extension. Now it reports NoClassDefFoundError.
> > > > Note it may confuse users who use HDK snapshots.
> > > >
> > > >  thanks, Vladimir
> > > >
> > > > Execution log:
> > > > trunk\target\hdk\jdk\bin>java.exe -version
> > > > Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundatio
> > > > n or its licensors, as applicable.
> > > > java version "1.5.0"
> > > > pre-alpha : not complete or compatible
> > > > svn = r544357, (Jun  5 2007), Windows/ia32/msvc 1310, release build
> > > > http://harmony.apache.org
> > > >
> > > > target\hdk\jdk\bin>java -version
> > > > Uncaught exception in main:
> > > > java.lang.NoClassDefFoundError: org/apache/harmony/tools/java/EXE/Main
> > > > Caused by: java.lang.ClassNotFoundException: org.apache.harmony.tools.java.EXE.M
> > > > ain
> > > >         at java.net.URLClassLoader.findClass(URLClassLoader.java:895)
> > > >         at java.lang.ClassLoader.loadClass(ClassLoader.java:574)
> > > >         at java.lang.ClassLoader$SystemClassLoader.loadClass(ClassLoader.java:96
> > > > 2)
> > > >         at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
> > > > FAILED to invoke JVM.
> > > >
> > > > target\hdk\jdk\bin>
> > > >
> > >
> >
>

Re: [hdk][jdk] launcher should work on Windows when run without extension

Posted by Vladimir Ivanov <iv...@gmail.com>.
On 6/5/07, Alexey Petrenko <al...@gmail.com> wrote:
> BTW, I can not reproduce the issue:
You run jdk/JRE/bin. It works fine for me too. please, try jdk/bin

>
> C:\...king_classlib\deploy\jdk\jre\bin>java -help
> Harmony Java launcher
> Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundatio
> n or its licensors, as applicable.
> java [-vm:vmdll -vmdir:dir -D... [-X...]] [args]
>
>
> 2007/6/5, Alexey Petrenko <al...@gmail.com>:
> > Interesting behaviour... :)
> >
> > Have you filed a JIRA?
> >
> > SY, Alexey
> >
> > 2007/6/5, Vladimir Ivanov <iv...@gmail.com>:
> > > Hello,
> > > I think, jdk/bin/java launcher should be fixed to work on Windows when
> > > it runs without extension. Now it reports NoClassDefFoundError.
> > > Note it may confuse users who use HDK snapshots.
> > >
> > >  thanks, Vladimir
> > >
> > > Execution log:
> > > trunk\target\hdk\jdk\bin>java.exe -version
> > > Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundatio
> > > n or its licensors, as applicable.
> > > java version "1.5.0"
> > > pre-alpha : not complete or compatible
> > > svn = r544357, (Jun  5 2007), Windows/ia32/msvc 1310, release build
> > > http://harmony.apache.org
> > >
> > > target\hdk\jdk\bin>java -version
> > > Uncaught exception in main:
> > > java.lang.NoClassDefFoundError: org/apache/harmony/tools/java/EXE/Main
> > > Caused by: java.lang.ClassNotFoundException: org.apache.harmony.tools.java.EXE.M
> > > ain
> > >         at java.net.URLClassLoader.findClass(URLClassLoader.java:895)
> > >         at java.lang.ClassLoader.loadClass(ClassLoader.java:574)
> > >         at java.lang.ClassLoader$SystemClassLoader.loadClass(ClassLoader.java:96
> > > 2)
> > >         at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
> > > FAILED to invoke JVM.
> > >
> > > target\hdk\jdk\bin>
> > >
> >
>

Re: [hdk][jdk] launcher should work on Windows when run without extension

Posted by Alexey Petrenko <al...@gmail.com>.
BTW, I can not reproduce the issue:

C:\...king_classlib\deploy\jdk\jre\bin>java -help
Harmony Java launcher
Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundatio
n or its licensors, as applicable.
java [-vm:vmdll -vmdir:dir -D... [-X...]] [args]


2007/6/5, Alexey Petrenko <al...@gmail.com>:
> Interesting behaviour... :)
>
> Have you filed a JIRA?
>
> SY, Alexey
>
> 2007/6/5, Vladimir Ivanov <iv...@gmail.com>:
> > Hello,
> > I think, jdk/bin/java launcher should be fixed to work on Windows when
> > it runs without extension. Now it reports NoClassDefFoundError.
> > Note it may confuse users who use HDK snapshots.
> >
> >  thanks, Vladimir
> >
> > Execution log:
> > trunk\target\hdk\jdk\bin>java.exe -version
> > Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundatio
> > n or its licensors, as applicable.
> > java version "1.5.0"
> > pre-alpha : not complete or compatible
> > svn = r544357, (Jun  5 2007), Windows/ia32/msvc 1310, release build
> > http://harmony.apache.org
> >
> > target\hdk\jdk\bin>java -version
> > Uncaught exception in main:
> > java.lang.NoClassDefFoundError: org/apache/harmony/tools/java/EXE/Main
> > Caused by: java.lang.ClassNotFoundException: org.apache.harmony.tools.java.EXE.M
> > ain
> >         at java.net.URLClassLoader.findClass(URLClassLoader.java:895)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:574)
> >         at java.lang.ClassLoader$SystemClassLoader.loadClass(ClassLoader.java:96
> > 2)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
> > FAILED to invoke JVM.
> >
> > target\hdk\jdk\bin>
> >
>

Re: [hdk][jdk] launcher should work on Windows when run without extension

Posted by Alexey Petrenko <al...@gmail.com>.
Interesting behaviour... :)

Have you filed a JIRA?

SY, Alexey

2007/6/5, Vladimir Ivanov <iv...@gmail.com>:
> Hello,
> I think, jdk/bin/java launcher should be fixed to work on Windows when
> it runs without extension. Now it reports NoClassDefFoundError.
> Note it may confuse users who use HDK snapshots.
>
>  thanks, Vladimir
>
> Execution log:
> trunk\target\hdk\jdk\bin>java.exe -version
> Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundatio
> n or its licensors, as applicable.
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r544357, (Jun  5 2007), Windows/ia32/msvc 1310, release build
> http://harmony.apache.org
>
> target\hdk\jdk\bin>java -version
> Uncaught exception in main:
> java.lang.NoClassDefFoundError: org/apache/harmony/tools/java/EXE/Main
> Caused by: java.lang.ClassNotFoundException: org.apache.harmony.tools.java.EXE.M
> ain
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:895)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:574)
>         at java.lang.ClassLoader$SystemClassLoader.loadClass(ClassLoader.java:96
> 2)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
> FAILED to invoke JVM.
>
> target\hdk\jdk\bin>
>