Monday, September 8, 2008

ou have to write a manifest file, either using a text editor, or with the "new->untitled text file" option on Eclipse. This is what I wrote
quote:
Manifest-Version: 1.0
Class-Path: java-cup-11a.jar java-cup-11a-runtime.jar
Main-Class: uk.co.critchie.eiffel.test.EiffelFileReader

. . . remembering to put a "return" at the end of the last line.

Then you go through the usual procedure for creating a .jar:
  • Right-click the project in "package" on the left.
  • Export
  • Java->Jar File
  • Click on name of project
  • After the page where it says "packaging"->next
  • Mark the radio button where it says "use existing manifest"
  • Navigate to the manifest file, then "finish"

You need to put all the required files into the directory where the .jar file is.
Bingo. It is all working.

No comments: