Solved

creating executable excel library jar problem

Posted on 2007-04-06
3
338 Views
Last Modified: 2013-11-23
I have a manifest file and using command jar cvfm myapp.jar myapp.MF * for creating an excutable.

However I havea n excel library jar file that is used by my java program to compile and run. This is in the ext/lib file. So when I use javac and java to run this woks fine.

Hwoever when I try to create the excutable the excutable jar gets created but this excel feature does not work.

what is the best corrrect way to package this?

Thanks
0
Comment
Question by:anup001
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 30

Accepted Solution

by:
Mayank S earned 500 total points
ID: 18864206
>> Hwoever when I try to create the excutable the excutable jar gets created but this excel feature does not work.

Are you running it using the same JDK/ JRE which you used earlier (when it worked)?

You might try placing the Excel library JAR file in the same folder as your application's executable JAR file and add a Class-Path entry in the manifest:

Class-Path: excelJARFile.jar

http://java.sun.com/docs/books/tutorial/deployment/jar/downman.html
0
 

Author Comment

by:anup001
ID: 18865724
That might b an issue as I ahve many versions of JRE under program fiels. However when I am running using javac from command line I am using the Jdk1.5 that is instaaed under c drive.

So I guess when I create the executable jar it references soe other JRE fro program files and not this one that is for sure.

0
 
LVL 30

Expert Comment

by:Mayank S
ID: 18903121
Havent been online in a while - what was the reason for the B grade?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question