Export jar file, multiple jar files [message #312735] |
Sun, 18 February 2007 11:46  |
Eclipse User |
|
|
|
Originally posted by: ilan.tal.gmail.com
A while back I had a question of how to export a jar file.
Then I needed to use a single external jar file which I finally learned to
put in the manifest as:
<code>
Manifest-Version: 1.0
Main-Class: vrp.VRP
Class-Path: or124.jar
</code>
This worked very nicely, but now I want to add on line help.
I have my help in a jar file called VRPHelp.jar and I also need the java
help as jh.jar.
Inside eclipse this all works fine. I imported 3 external jar files:
or124.jar, jh.jar and VRPHelp.jar and when I press the help button, up
comes the help.
Now I want to export it. If I change my manifest to
<code>
Manifest-Version: 1.0
Main-Class: vrp.VRP
Class-Path: or124.jar;jh.jar;VRPHelp.jar
</code>
it tells me it can't find the main entry point. If I leave it as it was,
the program never comes up (presumably because it is searching for the
help which it doesn't find).
Thus my question is: how do I put in multiple external jar files?
Thanks,
Ilan
|
|
|
Re: Export jar file, multiple jar files [message #312736 is a reply to message #312735] |
Sun, 18 February 2007 11:56   |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
This is a multi-part message in MIME format.
--------------000600060708060500000604
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
Ilan,
If I add a jar to the MANIFEST.MF using PDE, it formats it like this:
Bundle-ClassPath: .,
extra.jar
So maybe the semicolons aren't the right thing to use...
Ilan
Ilan Tal wrote:
> A while back I had a question of how to export a jar file.
> Then I needed to use a single external jar file which I finally
> learned to put in the manifest as:
> <code>
> Manifest-Version: 1.0
> Main-Class: vrp.VRP
> Class-Path: or124.jar
> </code>
> This worked very nicely, but now I want to add on line help.
> I have my help in a jar file called VRPHelp.jar and I also need the
> java help as jh.jar.
> Inside eclipse this all works fine. I imported 3 external jar files:
> or124.jar, jh.jar and VRPHelp.jar and when I press the help button, up
> comes the help.
> Now I want to export it. If I change my manifest to
> <code>
> Manifest-Version: 1.0
> Main-Class: vrp.VRP
> Class-Path: or124.jar;jh.jar;VRPHelp.jar
> </code>
> it tells me it can't find the main entry point. If I leave it as it
> was, the program never comes up (presumably because it is searching
> for the help which it doesn't find).
>
> Thus my question is: how do I put in multiple external jar files?
>
> Thanks,
> Ilan
>
>
--------------000600060708060500000604
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ilan,<br>
<br>
If I add a jar to the MANIFEST.MF using PDE, it formats it like this:<br>
<blockquote>Bundle-ClassPath: .,<br>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02720 seconds