Run Java program in Linux

On June 27, 2009, in Linux, Tips, Tricks, by Sandeep Verma

Hits: 57   This is the sample java file “Svnlabs.java” to be executed on linux command line….. import java.lang.*; import java.io.*; public class Svnlabs { public static void main(String args[]) { System.out.println(”svnlabs.com”); } } Output: [root@localhost ~]# javac Svnlabs.java [root@localhost ~]# java Svnlabs svnlabs.com [root@localhost ~]#

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...