Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to export java application jar and set Class-Path?
How to export java application jar and set Class-Path? [message #172545] Tue, 26 September 2006 09:33 Go to next message
Eclipse UserFriend
Originally posted by: fukanchik.gmail.com

Hi,
i have project and wish to export it as single jar file.
Project console based and doesn't use any eclipse plugins.
Project uses third party libraries packaged as jars.
I wish to store these libraries inside my jar and set
Class-Path in manifest accordingly.
I jave .jardesc for project, and since i can't find where
in 'JAR Export' wizard i can set class path, and jar export
wizard didn't use project's classpath during export i decided
to 'Use existing manifest from workspace' and create one
manually. Unfortunately wizard ignores my selection and always
generates it's own manifest and stores it into jar file. Is it
possible to either:
make that wizard use project's classpath (from 'Java Build Path')
or make it use my manifest file?
---
Serge
Re: How to export java application jar and set Class-Path? [message #172562 is a reply to message #172545] Tue, 26 September 2006 12:17 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Serge Fukanchik wrote:

> Hi,
> i have project and wish to export it as single jar file.
> Project console based and doesn't use any eclipse plugins.
> Project uses third party libraries packaged as jars.
> I wish to store these libraries inside my jar and set
> Class-Path in manifest accordingly.
> I jave .jardesc for project, and since i can't find where
> in 'JAR Export' wizard i can set class path, and jar export
> wizard didn't use project's classpath during export i decided
> to 'Use existing manifest from workspace' and create one
> manually. Unfortunately wizard ignores my selection and always
> generates it's own manifest and stores it into jar file.

If you specify to use the an existing manifest then it should work,
otherwise it is a bug which you should report against JDT UI.

Dani

> Is it
> possible to either:
> make that wizard use project's classpath (from 'Java Build Path')
> or make it use my manifest file?
> ---
> Serge
Previous Topic:CDT and gdb debugger problem
Next Topic:Dinamic contain of a composite
Goto Forum:
  


Current Time: Mon Sep 23 10:36:27 GMT 2024

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

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

Back to the top