-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.ClassFormatError #9
Comments
Interesting. Can you tell me more about your environment? Also, how are you running the classfile? |
windows xp C:\java_example>bitec myfile.bs C:\java_example>java myfile myfile.bs: |
weird which version of bitescript are you using? it worked for me with 0.0.8, 0.0.9 and latest. 0.0.7 gives me an error on compilation. |
D:>jruby -S gem list bite *** LOCAL GEMS *** bitescript (0.0.9, 0.0.8) if biting the myfile.bs, it's ok, the "hello, world" is the result. C:\java_example>bite myfile.bs But,when your compiling it to class file, and then running it, the error will be there. |
Huh, I don't get that. I don't have a windows box to test on though. Does this happen with any of the other examples? |
There have been a lot of encoding fixes for JRuby in 1.6.4 and 1.6.5. Perhaps one of those fixed it? Please retest and reopen if necessary. |
my jruby version is 1.6.6, but this issue is still there: C:\jruby-1.6.6>java SimpleLoop C:\jruby-1.6.6>java -version C:\jruby-1.6.6>jruby -S gem list bitescript *** LOCAL GEMS *** bitescript (0.1.0) |
I just made a fix. It works well now. You can get it from my branch for a test. I've already send a pull request to the author. |
I compiled the example code successfully using jruby, but when running the class SimpleLoop, some exceptions are thrown out :
Exception in thread "main" java.lang.ClassFormatError: Illegal UTF8 string in co
nstant pool in class file SimpleLoop
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
The text was updated successfully, but these errors were encountered: