Error invoking method, failed to launch jvm

前端 未结 7 2215
心在旅途
心在旅途 2020-12-01 16:25

I\'m developing a desktop application using javafx v8.0.40. I have created an exe file with inno 5. When I run exe file in my computer, it is installed and run without any p

7条回答
  •  青春惊慌失措
    2020-12-01 17:11

    I could not fix the problem, but I found a way around it. I used notepad to create a batch file to launch the app. First I used cd to get to the directory of the .jar file and then used java -jar to launch the app. It should look something like this:

    cd C:\[wherever your project folder is located]\[name of project]\dist
    java -jar [name of project].jar
    

    Save it as a .bat file on the desktop, launch the batch file and your program will boot!

提交回复
热议问题