OpenJDK: Difference between revisions

m
rephrased first "Usage" paragraph; bolded first occurrence of name; added Java link
(Briefly describe OpenJDK; show how to use 'javac' and 'java'.)
 
m (rephrased first "Usage" paragraph; bolded first occurrence of name; added Java link)
Line 1:
{{implementation|Java}}
 
'''[http://openjdk.java.net/ OpenJDK]''' is an [[open source|free]] implementation of [[:Category:Java|Java]] for [[Linux]], [[Solaris]] and [[Windows]].<ref>[http://hg.openjdk.java.net/jdk7/build/raw-file/tip/README-builds.html#MBE OpenJDK Build README: Minimum Build Environments]</ref> There is also OpenJDK for [[BSD]]<ref>[http://openjdk.java.net/projects/bsd-port/ OpenJDK: BSD Port Project]</ref>. Several BSD and Linux distros carry packages of OpenJDK.
 
OpenJDK can compile and run Java programs. OpenJDK 6 implements Java 6, while OpenJDK 7 is a preview of future Java 7.
 
== Usage ==
OpenJDK is a set of command-line tools. I haveIf OpenJDK is installed in <tt>/usr/local/jdk-1.7.0</tt>, so I addedthen <tt>/usr/local/jdk-1.7.0/bin</tt> needs to mybe PATH.added Nowto Ithe can<tt>PATH</tt> use theenvironment toolsvariable. The two most important tools are the [[javac]] compiler, and the java runner.
 
This example program would compute 12 - 4.
1,150

edits