View RSS Feed

Recent Blogs Posts

  1. Compiling a Java class using JavaCompiler

    by , 11-28-2011 at 07:47 PM (My Java Tips)
    Java 6 introduces a way to compile Java classes from a Java class. In this post, I will present an example to show how this is done.


    I have a Test.java file:

    Java Code:
    public class Test{
    
    public static void main(String[] args) {
            // TODO code application logic here
            System.out.println("Hello World");
    callMe();
    }
        public static void callMe(){
         System.out.println("Hello Babar dost");
    ...
    Categories
    Java SE