Solved

creating executable excel library jar problem

Posted on 2007-04-06
3
334 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
  • 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

Technology Partners: 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

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
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 …

679 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