No subject
Sat Nov 12 19:29:10 PST 2005
in this case Hello is the name
> -----Original Message-----
> From: Gautam Kapoor [SMTP:gautamk at pspl.co.in]
> Sent: Monday, April 30, 2001 12:01 AM
> To: Thanh To; Advanced-java at lists.xcf.berkeley.edu
> Subject: RE: [Advanced-java] cannot dynamically
>
> Hi,
> Can you tell me what is the name of your lib file?
> libhello.so or hello.so?
> If possible, please attach your source file
> -Gautam
>
> -----Original Message-----
> From: advanced-java-admin at lists.xcf.berkeley.edu
> [mailto:advanced-java-admin at lists.xcf.berkeley.edu]On Behalf Of Thanh To
> Sent: Thursday, April 26, 2001 8:27 PM
> To: Advanced-java at lists.xcf.berkeley.edu
> Subject: [Advanced-java] cannot dynamically
>
>
> load executable
> Date: Thu, 26 Apr 2001 14:56:58 -0000
> Mime-Version: 1.0
> Content-Type: text/plain; format=flowed
>
> Hello,
>
> i hope that you can help me, i'm trying to learn more about Java, in
> particular Jni area and it's applications. So far, i'm just follow the
> example in the JNI overview and created the files HelloJava.java and
> HelloJava.java. i'm successfully created the loading shared library for
> it,
> however, when i run the command 'java HelloJava' i get the following error
> messages:
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> /home/thanh/fipa_os/src/fipaos/my_proj/libhello.so:
> /home/thanh/fipa_os/src/fipaos/my_proj/libhello.so: cannot dynamically
> load executable
> at java.lang.ClassLoader$NativeLibrary.load(Native Method)
> at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
> at java.lang.Runtime.loadLibrary0(Runtime.java:749)
> at java.lang.System.loadLibrary(System.java:820)
> at HelloJava.<clinit>(HelloJava.java:16)
>
> Could someone tell me what wrong with it?
>
> i also get the error message when i just copy exactly the example
> 'HelloWorld' from the java tutorial when i'm trying to create the
> shared library for it. Here are the command and the errors:
>
> gcc -g -I/usr/java/jdk1.3.0_02/include -g
> -I/usr/java/jdk1.3.0_02/include/linux HelloWorld.cc -o
> libHelloWorld.so
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function
> `_start':
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18):
> undefined reference to `main'
>
> Thanks in advance,
>
> Thanh
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> _______________________________________________
> Advanced-java mailing list
> Advanced-java at lists.xcf.berkeley.edu
> http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java
>
> _______________________________________________
> Advanced-java mailing list
> Advanced-java at lists.xcf.berkeley.edu
> http://lists.xcf.berkeley.edu/mailman/listinfo/advanced-java
More information about the Advanced-java
mailing list