Skip to content

Simple JavaFX app demonstrating the use of jNativeHook in order to access global keyboard input event.

Notifications You must be signed in to change notification settings

dahuapp/DummyJavaFXNativeHook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Gradle JavaFX Native Hook project.

To run it install Gradle 1.6 and the last Java SE Development Kit 7.

Clone the project:

> git clone https://github.com/dahuapp/JavaFXGradleDummy.git
> cd JavaFXGradleDummy

Change the following environment variables in your current shell (please adapt the solution to your plateform and install settings):

export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_21
export JAVAFX_HOME=/usr/lib/jvm/jdk1.7.0_21
export JFXRT_HOME=/usr/lib/jvm/jdk1.7.0_21

Run the project:

> gradle run

To bundle the app for distribution do:

> gradle build

This will create a .dmg on Max OSx, .exe on Windows and .deb on Ubuntu

Info

In OSX you must activate accessibility.

To turn it on, type this in Terminal:

> sudo touch /private/var/db/.AccessibilityAPIEnabled

To then disable it, type this:

> sudo rm /private/var/db/.AccessibilityAPIEnabled

About

Simple JavaFX app demonstrating the use of jNativeHook in order to access global keyboard input event.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published