When you double click the desktop shortcut for executing your Java program, the following message pops up.
To fix this, right-click on your desktop shortcut icon and select Properties. In the Target field in the new pop up window, type 'java <your execute program>' or 'java -jar <your executable jar name>', then click the "Apply" button at the bottom, it will automatically put the correct path in the Target field.
----------------------------------------------------------------------------------------------------------------------
If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book free here.
To fix this, right-click on your desktop shortcut icon and select Properties. In the Target field in the new pop up window, type 'java <your execute program>' or 'java -jar <your executable jar name>', then click the "Apply" button at the bottom, it will automatically put the correct path in the Target field.
----------------------------------------------------------------------------------------------------------------------
If you have ever asked yourself these questions, this is the book for you. What is the meaning of life? Why do people suffer? What is in control of my life? Why is life the way it is? How can I stop suffering and be happy? How can I have a successful life? How can I have a life I like to have? How can I be the person I like to be? How can I be wiser and smarter? How can I have good and harmonious relations with others? Why do people meditate to achieve enlightenment? What is the true meaning of spiritual practice? Why all beings are one? Read the book free here.
Am encountering the same prob. What shud I type in the target field ? Can u pls explain it further ?
ReplyDeleteThis error means that the specified path of your java.exe (C:\ProgramData\Oracle\Java\javapath\java.exe here) does not exist. You may check the java.exe location in the directory of your java home to make sure you use the correct path. Or you can set your JAVA_HOME and PATH environmental variables, you then only enter java MyProgramClass or java -jar MyProgram.jar in the Target field.
Delete