wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes cannot create dll with JNI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "cannot create dll with JNI" Watch "cannot create dll with JNI" New topic
Author

cannot create dll with JNI

bharani rao
Ranch Hand

Joined: Apr 06, 2009
Posts: 164
hi all,

i have a c++ coding for a softphone. I opened that file in vc++ and i'm able to create a .exe file from that.
the .exe file is running fine( it is searching for the server and is getting registered there).

now i wanted to add jni to it.

so i have written a java program to one of the methods in the c++ program( void pjstart() ), compiled it and created a header file.
now i replaced the c++ function with the stuff generated in the header file,( JNIEXPORT void JNICALL Java_test_pjstart(JNIEnv *env, jobject jobj) )

now i'm unable to build that file in vc++. it is showing some errors..





why is that throwing errors...
is there something wrong???

any suggestions please...

thanks in advance
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Ummm... this is a page full of C++ compiler errors. You treat it just like a page of Java compiler errors. You go to the first one, and find out what the problem is, fix it, and compile again. I'm not really sure what's up with the xiosbase errors, so I might look first at line 37 of c:\program files\microsoft visual studio 8\vc\bin\test1\test1\test1.cpp and see why it wants a semicolon.

All this presupposes that you actually know C++. If you don't, then go off and learn some, and then come back to this project!


[Jess in Action][AskingGoodQuestions]
bharani rao
Ranch Hand

Joined: Apr 06, 2009
Posts: 164
thank you Ernest
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: cannot create dll with JNI
 
Similar Threads
UnsatisfiedLinkError in my first JNI program
Java: connecting to mysql [Unsolved]
Create DLL using JNI
calling C from java
Problem in running JNI with in servlet