1 Reply Latest reply on May 23, 2013 6:48 AM by gimbal2

    How should I deploy my java application

    1010537
      Let's say I have a package with a main class, and the main class uses some class in the package

      I export it all in the package in a jar file using Eclipse

      Then, I put the jar file in the lib
      and run using

      java -cp "A1.jar";"lib/*" package/Mainclass

      Is this the correct way of running java application?
        • 1. Re: How should I deploy my java application
          gimbal2
          Well that's one way of running it yes, but certainly not the easiest; this way I'd create a shell script for it.

          But you should look into making it an executable jar. Then you can just run it with 'java -jar A1.jar', or if the app does something with a user interface you can probably just double click it in your OS's graphical shell.