facebook

how to "export" client " .jar" and run i

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #263479 Reply

    coolhong
    Member

    I created my amazon web services client java application and ran it on the myeclipse platform. It worked , but when I exported it to the .jar file in my pc directory , runed it in the below command line
    “java -jar amazon.jar”
    Unfortunately , it didn’t work

    how can I export my web services client-side and run it independently??

    many thanks~

    #263599

    Brian Fernandes
    Moderator

    Your application isn’t running because the required XFire jar files are missing. Unfortunately, neither Eclipse nor MyEclipse has the ability to export standard Java applications in a single JAR file and you need to do this manually.

    What you can do is copy the required XFire jar files into a single folder and use use “java -classpath jar1.jar;jar2.jar;amazon.jar MainClass MyApplication”

    There is an existing plugin which might help with the export: http://fjep.sourceforge.net/

    Let us know how it goes or if you require further assistance.

    #296846

    pedrochacin
    Member

    Hi guys;

    I installed the plug in “Fat Jar” as you said. Seems to be what i’m needing. I can access it using Eclipse IDE, but i have my proyect in MyEclipse, What i could do to use the plug in the MyEclipse IDE?

    Thank you

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: how to "export" client " .jar" and run i

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