Create a java executable with Eclipse

Posted by Micah on Stack Overflow See other posts from Stack Overflow or by Micah
Published on 2011-03-13T23:42:46Z Indexed on 2011/03/14 0:10 UTC
Read the original article Hit count: 131

Filed under:
|
|
|
|

This is a totally newbie question. I'm running Eclipse on Ubuntu. I created a test project that I want to compile to an executable (whataver the linux equivalent is of a Windows .exe file). Here's the contents of my program:

public class MyTest {
    public static void main(String[] args) {

        System.out.println("You passed in: " + args[0]);

    }
}

I want to know how to compile it and then how to execute it from the command line.

Thanks!

© Stack Overflow or respective owner

Related posts about java

Related posts about linux