Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » including external class files in export
including external class files in export [message #868159] Tue, 01 May 2012 17:23 Go to next message
Coraline Kay is currently offline Coraline KayFriend
Messages: 3
Registered: May 2012
Junior Member
Hello, Ive been working with eclipse since last november. I develop plugins for Bukkit, which is a type of minecraft server.

One of my latest plugins utilizes an external jar file, however, when exporting, my plugin isnt getting the class files from the external jar, i have to manually add them to the jar myself, which is a pain to do every time i do an export (which is fairly often)

I tried all sorts of things, modifying the build path, adding the source folder to the export, everything, but it refuses to add the class files i need.. Am i missing something?
Re: including external class files in export [message #868713 is a reply to message #868159] Wed, 02 May 2012 12:42 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4489
Registered: July 2009
Senior Member

Is that a plug-in for Eclipse or a plug-in for something else?

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: including external class files in export [message #868937 is a reply to message #868713] Wed, 02 May 2012 18:59 Go to previous messageGo to next message
Coraline Kay is currently offline Coraline KayFriend
Messages: 3
Registered: May 2012
Junior Member
oh no, nothing like that. i probably should have just said it like this:

Im working on a project. im using an api library, in the form of an external jar file. I imported it using the java build path, adding it to the libraries as an external jar file. Whenever i export my project as a jar file, those class files from that api jar arent being included, or otherwise, i am getting a ClassDefNotFoundError whenever it tries to get used.
Re: including external class files in export [message #869795 is a reply to message #868159] Fri, 04 May 2012 10:27 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 01.05.2012 19:23, Coraline Kay wrote:
> Hello, Ive been working with eclipse since last november. I develop
> plugins for Bukkit, which is a type of minecraft server.
>
> One of my latest plugins utilizes an external jar file, however, when
> exporting, my plugin isnt getting the class files from the external
> jar, i have to manually add them to the jar myself, which is a pain to
> do every time i do an export (which is fairly often)
>
> I tried all sorts of things, modifying the build path, adding the
> source folder to the export, everything, but it refuses to add the
> class files i need.. Am i missing something?
File > Export... > Runnable JAR file

Dani
Previous Topic:Forcing rebuild after error
Next Topic:Launching an External Program in a View
Goto Forum:
  


Current Time: Thu Sep 19 07:12:01 GMT 2024

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

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

Back to the top