• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JNI

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic