How to execute program in Java

There are two ways to do this:

  1. Call Runtime.getRuntime().exec();
  2. Use Java Native Interface (JNI)

Reference:
[1]http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=1

[2]http://www.rgagnon.com/javadetails/java-0014.html

Advertisements

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