• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

B&S: Creation of the delivery-jar.

 
Jens Peter Troelsen
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have been reading these boards since starting the development of my Java Developer assignment, and it have been a great help!

As of now, the only thing I need to do, is package it all up in a JAR-file. In my instructions is says, that I must create a "runme.jar" that contains a folder called "code" where my source code is in, and a folder called "docs" with my documentation.

My problem is this; I can't seem to create a Manifest-file that allows the execution of the runme.jar using the simple "java -jar runme.jar" command.

I'm trying to point to code/suncertify/Main, where my Main-class is, but my problem is - I think - that in my code-files the package-structure does not contain "code". Or is that folder just for the .java files, and if so, where should I point the manifest-file, and should I include some binaries? The thing that confuses me the most, is that I'm unsure of what to include, and the instructions don't help me there..

I was further confused when I read, that you had to create a "submission.jar", my instructions does not say anything about this..

Thanks in advance,

Jens Peter, Denmark.

(and merry christmas )
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Partner, you have to create the runme.jar file only with the .class files. For this .jar file, you have to create a MANIFEST.INF file that allows its execution, based on the arguments that your application has to expect. For instance this is how my MANIFEST file looks like:

Manifest-Version: 1.0
Main-Class: suncertify.ApplicationStart

Your runme.jar file won't be executed from inside the final .jar file, which will contain everything (code, javadocs, docs, etc), including the runme.jar file. The runme.jar file will be extracted and executed from outside the final .jar file.

The name of your final .jar file will be something like this:

scjda-<your prometric testing ID>.{jar | zip}
[ December 22, 2008: Message edited by: Roberto Perillo ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic