Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Newbie Question Compiling App

$
0
0

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

hello world.tiff
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?

Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>