harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregory Shimansky (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-1850) [drlvm] VM reports Internal Error when -Djava.library.path oprion is specified
Date Sat, 27 Jan 2007 17:32:49 GMT

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

Gregory Shimansky closed HARMONY-1850.
--------------------------------------

    Resolution: Duplicate
      Assignee: Gregory Shimansky

Closing as duplicate of HARMONY-2335.

> [drlvm] VM reports Internal Error when -Djava.library.path oprion is specified
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-1850
>                 URL: https://issues.apache.org/jira/browse/HARMONY-1850
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows and Linux
>            Reporter: Vera Petrashkova
>         Assigned To: Gregory Shimansky
>         Attachments: JNITest.zip
>
>
> VM reports Internal Error and can not start when -Djava.library.path option is specified.
> When environment variables PATH and LD_LIBRARY_PATH are not specified then
> VM correctly throws 
>          UnsatisfiedLinkageError: Can not find library...
> But if -Djava.library.path option is defined in addition to PATH/LD_LIBRARY_PATH or without
these variables specification
> then VM does not start and reports the following error message:
>    HMYEXEL062E Internal VM error: Failed to create Java VM
>    FAILED to invoke JVM.
> Code for reproducing:
> ---------------JNITest.java----------------
> public class JNITest {
>     public static native void Hello();
>     public static void main (String argv[]) {
>         new JNITest().test();
>     }
>     public void test() {
>         Hello();  
>     }
>     static {
>         System.loadLibrary("JNITest");
>     }
> }
> ------------------JNITest.c-----------------------
> #include <jni.h>
> #include <stdio.h>
> JNIEXPORT void JNICALL Java_JNITest_Hello (JNIEnv *env, jclass cls) {
>   printf("Hello!\n");
> }
> ------------------------------------------------------
> 1) Create test libraries or use them from attachment
> 2) Set library to some "tmp" directory
> 3) Run test
>    java -cp . -Djava.library.path=tmp JNITest 
> Output on RI:
> ==============
> java version "1.5.0_06"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
> Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
> Hello!
>  
> Output on Harmony:
> ==================
> Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or
its licensors, as applicable.
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r454528, (Oct 12 2006), Windows/ia32/msvc 1310, release build
> http://incubator.apache.org/harmony
> HMYEXEL062E Internal VM error: Failed to create Java VM
> FAILED to invoke JVM.
> Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or
its licensors, as applicable.
> java version "1.5.0" 
> pre-alpha : not complete or compatible
> svn = r454528, (Oct 12 2006), Linux/ia32/gcc 3.3.3, release build
> http://incubator.apache.org/harmony
> HMYEXEL062E Internal VM error: Failed to create Java VM
> FAILED to invoke JVM.
>  
> If   -Dava.library.path is absent then test finishes successfully:
> Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or
its licensors, as applicable.
> java version "1.5.0" 
> pre-alpha : not complete or compatible
> svn = r454528, (Oct 12 2006), Linux/ia32/gcc 3.3.3, release build
> http://incubator.apache.org/harmony
> Hello!

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