• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

B&S: Creation of the delivery-jar.

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 )
Posts: 2292
Eclipse IDE Spring Java
  • 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 ]
Maybe he went home and went to bed. And took this tiny ad with him:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic