question-circle Adding eclipse classes

9 years 2 months ago #1713 by bruno
Hello

I would take some classes from eclipse (i.e.org.eclipse.jdt.core_3.7.3.v20120119-1537.jar ) and use them in Modelio.

I put the jar in the plugins directory, boot modelio and then tried the following lines in script window:
from org.eclipse.swt import SWT
from org.eclipse.jdt.core import JavaCore

1st line ok; and for 2nd, I get:
ImportError: No module named jdt in <script> at line number 2
Traceback (most recent call last):
File "<script>", line 2, in <module>
ImportError: No module named jdt

What should I do to be able to use external jar in script window? :blink:

Please Log in or Create an account to join the conversation.

9 years 2 months ago #1718 by pan
Hi bruno,

I think it's not possible to load new jars for using with Jython. Modelio has its own class loading mechanism and it does not permit to take into account jars which are not brought by Modelio...
And it's not possible to add jars at runtime...

Please Log in or Create an account to join the conversation.

Moderators: chmcma
Time to create page: 0.033 seconds
^ Back to Top