Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNI

 
Thomas White
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,
I have JNI problem pertaining to a C++ file compilation.
Let me start with what I have:
I have a java program Timex.java that implements JNI:

I also have the header file Timex.h:

and I have the .cpp file time_clock.cpp:

I compiled the java program file, create the .h file fine, then I go to compile time_clock using the following commands:
g++ -fpic -I c:\j2sdk1.4.1_03\include
-I c:\j2sdk1.4.1_03\include\win32
time_clock.cpp
I get a long list of error messages not pertaining to time_clock.cpp but pertaining to the code in jni.h and jni_md.h. I've never tampered with these files. Could they have gotten messed up some how, could they be deprecated? I'm confused. Any help would be greatly appreciated.
Thanks,
Thomas
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without seeing the errors you get, I can only suggest that they may be due to the fact that you are not using a microsoft compiler.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic