The JAR file not open(it open with the winRAR)?
- by Tofiq
Hi
I'm working with the netbeans and I create a jar file, but it not opened with the java. When I try to open it opened with the winRAR program.
This is the MainClass code:
public class MainClass {
public static void main(String arg[]){
Ludec cal=new Ludec();
cal.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
cal.setSize( 314, 380 );
cal.setLocation(600,150);
cal.setVisible( true );
}
}
It run in the cmd by this command:
java -jar "C:\Users\Tofiq\Documents\NetBeansProjects\JavaApplication1\dist\JavaApplication1.jar"
but not run by clicking and its error: