jar help

CIQUERY - technical support experts on software ,hardware,IT platforms  
 CIQUERY - technical support experts on software ,hardware,IT platforms  
profile name: NOT LOGGED ON
Forums | MY PROFILE | ALL OPEN QUESTIONS | MY QUESTIONS | Technical Support Categories| LOG OUT |
Java: jar help
category preference
UK IT Jobs - www.itjobfeed.com

Category: Java
Question title: jar help
Question details:
 
answer given(1)SP wrote:
> hi
> i have been trying to make a jar file for the following files
>
> hello.java
> hello.class
> with the following command
>
> jar cf hello.jar hello.*
>
> it is created and with
> jar tf hello.jar
>
> i am able to see the list of files which is in this case
> META-INF/
> META-INF/MANIFEST.MF
> hello.class
> hello.java
>
> but it doesn't run with
> java -jar hello.jar
>
> following error appears
> Failed to load Main-Class manifest attribute from
> hello.jar
>
> i tried to fix it with
>
> jar cfm hello.jar mymainclass hello.*(after creating mymainclass with the
> entry Main-Class: path.hello)
>
> to no avail!
> and another thing is although the dir META-INF is shown as above it is not
> created in the folder..where is it created??
>
> help please
>
> Greetingz
> Sunil
>
>

To add to the other two responses, you might find a tool such as JavaJar
useful: http://pivotonic.com/


answered by:System

 

Digg This : Click to email a colleague


© CIQUERY 2009Factsheet  |Blog  |Browse IT jobs  |Advertisers  | Job Tools  |Resources  |Companies  | Contact Us  | ITjobfeed Home