Hello
I am trying to create an executable jar file. I create it successfully however when I double click on it,the 'open with' dialog opens up instead. Any ideas?
Cheers
code:
manifest-
Main-Class: MyClass
Classpath: .\MyJar.jar
command line
jar cvfm MyJar.jar manifest.mf MyClass.class
source:
import java.awt.*;
import java.awt.event.*;
public class MyClass {
public static void main(String[] args) {
Frame f = new Frame();
f.add(new Label("hi there"
);
f.setSize(200,200);
f.setVisible(true);
}
}
I am trying to create an executable jar file. I create it successfully however when I double click on it,the 'open with' dialog opens up instead. Any ideas?
Cheers
code:
manifest-
Main-Class: MyClass
Classpath: .\MyJar.jar
command line
jar cvfm MyJar.jar manifest.mf MyClass.class
source:
import java.awt.*;
import java.awt.event.*;
public class MyClass {
public static void main(String[] args) {
Frame f = new Frame();
f.add(new Label("hi there"
f.setSize(200,200);
f.setVisible(true);
}
}