Application creating JAR, haven't got a clue .

Ok I've made an application it runs fine, but i want to have a JAR so its portable. But I can't get it to work, when i try to make a jar it says "No main arguments" so i create a text.txt containing.

"Main-Class: myprojects.HusIP.HusIP"

So at the command prompt Program Files\Java\..\..\bin> i type in:

jar mcfv text.txt HusIP.jar HusIP/*class

But it doesn't work, here is the code (minimized) can someone please help me out.

If you need anymore info just say so, i'm using Jcreator LE 4.00

import java.awt.*;

import java.awt.event.*;

import javax.swing.*;

publicclass HusIPextends JFrame{

publicstaticvoid main(String[] args){

new HusIP();

}

public HusIP(){

}

[1260 byte] By [MrHusa] at [2007-11-27 4:54:37]
# 1
Try changing the file from test.txt to Manifest.mf.I sometimes run into strange problems when I name my manifest file by any other name.
maple_shafta at 2007-7-12 10:09:22 > top of Java-index,Desktop,Deploying...