Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » JNI: Compiled succesfull, hang on execute [1/3] "strlen.h" (1/1)
JNI: Compiled succesfull, hang on execute [1/3] "strlen.h" (1/1) [message #143371] Sat, 16 April 2005 19:29
Eclipse UserFriend
Originally posted by: MatthiasBecker.hamburg.de

Hello

i have a problem with getting JNI running.
Attached to this post are my three files. When i try to execute the java file
the programm just hangs when it comes to the System.load() command. I am not
sure whether the DLL is loaded or not.

This is my compiler command:
gcc -I"c:\java\include\win32" -O3 -Wall -c -fmessage-length=0

And this is my linker command:
dllwrap --output-def simplejni.def --add-stdcall-alias

(I found this linker part in a post earlier to this problem but so far it did
not help me.)

This is my output:
------------------------------------------------------------ -------------------------------
**** Full rebuild of configuration Release for project JNI_Test_C ****

make -k clean all
rm -rf StrLen.o StrLen.d JNI_Test_C.dll
Building file: ../StrLen.c
gcc -Ic:\java\include\win32 -O3 -Wall -c -fmessage-length=0 -oStrLen.o
.../StrLen.c
Finished building: ../StrLen.c

Building target: JNI_Test_C.dll
dllwrap --output-def simplejni.def --add-stdcall-alias -o JNI_Test_C.dll
StrLen.o
dllwrap: no export definition file provided.
Creating one, but that may not be what you want
Finished building: JNI_Test_C.dll
Build complete for project JNI_Test_C
------------------------------------------------------------ -------------------------------
Unfortunally i am not familar with the dllwrap command so i dont know what the
error "dllwrap: no export definition file provided." really means...

I am useing eclipse 3.0.2 with cdt 2.1.1. The project is a managed C project.

Thanks in advantage
Matthias

  • Attachment: strlen.h
    (Size: 0.39KB, Downloaded 120 times)
Previous Topic:JNI: Compiled succesfull, hang on execute [2/3] "StrLen.c" (1/1)
Next Topic:Vc toolkit 03 and CDT
Goto Forum:
  


Current Time: Wed Jul 17 17:08:39 GMT 2024

Powered by FUDForum. Page generated in 0.03018 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top