I want to create a simple java application using eclipse that I will use at work. I cannot install eclipse to the work computer and was interested in how to go about making an app that can run from a website or another option to where I can run it.
Any help or other suggestions are appreciated.
How to run a Java app outside of eclipse
Page 1 of 14 Replies - 135 Views - Last Post: 06 December 2012 - 08:29 PM
Replies To: How to run a Java app outside of eclipse
#2
Re: How to run a Java app outside of eclipse
Posted 06 December 2012 - 06:24 PM
You have two options
1.) You can write it as a JApplet and embed it in the website
2.) You can export it as an executable JAR file. Eclipse exports it for you. I assume your computer has Java installed so you can run it from the command line using:
All you need to do is ensure your environmental varable "PATH" points to the jdk#.#.#/bin folder where the java.exe program resides
EDIT:
While I'm thinking about it. You can write a regular java program, then compile/run it the same way from the command prompt:
javac.exe is another program inside that bin folder. Eclipse is simply a convenient way to write/compile/run a program all in one go, but you can do it with nothing more than notepad and the jdk
1.) You can write it as a JApplet and embed it in the website
2.) You can export it as an executable JAR file. Eclipse exports it for you. I assume your computer has Java installed so you can run it from the command line using:
java -jar myJar.jar [paramaters]
All you need to do is ensure your environmental varable "PATH" points to the jdk#.#.#/bin folder where the java.exe program resides
EDIT:
While I'm thinking about it. You can write a regular java program, then compile/run it the same way from the command prompt:
javac myClass.java java myClass
javac.exe is another program inside that bin folder. Eclipse is simply a convenient way to write/compile/run a program all in one go, but you can do it with nothing more than notepad and the jdk
This post has been edited by Luckless: 06 December 2012 - 06:28 PM
#3
Re: How to run a Java app outside of eclipse
Posted 06 December 2012 - 08:23 PM
Thanks luckless.
#5
Re: How to run a Java app outside of eclipse
Posted 06 December 2012 - 08:29 PM
Alright thanks. This program is going to be used at work to make life much simpler and im hoping the corporate offices will help with this program down the line.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|