Solved

creating executable excel library jar problem

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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 about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

911 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

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now