I have created a very simple test application to display Hello World in a form. The code is as follows:
import javax.swing.*;
/**
* Created by Ian on 4/30/14.
*/
public class Test {
private JPanel panel1;
public static void main(String[] args) {
JFrame frame = new JFrame("Test");
frame.setContentPane(new Test().panel1);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
}
}
the form is
This works fine in the IDE so I tried creating a jar file using an arcive in the project structure and then building it. The manifest file created looks like
Manifest-Version: 1.0
Class-Path: ./Test.jar
Main-Class: Test
The app will not run from my mac desktop or terminal program. Getting a class not found message in the terminal
Can someone please point me in the right direction?