Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Sorry, this is the error I am getting
compile-native:
[echo] Creating JNI Headers...
[javah] [No need to update file RegularFileObject[C:\JNativeHook\src\native\
jni\org_jnativehook_GlobalScreen.h]]
[echo] Compiling C source...
[mkdir] Created dir: C:\JNativeHook\bin\obj
[mkdir] Created dir: C:\JNativeHook\bin\obj\common
[mkdir] Created dir: C:\JNativeHook\bin\obj\jni
[mkdir] Created dir: C:\JNativeHook\bin\obj\windows
[echo] Applying gcc.exe on the following files: common\NativeErrors.c;commo
n\NativeGlobals.c;jni\org_jnativehook_GlobalScreen.c;windows\NativeHelpers.c;win
dows\NativeThread.c;windows\NativeToJava.c;windows\WinInputHelpers.c;windows\Win
UnicodeHelper.c
[apply] In file included from C:\JNativeHook\src\native\common\NativeErrors.
c:19:0:
[apply] C:\JNativeHook\src\native\common\/NativeErrors.h:36:17: fatal error:
jni.h: No such file or directory
[apply] compilation terminated.
[apply] gcc.exe: Files\Java\jdk1.7.0_45\include: No such file or directory
[apply] gcc.exe: Files\Java\jdk1.7.0_45\include\win32: No such file or direc
tory
BUILD FAILED
C:\JNativeHook\build.xml:704: apply returned: 1
Total time: 3 seconds
Original comment by torti....@gmail.com
on 5 Jan 2014 at 9:07
Its because you have the JDK installed at a location with spaces in it. IIRC
you can edit the build.properties file and add quotes around -I"C:\Program
Files\Java\jdk1.7.0_45\include" and -I"C:\Program
Files\Java\jdk1.7.0_45\include\win32"
Original comment by a...@1stleg.com
on 5 Jan 2014 at 9:34
This has been addressed in 1.2 on github.
Original comment by a...@1stleg.com
on 5 Jan 2014 at 9:34
Original comment by a...@1stleg.com
on 5 Jan 2014 at 11:32
Thank you! Solved the problem!
Original comment by torti....@gmail.com
on 5 Jan 2014 at 11:34
Original issue reported on code.google.com by
torti....@gmail.com
on 5 Jan 2014 at 8:52