Interfacing C with Java on Linux -


for project need able use c programs through java. our teachers have told can use mingw seems work on windows, , machine running linux (mint 18). saw posts using javah, when attempt use it, following message

> javah hellojni program 'javah' can found in following > packages:  * gcj-4.8-jdk  * openjdk-7-jdk  * gcj-4.6-jdk  * > openjdk-6-jdk try: sudo apt-get install <selected package> 

so try sudo apt-get install javah , get

> sudo apt-get install javah [sudo] password jess:  reading package > lists... done building dependency tree        reading state > information... done e: unable locate package javah 

what doing wrong? can give me pointers on how this? x

javah part of jdk (java development kit).

you can here:

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

after installing jdk, able use javac, javah, , lots more software related java development.

if want start sample code, suggest go here:

http://jnicookbook.owsiak.org/recipe-no-001/

there, can find step step instruction on how write, compile , run jni based code. have fun!


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -