I have developed a swing application and executing under linux environment. jar file is present under /deo/temp/testing.jar. I have two issues to share now.
1. If I execute my jar file under /deo/temp>
java -jar testing.jar, I am able to see my application start running. But if I try like /deo>java -jar /temp/testing.jar, I get the error message "Main method not found"
How do I resolve this problem?
2. How do I create an icon so that when the user clicks the jar file, it starts executing. In windows, as I have developed using netbeans, if I double click the ajr file found under dist folder, the program starts executing. As the users are not aware of using command line prompt, I am supposed to make an icon on double clicking should start the program.
It would be very useful if I hear some expert advice on both the issues I have mentioned above. Thanks.