Reputation: 1040
Now on this machine earlier just typing in the command prompt: java
resulted in the command prompt saying java wasn't recognized. now the machine does have java installed , so I just added the java home and javahome/bin to path. and now pressing java causes java to be recognized but by double clicking a jar file, but I am not getting the software to run. But when I go to command prompt and type in the prompt "java -jar nameofJar.jar" the application runs fine. Not sure what is the issue. I added the environment variables to make sure it targets the jar file. I do notice something its not seeing the jar file as a "Executable jar file" simple a "jar file".
Upvotes: 2
Views: 1597
Reputation: 2503
You have to tell java to execute your file with javaw.exe
as told by @Carcigenicate
Upvotes: 2