Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Export jar file, multiple jar files
Export jar file, multiple jar files [message #312735] Sun, 18 February 2007 11:46 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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>
Re: Export jar file, multiple jar files [message #312738 is a reply to message #312735] Sun, 18 February 2007 18:12 Go to previous messageGo to next message
Eclipse UserFriend
You can try the following :

Class-Path: or124.jar jh.jar VRPHelp.jar

The Class-Path entries are separated by space.

Snjeza

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
>
>
Re: Export jar file, multiple jar files [message #312741 is a reply to message #312736] Mon, 19 February 2007 01:07 Go to previous message
Eclipse UserFriend
Originally posted by: ilan.tal.gmail.com

Ed and Snjezana thanks for the replies.
It is up and flying.
I used the space to separate since it was easier.

Ilan
Previous Topic:Terminate thread in debugger
Next Topic:Refresh decorator
Goto Forum:
  


Current Time: Fri May 09 14:19:58 EDT 2025

Powered by FUDForum. Page generated in 0.02720 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top