I am trying to compile two java programs in Eclipse on Ubuntu. I then want to be able to go from two terminal and run the programs; server and client. I am fairly new to eclipse and ubuntu, how would I go about doing this. Such as using g++ and it spitting out a.out or whatever you might call it, how can I do this with eclipse and a Java program?
Don’t I need to run them in the JVM? I know java is compiled to java bytecode and ran on a JVM. But this is the first time I have tried to just run a java program a have written in eclipse, outside of eclipse.
To run the program outside of eclipse there are several ways, i enslist some opportunities below :
To export as a runnable jar the procedure is as follow :
File -> Exportjava -jar yourjarname.jarSince seems that you are familiar with gcc there could be even another option : compile the java program into a standard executable with gcj gcc extension, there is also the eclipse plugin GCJBuilder …