Hello Sandro; I tried your suggestion but I still got an exception complaining
about not being able to locate an inner class:
java.lang.ClassNotFoundException: org.python.proxies.__main__$HelloBXML$1
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at java.lang.Class.forName0(Native Method)
I created a JIRA and attached as much information as possible, including the
small script I used to test this:
https://issues.apache.org/jira/browse/PIVOT-917
I can help with some examples for Jython, but I first I need to get passed the
'hello world' issue :-)
Thanks for looking into this!
--Jose
-----Original Message-----
From: Sandro Martini [mailto:[email protected]]
Sent: Sunday, August 18, 2013 1:05 PM
To: Users - Apache Pivot
Cc: Nunez Zuleta, Jose V: IT (NYK)
Subject: Re: Pivot + Jython
Hi Jose, sorry for the delay ...
I haven't experience with JRuby and Jython (only tried them few times), and
probably even other Pivot developers.
You found some of our subprojects at Apache-Extras I created some time ago,
where to put all additional stuff, from us and even by our users, but as you
can see some of them are near-empty due to lack of time (and probably lack of
interest from users).
Your error seems to be related to the loading of bxml file:
> self.window =
> self.bxmlSerializer.readObject("file:///home/myuser/test.bxml")
try with a relative path for the bxml file, starting from the package of your
main class ... for example start to put it in the same folder of your
application main class, and move it later.
I can suggest to take a minimal sample, like our "Hello BXML" (
http://pivot.apache.org/tutorials/hello-bxml.html ) and try to convert it to
Jython ... and this could then be put somewhere under pivot-contrib if you are
interested.
As minimal sample, take a look at:
http://svn.codespot.com/a/apache-extras.org/pivot-stuff/trunk/scala-use-pivot2/
Anyway, if you are interested in help us improving Pivot usage with Jython (and
maybe even JRuby), could you create a jira issue in Pivot usual Bug tracker (or
if you prefer, an issue under pivot-multilang), and attach there a minimal
project (if possible an eclipse, or a maven, or gradle) project ?
What release of OS , Java, Jython are you using ? If you add an issue, please
write even there.
Or at least, attach here that minimal sample, but in a zip (or it won't be
accepted by our mailing lists) ...
As soon as I'll find some time I could take a look at it, and even improve my
Scala examples/support files, and even a Groovy example there.
Thank you very much,
Sandro
_______________________________________________
This message is for information purposes only, it is not a recommendation,
advice, offer or solicitation to buy or sell a product or service nor an
official confirmation of any transaction. It is directed at persons who are
professionals and is not intended for retail customer use. Intended for
recipient only. This message is subject to the terms at:
www.barclays.com/emaildisclaimer.
For important disclosures, please see:
www.barclays.com/salesandtradingdisclaimer regarding market commentary from
Barclays Sales and/or Trading, who are active market participants; and in
respect of Barclays Research, including disclosures relating to specific
issuers, please see http://publicresearch.barclays.com.
_______________________________________________