<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar/1074803565153692547?origin\x3dhttp://innolearning.blogspot.com', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

InnoLearning

Opening Notepad (or any other external application) with JAVA
Wednesday, November 21, 2007

public class test {
public static void main(String args[])
{
System.out.println("\nSuccess");
Runtime r= Runtime.getRuntime();
Process p=null;
try {
p=r.exec("notepad.exe");
}
catch(Exception e)
{
System.out.println(e);
}
}
}

Labels:

posted by MIGHTYMAK @ 7:52 AM,




0 Comments:

Post a Comment

<< Home