![]() This will create the helloworld.class file. Compile the helloworld.java ProgramĬompile the helloworld.java using javac command as shown below. ![]() Javac: /usr/bin/javac /usr/share/man/man1/javac.1.gz Ii sun-java6-plugin 6-16-0ubuntu1.9.04 The Java(TM) Plug-in, Java SE 6 Ii sun-java6-jre 6-16-0ubuntu1.9.04 Sun Java(TM) Runtime Environment (JRE) 6 (ar Ii sun-java6-jdk 6-16-0ubuntu1.9.04 Sun Java(TM) Development Kit (JDK) 6 Ii sun-java6-bin 6-16-0ubuntu1.9.04 Sun Java(TM) Runtime Environment (JRE) 6 (ar Ii java-common 0.30ubuntu5 Base of all Java packages Make sure javac is installed on your system as shown below. ![]() Make sure Java Compiler (javac) is installed on your system Can you explain it with a simple example?Īnswer: In this article, let us review very quickly how to write a basic Hello World Java program and how to compile *.java program on Linux or Unix OS.Ĭreate the helloworld.java program using a Vim editor as shown below. Question: I would like to understand the basics of how to write, compile and execute a Java program on UNIX / Linux OS. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |