I made NotePad in Java. Can i add facility to compile & run .java file within notepad, without using command prompt?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ketan_Mehta
Posted On:   Saturday, July 14, 2001 11:30 AM


I have Made NOTEPAD in Java language.

Can i add facility within Notepad, so that if i type Ctrl-C ( for .java file Compilation), it automatically use javac.exe to compile the file in notepad, & read the error from console & display error message at Bottom of Notepad??
Als can i add facility to run .class file within Notepad??

I javd a software called JPadPro, which works similar way.

Ketan mehta(ketanmehta@hotmail.com)

Re: I made NotePad in Java. Can i add facility to compile & run .java file within notepad, without using command prompt?

Posted By:   Luigi_Viggiano  
Posted On:   Saturday, July 14, 2001 02:56 PM

Yes you can: inside tools.jar there's a class called sun.tools.javac.Main with a public static void main(String args[]) that can be called inside your notepad's VM with same parameters you would pass with a command line javac command.
About | Sitemap | Contact