?
Solved

creating executable excel library jar problem

Posted on 2007-04-06
3
Medium Priority
?
340 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 1500 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month13 days, 6 hours left to enroll

801 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