Hi Rodrique,

The attached tgz file is a small example showing how to call Java from X10.
In this example, an X10 class (XClass) subclasses a Java class
(JClass) and the instance methods of JClass are called through the
instance of XClass.  However, subclassing is not necessary and you can
just import your Java class and invoke its methods as you do in Java.
To call Java method that has throws clause, you need to use @Throws
annotation or try-catch the exception property.

-- Mikio

2012/5/22 Rodrique Djonkou <djon...@gmail.com>:
> hi Dave,
>
> You said that it's possible to call a jar file since the 2.2.2 release.
> I know there are no documentation ready.
>
> Please could you provide me only one sample, how to call my jar, and call a
> methode of the file.
> I would like to try it
>
> Thanks for your understanding
>
> Rodrique
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
>

Attachment: x10tojava.tgz
Description: GNU Zip compressed data

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to