facebook

Executable Jar

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #266044 Reply

    ash302
    Member

    I need help in creating an executable jar. I created an archive and it looks like it does include all my files and library, but when execute it I get class not found that is included in a library

    #266073

    Brian Fernandes
    Moderator

    Ash,

    What kind of archive did you create? Creating a single JAR which contains other JARs you require won’t work unless you use a special classloader.
    You might want to look at the one-jar project and / or the Fat jar eclipse plugin which provides one jar support.

    Hope this helps.

    #266077

    ash302
    Member

    You got me on both, where is the project you are talking about. And how do I add a plug-in to my project. I am trying to build an executable jar from my code that refrences other jars like a database jar, common libraries that I created previously, etc….

    #266078

    Brian Fernandes
    Moderator

    Ash,

    Let me explain:

    1) Creating a single executable JAR from your project is a capability not provided by MyEclipse. We are looking at providing this feature in the future, but the current tools have no such ability, so you need to look for external tools.
    2) If you want to distribute your entire application as a single JAR, try using the Fat JAR eclipse plugin. We do not ship this, you will have to install it yourself. http://fjep.sourceforge.net/

    Fat JAR uses the One Jar library internally, you may use that directly if you wish – more details here: http://sourceforge.net/projects/one-jar

    Best.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Executable Jar

You must be logged in to post in the forum log in