harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vera Petrashkova (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-1850) [drlvm] VM reports Internal Error when -Djava.library.path oprion is specified
Date Fri, 13 Oct 2006 05:37:36 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1850?page=all ]

Vera Petrashkova updated HARMONY-1850:
--------------------------------------

    Attachment: JNITest.zip

JNITest.zip file contains JNITest source code, class and libraries.

> [drlvm] VM reports Internal Error when -Djava.library.path oprion is specified
> ------------------------------------------------------------------------------
>
>                 Key: HARMONY-1850
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1850
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows and Linux
>            Reporter: Vera Petrashkova
>         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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message