1 Reply Latest reply: Jun 7, 2011 1:10 PM by gimbal2 RSS

    Unable to compile java file programatically

      Hi i am compiling a java file from my program. As a standalone it works file but when i call it from jsp after deploying into weblogic it gives error while compiling a java file which extends base class, saying cannot find symbols for the variables which are there in base class. Here is my code. i want to create a jar out of compiled classes. Please help me out to resolve the problem. Thanks in advance. Here is my code.

      com.sun.tools.javac.Main javac = new com.sun.tools.javac.Main();
                File f=new File("com/tmobile/ensemble");
                String[] files=f.list();
                System.out.println("before for loop...");     
                for(int i=0;i<files.length;i++)
                     String[] options1 = new String[] {"-classpath","D:/weblogic/wlserver_10.3/server/lib", "-d", "com/tmobile/ensemble","com/tmobile/ensemble/"+files[i]};