java - Compilation failure in JNativeHook -


trying compile https://github.com/kwhat/jnativehook/wiki/compiling

made far step have run ant build.

compile fails following in command prompt.

    [javac] fatal error: unable find package java.lang in classpath or bootcl asspath  build failed c:\users\george\downloads\sounds\jnativehook-2.0.1\jnativehook\build.xml:394: co mpile failed; see compiler error output details.  total time: 0 seconds 

edit: copied rt file directory i'm trying compile. got past first error i'm getting

ava\org\jnativehook\mouse\nativemousewheellistener.java  download-libuiohook:  bootstrap-libuiohook:      [echo] bootstrapping libuiohook... [autoreconf] autoreconf --verbose --force --install  build failed c:\users\george\downloads\sounds\jnativehook-2.0.1\jnativehook\build.xml:351: ex ecute failed: java.io.ioexception: cannot run program "sh" (in directory "c:\use rs\george\downloads\sounds\jnativehook-2.0.1\jnativehook\src\libuiohook"): creat eprocess error=2, system cannot find file specified         @ java.lang.processbuilder.start(processbuilder.java:1048)         @ java.lang.runtime.exec(runtime.java:620)         @ org.apache.tools.ant.taskdefs.launcher.java13commandlauncher.exec(jav a13commandlauncher.java:58)         @ org.apache.tools.ant.taskdefs.execute.launch(execute.java:428)         @ org.apache.tools.ant.taskdefs.execute.execute(execute.java:442)         @ org.apache.tools.ant.taskdefs.exectask.runexecute(exectask.java:629)         @ org.apache.tools.ant.taskdefs.exectask.runexec(exectask.java:670)         @ org.apache.tools.ant.taskdefs.exectask.execute(exectask.java:496)         @ org.jnitasks.autotools.autoreconftask.execute(autoreconftask.java:113 )         @ org.apache.tools.ant.unknownelement.execute(unknownelement.java:293)         @ sun.reflect.generatedmethodaccessor4.invoke(unknown source)         @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodacces sorimpl.java:43)         @ java.lang.reflect.method.invoke(method.java:497)         @ org.apache.tools.ant.dispatch.dispatchutils.execute(dispatchutils.jav a:106)         @ org.apache.tools.ant.task.perform(task.java:348)         @ org.apache.tools.ant.target.execute(target.java:435)         @ org.apache.tools.ant.target.performtasks(target.java:456)         @ org.apache.tools.ant.project.executesortedtargets(project.java:1405)         @ org.apache.tools.ant.project.executetarget(project.java:1376)         @ org.apache.tools.ant.helper.defaultexecutor.executetargets(defaultexe cutor.java:41)         @ org.apache.tools.ant.project.executetargets(project.java:1260)         @ org.apache.tools.ant.main.runbuild(main.java:853)         @ org.apache.tools.ant.main.startant(main.java:235)         @ org.apache.tools.ant.launch.launcher.run(launcher.java:285)         @ org.apache.tools.ant.launch.launcher.main(launcher.java:112) caused by: java.io.ioexception: createprocess error=2, system cannot find th e file specified         @ java.lang.processimpl.create(native method)         @ java.lang.processimpl.<init>(processimpl.java:386)         @ java.lang.processimpl.start(processimpl.java:137)         @ java.lang.processbuilder.start(processbuilder.java:1029)         ... 24 more  total time: 1 second 

still diligently trying figure out in mean time.

update:

i think i've been going wrong. tried doing inside mingw64 how should have been doing it.

sadly still error i'm looking into.

compile-java:      [echo] compiling java source...  download-libuiohook:  bootstrap-libuiohook:      [echo] bootstrapping libuiohook... [autoreconf] autoreconf --verbose --force --install [autoreconf] autoreconf: entering directory `.' [autoreconf] autoreconf: configure.ac: not using gettext [autoreconf] autoreconf: running: aclocal --force -i m4 [autoreconf] aclocal-1.15: error: aclocal: file '/msys64/usr/share/aclocal/xsize                    .m4' not exist [autoreconf] autoreconf: aclocal failed exit status: 1  build failed c:\users\george\downloads\sounds\jnativehook-2.0.1\jnativehook\build.xml:351: ex                    ec returned: 1  total time: 2 seconds 

update:

wow how many shells msys64 have. i've tried seems last , final shell msys2_shell.bat , gotten further still fails.

now get

jnativehook/bin --enable-debug --enable-quiet --enable-static --disable-shared --with-pic [configure] checking build system type... x86_64-pc-msys [configure] checking host system type... x86_64-pc-msys [configure] checking target system type... x86_64-pc-msys [configure] checking bsd-compatible install... /usr/bin/install -c [configure] checking whether build environment sane... yes [configure] checking thread-safe mkdir -p... /usr/bin/mkdir -p [configure] checking gawk... gawk [configure] checking whether make sets $(make)... yes [configure] checking whether make supports nested variables... yes [configure] checking style of include used make... gnu [configure] checking gcc... clang [configure] configure: error: in `/c/users/george/downloads/sounds/jnativehook-2.0.1/jnativehook/bin/libuiohook': [configure] checking whether c compiler works... no [configure] configure: error: c compiler cannot create executables [configure] see `config.log' more details  build failed c:\users\george\downloads\sounds\jnativehook-2.0.1\jnativehook\build.xml:361: exec returned: 77  total time: 37 seconds 

so close.

update:

installed clang , detailed error config.log file.

configure:3580: checking whether c compiler works configure:3602: clang -march=armv6j -mfpu=vfp -mfloat-abi=hard -os -g -pipe -fomit-frame-pointer -flto -ffat-lto-objects -fno-stack-protector  -wl,--as-needed,-o1 -flto conftest.c  >&5 clang.exe: warning: optimization flag '-ffat-lto-objects' not supported clang.exe: error: 'i686-pc-windows-gnu': unable pass llvm bit-code files linker configure:3606: $? = 1 configure:3644: result: no configure: failed program 

:

ok future jnativehook compiler noobies myself doing on windows 8.1 here had working.

aside following steps in compile windows section provided on git.

you need to...

download llvm windows. copy rt.jar jnativehook directory. , make sure absolutely make sure you've deleted build.properties generated failed builds.

that should working.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -