In any Java JAR there can be a main-class which is the class called when no classname is specified. That main-class will also have a main() method which si the default entry point of the class. That method has the following signature
public static void main(String[] args); Where the String[] are the command line arguments. Call the main() method passing in whatever command line arguments there would be as the String[]. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In [email protected], "Avi Flax" <[EMAIL PROTECTED]> wrote: > > I'd like to invoke the Flex2b2 compiler from ColdFusion using the Java > class, if possible. > > I looked at the file MANIFEST.MF in mxmlc.jar, and saw: > > Main-Class: flex2.tools.Compiler > > So, I tried this in CF: > > Application.com.MXMLc = > Application.com.URLClassLoader.LoadJarClass(CompilerPath, > "flex2.tools.Compiler"); > > That works, and I can CFDUMP the object to see a list of its methods > and properties, but: > > - I can't set the property FILE_SPECS: I get an > java.lang.IllegalAccessException with the message: "field is final" > > - I can't invoke the "compile" method. My code is: > Application.com.MXMLc.compile(JavaCast("String", MxmlPath)); > I get the CF message "The selected method compile was not found." > > Can anyone shed some light on this? Is it documented anywhere? > > I apologize if this is silly; I'm expert with CFML but not experienced > with Java interaction. > > I did try to just use CFEXECUTE at first, with mxmlc.exe, but had > trouble with it. I've always found CFEXECUTE frustrating, so I thought > I'd give this approach a try. > > Thanks! > Avi Flax > Flex Newbie > Arc90, New York > http://www.arc90.com/ > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

