Posted By:
Ketan_Mehta
Posted On:
Wednesday, July 18, 2001 01:15 PM
I Made Notepad in Java. I want to add facility to Compile the .java file within Notepad, using Ctrl-C key(without going to Console),
For this, i need to use class called "sun.tools.javac.Main" But this class is inside Jar file-java/lib/tools.jar file.
At compiling original Notepad script, it gives error:"cannot resolve symbol : class Main, location: package javac"
I want to know the code to be written in Original Notepad Script, which use tools.Jar file's Class-"sun.tools.javac.Main" to compile any Java file without using console.
ketanmehta@hotmail.com