My answer to myself and to the list:
Inside Eclipse, using X10DT, you can echo command line arguments to console by giving: Window > Preferences > X10 > Compiler [X] Echo compiler arguments to console Nice! :) I hope it helps -- Richard Gomes On 05/11/10 14:40, Richard Gomes wrote: > Hi Igor, > > I'm also trying the Java compiler but it fails like this: > > $ x10 \ > com.jquantlib.math.statistics.StatisticsTests > `find ~/workspace-x10/xql-statistics/src/main/x10 \ > -type f -name '*.x10' ` \ > `find ~/workspace-x10/xql-statistics/src/test/x10 \ > -type f -name '*.x10' ` > > Exception in thread "main" java.lang.NoClassDefFoundError: > com/jquantlib/math/statistics/StatisticsTests$Main > Caused by: java.lang.ClassNotFoundException: > com.jquantlib.math.statistics.StatisticsTests$Main > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > Could not find the main class: > com.jquantlib.math.statistics.StatisticsTests$Main. Program will exit. > > > Yeah... I'm sure I have a main method there: > > > > public class StatisticsTests { > > public static def main(r: Array[String]{self.rank==1}):void { > val o = new StatisticsTests(); > o.testAll(); > } > > > > I've also tried a variation of that command, specifying "-classpath" and > passing relative file names, more or less like exemplified below: > > > $ x10 \ > -classpath /home/rgomes/proj/main/x10:/home/rgomes/proj/test/x10 \ > testpkg.MyTestClass \ > srcpkg/A.x10 srcpkg/B.x10 \ > testpkg/MyTestClass.x10 testpkg/SomeOtherClass.x10 > > > What am I doing wrong? > > Thanks a lot :) > > > Richard Gomes > M: +44(77)9955-6813 > http://tinyurl.com/frgomes > twitter: frgomes > > JQuantLib is a library for Quantitative Finance written in Java. > http://www.jquantlib.org/ > twitter: jquantlib > > On 05/11/10 05:15, Igor Peshansky wrote: >> -post 'g++ -m64' > > ------------------------------------------------------------------------------ > The Next 800 Companies to Lead America's Growth: New Video Whitepaper > David G. Thomson, author of the best-selling book "Blueprint to a > Billion" shares his insights and actions to help propel your > business during the next growth cycle. Listen Now! > http://p.sf.net/sfu/SAP-dev2dev > _______________________________________________ > X10-users mailing list > X10-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/x10-users > ------------------------------------------------------------------------------ The Next 800 Companies to Lead America's Growth: New Video Whitepaper David G. Thomson, author of the best-selling book "Blueprint to a Billion" shares his insights and actions to help propel your business during the next growth cycle. Listen Now! http://p.sf.net/sfu/SAP-dev2dev _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users