I have a .bat file which is my .jar file launcher. The .jar file is a native application that talks with a Chrome extension. I have the following .bat file:
@echo off
rem set JARFILE = %CD%\MyNativeApp.jar
java -jar C:\Users\reza.ahmadi\workspace\SimpleNativeApp\bin\MyNativeApp.jar
pause
The .jar and the .bat files are in the same folder (along with my manifest). It works well.
My problem: It does not work if I replace that path there with just the file name, meaning:
java -jar MyNativeApp.jar
does not work for me. I am working with a Win 8 machine.
Any comments would be appreciated.