The JAR file not open(it open with the winRAR)?
Posted
by
Tofiq
on Stack Overflow
See other posts from Stack Overflow
or by Tofiq
Published on 2011-01-15T20:59:36Z
Indexed on
2011/01/15
22:53 UTC
Read the original article
Hit count: 126
java
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:
© Stack Overflow or respective owner