'JAR File is working in Eclipse but not in CMD ( java.lang.RuntimeException: Environment (windows) with architecture (x86) is not supported)

Im trying to create a Voice assitant using Java. Im using the Picovoice API. Java Eclipse runs my code perfectly without any Issues, but when I export the project as Runnable JAR and run it through my cmd ("java -jar WakeWord.jar") Im getting this Error:

Exception in thread "main" java.lang.ExceptionInInitializerError
    at ai.picovoice.porcupine.Porcupine$Builder.build(Porcupine.java:204)
    at de.VoiceRecognition.ball.WakeWordDetection.main(WakeWordDetection.java:73)
Caused by: java.lang.RuntimeException: Environment (windows) with architecture (x86) is not supported by Porcupine.
    at ai.picovoice.porcupine.Utils.getArchitecture(Utils.java:196)
    at ai.picovoice.porcupine.Utils.<clinit>(Utils.java:41)
    ... 2 more

Im confused because it works in the Eclipse IDE but not on my Desktop through CMD Prompt on Windowsx86(AMD64).



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source