CodeBaseX / jav8

Automatically exported from code.google.com/p/jav8
0 stars 0 forks source link

invalid ELF header #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Copied over the example code from the projects' page
2. Created a simple App, included the jar dependency
3. Built and executed the app with: java -cp 
"target/classes:target/classes/jav8-jsr223-Darwin-amd64-0.4.jar" 
com.mycompany.jav8test.App

What is the expected output? What do you see instead?
Here is the full error log:

ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: 
Provider lu.flier.script.V8ScriptEngineFactory could not be instantiated: 
java.lang.UnsatisfiedLinkError: /tmp/libjav83438421088985770011.so: 
/tmp/libjav83438421088985770011.so: invalid ELF header (Possible cause: 
endianness mismatch)
Exception in thread "main" java.lang.NullPointerException
    at com.mycompany.jav8test.App.main(App.java:18)

What version of the product are you using? On what operating system?
OS: Ubuntu 12.04, 64 bit
Java: "1.6.0_27"

Original issue reported on code.google.com by ako...@gmail.com on 7 Apr 2013 at 8:08

GoogleCodeExporter commented 9 years ago
Hi, Akos

Have you already figured this out? 
I'm facing the same problem using the same configuration as yours.

Please, let me know about any progress on that. Help is greatly appreciated.

Thanks

Original comment by edum...@gmail.com on 27 Apr 2013 at 6:39

GoogleCodeExporter commented 9 years ago
Please ensure you build jav8 and your sample program both in x64 mode

Original comment by flier...@gmail.com on 13 Jun 2013 at 9:58

GoogleCodeExporter commented 9 years ago

Original comment by flier...@gmail.com on 14 Jun 2013 at 6:45