Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Hamish Jones   on Sep 17 In Java Category.

  
Question Answered By: Cay Nguyen   on Sep 17

You need to include a manifest file  which looks something like this:

Manifest-Version: 1.0
Class-Path: lib/somelib.jar
Main-Class: com.anthonyeden.MainClass



(Note: There must be a line feed after the Main-Class header.)

This file must be called MANIFEST.MF in the META-INF directory of your
JAR. You can find  more information on this if you look for information
about executable JARs.

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Jar files not created/loading correctly Or get search suggestion and latest updates.


Tagged: