harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Linbin Yu (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-5201) Notepad.jar cannot open with "-jar" parameter
Date Tue, 27 Nov 2007 04:08:43 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-5201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Linbin Yu updated HARMONY-5201:
-------------------------------

    Description: 
One demo of Sun JDK 1.5 , Notepad.jar, cannot open with "-jar" parameter:
(Snapshot R575777, R580985 and R597678)

"java -jar Notepad.jar" leads to crash, but "java -cp Notepad.jar Notepad" is OK.

Other jars like FileChooserDemo.jar, Stylepad.jar, Java2Demo.jar, they are all OK.

There is stack trace:

Uncaught exception in main:

java.lang.IllegalAccessException: A member of the "class Notepad" with "public static" modifiers
can not be accessed from the "class org.apache.harmony.vm.JarRunner"

        at java.lang.reflect.ReflectExporter.checkMemberAccess(ReflectExporter.java:87)

        at java.lang.reflect.Method.invoke(Method.java:311)

        at org.apache.harmony.vm.JarRunner.main(JarRunner.java:80)




  was:
One demo of Sun JDK 1.5 , Notepad.jar, cannot open directly in newest debug build.

"java -jar Notepad.jar" leads to crash, but "java -cp Notepad.jar Notepad" is OK

Other jar like FileChooserDemo.jar, Stylepad.jar, Java2Demo.jar, they are all OK.

There is stack trace:

Uncaught exception in main:

java.lang.IllegalAccessException: A member of the "class Notepad" with "public static" modifiers
can not be accessed from the "class org.apache.harmony.vm.JarRunner"

        at java.lang.reflect.ReflectExporter.checkMemberAccess(ReflectExporter.java:87)

        at java.lang.reflect.Method.invoke(Method.java:311)

        at org.apache.harmony.vm.JarRunner.main(JarRunner.java:80)



        Summary: Notepad.jar cannot open with "-jar" parameter  (was: Notepad.jar cannot open
with "-jar" parameter in newest debug build)

> Notepad.jar cannot open with "-jar" parameter
> ---------------------------------------------
>
>                 Key: HARMONY-5201
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5201
>             Project: Harmony
>          Issue Type: Bug
>         Environment: Win32
>            Reporter: Linbin Yu
>
> One demo of Sun JDK 1.5 , Notepad.jar, cannot open with "-jar" parameter:
> (Snapshot R575777, R580985 and R597678)
> "java -jar Notepad.jar" leads to crash, but "java -cp Notepad.jar Notepad" is OK.
> Other jars like FileChooserDemo.jar, Stylepad.jar, Java2Demo.jar, they are all OK.
> There is stack trace:
> Uncaught exception in main:
> java.lang.IllegalAccessException: A member of the "class Notepad" with "public static"
modifiers can not be accessed from the "class org.apache.harmony.vm.JarRunner"
>         at java.lang.reflect.ReflectExporter.checkMemberAccess(ReflectExporter.java:87)
>         at java.lang.reflect.Method.invoke(Method.java:311)
>         at org.apache.harmony.vm.JarRunner.main(JarRunner.java:80)

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