[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: how to export my project while having extarnal jars

Ali wrote:
Hi there

i have done a java project on eclipse , i have used some extarnal jar files as lib in my project added them by (right click on my project folder --> properties --> java build path --> libraries --> add external jars) i also checked on them in (right click on my project folder --> properties --> java build path --> order and export)

but when i export my project to executable jar file ( i get the file) but cant run it
on double click it says (could not find main class) while i have defined the correct main class in the exporting wizard,
i also tried to extract the jar file and didnt found any of my external jar libs in it so how can i give this file to my users without making them download the libs themselves
i need your help please

Normally you have to provide the external jars as separate files. If you want to bundle everything into one jar, consider using one of the following:


Fat Jar Eclipse Plug-in (http://fjep.sourceforge.net);
One-JAR (http://one-jar.sourceforge.net/).

/Paul