Menu

#6 HelloWorld example doesn't work

open
nobody
None
5
2012-10-09
2012-10-09
mcandre
No

When I try to run the HelloWorld example, it doesn't work.

Trace:

C:\>java -jar jasmin.jar examples\HelloWorld.j
Generated: NoJad\j.class

C:\>java NoJad.j
Exception in thread "main" java.lang.VerifyError: (class: NoJad/j, method: main
signature: ([Ljava/lang/String;)V) Expecting to find object/array on stack
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getMethod0(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at sun.launcher.LauncherHelper.getMainMethod(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

For some reason, the included HelloWorld.j example assembly file tries to create "NoJad/j.class" instead of "examples/HelloWorld.class", and the NoJad/j.class doesn't run properly.

Specs:

* Jasmin 2.4
* Java 1.7
* Windows 7 Professional x64
* MacBook Pro 2009

Discussion


Log in to post a comment.