jdt ECLIPSE compiler

hi, i've a problem with compling with the jdt eclipse complier: I use this string in a java file to compiler a .java:

org.eclipse.jdt.internal.compiler.batch.Main.compile("c:/test2.java");

but i should compile like javac compiler, with this string:

pb = new ProcessBuilder("javac", folder.concat("\\*.java"));

that compiles all the .java files located in the folder, is there a method to do it with JDT compiler?

[444 byte] By [daib] at [2007-11-26 12:18:00]
# 1
i've resolved myself!
daib at 2007-7-7 14:56:22 > top of Java-index,Archived Forums,Socket Programming...