This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
I have written a program that asks the user for a java file name and will compile it on the fly using a call to compile() method in the package com.sun.tools.javac and class Main. If i am using the IBM jdk, or any other jdk, will this package be a part of it? The bigger question is, Is there a standard way of compiling classes on the fly? Can we use the Compiler class for this purpose? Thanks