Starting java on FreeBSD 8.1

Hi!

I have successfully installed java on a FreeBSD 8.1 box but not too sure how to start java.

Below is the version:

Code:
$ java -version
java version "1.6.0_07"
Diablo Java(TM) SE Runtime Environment (build 1.6.0_07-b02)
Diablo Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
Please assist.


Best Regards,
Waqa
 
Java is a command line interpreter (could discuss about this word, doesn't matter here!), so you don't have to start it unless you have a program to run, like:

Code:
java HelloWorld

being HelloWorld a compiled Java class that contains a main.
You can get help with:

Code:
java -h
 
Back
Top