Calling the main static method of a class

2014-09-26 Thread paracomunicacionesinformales
hi, I've got a traditional java class invoked from the command line: public class Aclass public static void main(String[] a) throws Exception { } java -Doneoption=onevalue Aclass and I want to invoke THAT main class from the command line and to simulate the options from the

Re: Calling the main static method of a class

2014-09-26 Thread Linus Ericsson
You can set system properties with System/setProperty. See more here: http://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html /Linus Den 26 sep 2014 15:58 skrev paracomunicacionesinforma...@gmail.com: hi, I've got a traditional java class invoked from the command line:

Re: Calling the main static method of a class

2014-09-26 Thread M Guti
=(AClass/main ( into-array String [23] )) and if the AClass is in the same dir of the invocation then include it in the class path : java -cp clojure-1.6.0.jar:. clojure.main El viernes, 26 de septiembre de 2014 11:12:41 UTC+2, paracomunicaci...@gmail.com escribió: hi, I've got a