Solved

creating executable excel library jar problem

Posted on 2007-04-06
3
321 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:
mayankeagle 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:mayankeagle
ID: 18903121
Havent been online in a while - what was the reason for the B grade?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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 …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
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 …

708 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

11 Experts available now in Live!

Get 1:1 Help Now