Home > Java > Java – How to Compile

Java – How to Compile

Introduction:

Many IDE made life easier, but there is some time comes we really cant do simple basic run/compile/etc etc, by thanking to all IDE’s. Just few notes when lonely situations.

Less talk:

Unix/Linux/Windows shell mode:

#javac

$javac sourcode.java (this will compile and make sourcode.class)
#java

$java sourcode (this will execute the sourcecode.class)

$java -jar buildedfile.jar (will execute the jar )

Advertisements
Categories: Java
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: