java - Trouble creating a working .jar -


how can create .jar executable class file? found pretty simple instructions online involve creating manifest , condensing terminal.

the complicating factor, however, way programmed thing, class file own client...it works fine in compiler i'm thinking might somehow change standard manifest? program looks this:

import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*;  public class schedule implements actionlistener {   public static void main(string[] args) {     schedule gui = new schedule();   }   public schedule() {     public void actionperformed(actionevent event) {       //...     }     //...     private class checkboxlistener implements itemlistener {       //...     }   } } 

after compiled schedule program, compiler added bunch of additional classes directory, in directory there's schedule.class, called schedule$1.class, schedule$checkboxlistener.class , bunch of other classes (formatted schedule$checkboxlistener.class).

simple put, i'm wondering manifest file should like. right now, have:

main-class: schedule 

but doesn't produce working .jar file. doing wrong?

did put class files inside jar file? never mentioned doing that. see creating jar file, or works this:

jar cf file.jar input-file(s) 

you can open jar file using program can open zip files, winzip or 7-zip. or can use jar command line tool:

jar tf file.jar 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -