Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [science-iwg] Integrating OSGi bundles into P/Jython

Hi Christian,

thanks for pointing out that blogspot. I tried loadModule() today using the example here:

http://git.eclipse.org/c/ease/org.eclipse.ease.core.git/tree/plugins/org.eclipse.ease.lang.python.examples/samples/scripts/Find_System_Prints.py

However whenever I run this script as an EASE script I get the following error.

Unable to find module "ResourcesModule"
Unable to find module "WorkbenchModule"

I got similar errors with the other examples.

Jython version: 2.7b3 (default:e81256215fb0, Aug 4 2014, 02:39:51)
[OpenJDK 64-Bit Server VM (Oracle Corporation)]

What am I doing wrong? :-)

Best wishes,

Janos

On 23.06.2015 18:39, Christian Pontesegger wrote:
Hi there,

nice you discovered EASE. Our Jython interpreter is a full featured OSGI citizen. You may import any Java class from the JRE and from all available OSGI bundles.

loadModule() is a command we inject into the Jython engine. It allows us to load libraries written in Java (it' s easy, see http://codeandme.blogspot.co.at/2014/10/writing-modules-for-ease.html ) which basically wrap java functionality to script functions. Call it a more convenient way for users to call the java world. Loading modules is not necessary to access java classes!

For Jython we would love to find a way to get numerics in. We are missing numpy scipy support deeply there, so if you have any solutions/worarounds for this problem we would be glad to bring them to EASE.

best regards
Christian

On 23.06.2015 18:02, Janos Binder wrote:
Jay, Matt,

Thanks for the replies. I am looking at the python examples in EASE. They use e.g. loadModule("WorkbenchModule"). Does this mean, that integrating EASE in our Ecliple RCP-based software I could reach the our OSGi bundles?

Best wishes,

Janos



_______________________________________________
science-iwg mailing list
science-iwg@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/science-iwg

-- 
~~~~~~~~~~~~~~~~~~~~~~~~
Dr. Janos Binder » Software developer » ph +49 (0) 40 428 38 - 3140 » janos.binder@xxxxxxxxxxxxx » Lablicate UG (haftungsbeschränkt) » Martin-Luther-King-Platz 6, 20146 Hamburg » Germany

Lablicate UG (haftungsbeschränkt), Amtsgericht Hamburg, HRB 129018, USt-IdNr.: DE291156854
Geschäftsführer: Dr. Philip Wenig, Dr. Andreas Klingberg

The information contained in the email may be private and confidential. If you are not the intended recipient(s) or have otherwise received this email in error, please delete the email and inform the sender as soon as possible. This email may not be disclosed, used or copied by anyone other than the intended recipient(s) Any opinions, statements or comments contained in this email are not necessarily those of Lablicate UG. If you wish clarification of any matter, please request confirmation in writing.
~~~~~~~~~~~~~~~~~~~~~~~~ 

Back to the top