facebook

Have the .class via ant build, but how to get .jar file?

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

    Ewin Barnett
    Member

    I have a simple java package that contains a few MySQL functions that want to call from other code. I would like to create a .jar file for it.

    I can run Export and create an Ant build.xml file, and then run it to get my .class file. How do I create a .jar file as well? (and if this involves changes to the build.xml, is there an example to follow?)

    #308836 Reply

    adnorm,
    Please refer to the following link to generate jar files using ant –
    http://www.rgagnon.com/javadetails/java-0532.html
    Let me know if that helps.

    #308844 Reply

    Ewin Barnett
    Member

    A much more helpful and simple answer would be:
    File–>export–>java–>jar
    Which I found after quite a bit of digging. But thanks anyway.

    #308888 Reply

    Welcome

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Have the .class via ant build, but how to get .jar file?

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