Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 189690 - [Launcher] JNI launching does not work with Harmony VM
Summary: [Launcher] JNI launching does not work with Harmony VM
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: equinox.framework-inbox CLA
QA Contact:
URL: http://harmony.apache.org
Whiteboard:
Keywords:
Depends on:
Blocks: 196006
  Show dependency tree
 
Reported: 2007-05-29 11:06 EDT by Andrew Niefer CLA
Modified: 2007-11-08 10:51 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Niefer CLA 2007-05-29 11:06:06 EDT
We want to be able to launch the harmony vm using the JNI invocation API.  Pointing at harmony's java.exe works.
0) Instructions for using harmony's java.exe involve setting PATH to include jre/bin, as well has JAVA_HOME to jre.

1) jre/bin/default/harmonyvm.dll appears to be the entry point.  Though it contains a "_JNI_CreateJavaVM@12" instead of "JNI_CreateJavaVM", the launcher will need to load this symbol if this is the correct entry method.

Currently with the above, we crash in the call to JNI_CreateJavaVM:
Thread [1] (Suspended: Signal 'SIGSEGV' received. Description: Segmentation fault.)	
2 harmonyvm!?classloader_find_native@@YAP6AXXZQAUMethod@@@Z()  0x00a8ecd8	
1 <symbol is not available> 0x00000000
Comment 1 Andrew Niefer CLA 2007-05-30 15:39:09 EDT
I have raised https://issues.apache.org/jira/browse/HARMONY-4006 against Harmony.
Comment 2 Andrew Niefer CLA 2007-11-08 10:51:34 EST
Harmony is working via JNI using harmony version > 582306.

I used 587111 to test this.