For the first question, x10j is javac (we actually use eclipse java
compiler instead of javac, but it should be ok for short programs)
with extra jar files to classpath stdlib/x10.jar and
lib/commons-math-2.2.jar.

For the second question, if you are asking how to execute generated
Java code from Eclipse Java Project, you can select the generated Java
code then execute it as "Run As" -> "Java Application". Don't forget
to put the above jar files to classpath of the Java Project so that
Eclipse can compile and run the generated Java code. To compile X10
code, you can do as "x10c -c -d ${source-dir-of-your-java-project}
YourX10Code.x10".

Mikio Takeuchi
IBM Research - Tokyo


2012/4/11 天上最亮的星 <sixiangma0...@foxmail.com>:
> Hi:
>     Thanks for your reply!
>     I saw the samples, and I have two questions:
>     First one , when I was making file of javatox10, I didn't know what
> "x10j" mean, it is used to compile the JClass.java file. So I used "javac"
> instead, but it couldn't be compiled as there were errors.
>    Second one, I want to call X10 code from Java Project directly, but the
> steps of the sample of javatox10 are "X10->Java->X10". It is actually run as
> a X10 Application, but not a Java Application. So, is there a way to call
> X10 code from Java Project actually, and run as a Java Application?
>
> ------------------------------------------------------------------------------
> Better than sec? Nothing is better than sec when it comes to
> monitoring Big Data applications. Try Boundary one-second
> resolution app monitoring today. Free.
> http://p.sf.net/sfu/Boundary-dev2dev
> _______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
>

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to