The Artima Developer Community
Sponsored Link

Java Answers Forum
Problem with jar archive

1 reply on 1 page. Most recent reply: Mar 12, 2002 10:17 AM by Charles Bell

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Davide

Posts: 1
Nickname: davide
Registered: Mar, 2002

Problem with jar archive Posted: Mar 11, 2002 9:39 AM
Reply to this message Reply
Advertisement
Hi,
I'm using IAIK JCE 3.0 Evaluation (a package for security) and JDK 1.4.0 to develop a project about signing.

I've set the classpath using
set CLASSPATH=%classpath%;<my-install-directory>\lib\iaik_idea.jar;

as suggested by IAIK

When I launch it using java.exe, it's all right: my project works perfectly.

However, when I make a jar archive, it doesn't work.

I'm using jar.exe:
jar cmf manifest.txt jarfile class1 class2 ... etc..

where manifest.txt contains: Main-Class: SigSystem

("SigSystem" is the main class)

When I launch it (using java -jar), project starts, but the following exception it's raised:

Exception in thread "main" java.lang.NoClassDefFoundError: iaik/pkcs/pkcs12/PKCS12 at SigSystem.main

This is the same exception which is raised if I launch the project without setting classpath (set CLASSPATH=%classpath%..etc etc)

Please, help me!


Charles Bell

Posts: 519
Nickname: charles
Registered: Feb, 2002

Re: Problem with jar archive Posted: Mar 12, 2002 10:17 AM
Reply to this message Reply
Edit you manifest file and ensure that there is this line or add it:

Name: SigSystem.class

If its the last entry in your manifest file make sure there is an extra line at the bottom of the file.

Flat View: This topic has 1 reply on 1 page
Topic: an ArrayList exceptions problem Previous Topic   Next Topic Topic: How to make a proper button listener ?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use