Hi, I'm trying to build a project with mvn compile / install.
Maven is able to download it as a dependency though, I can use system-hook while running the program through my IDE.
The maven built jar can't be run though.
This is the error:
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: lc/kra/system/keyboard/event/GlobalKeyListener
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
at java.lang.Class.getMethod0(Class.java:3018)
at java.lang.Class.getMethod(Class.java:1784)
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
Caused by: java.lang.ClassNotFoundException: lc.kra.system.keyboard.event.GlobalKeyListener
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 7 more
From my pom.xml:
<dependencies>
<dependency>
<groupId>lc.kra.system</groupId>
<artifactId>system-hook</artifactId>
<version>3.5</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>system-hook-mvn-repo</id>
<url>https://raw.githubusercontent.com/kristian/system-hook/mvn-repo/</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
</repository>
</repositories>
Any ideas?
Hi, I'm trying to build a project with mvn compile / install.
Maven is able to download it as a dependency though, I can use system-hook while running the program through my IDE.
The maven built jar can't be run though.
This is the error:
From my pom.xml:
Any ideas?