|
Re: Load Java Class in Script from current workspace [message #1731379 is a reply to message #1731342] |
Wed, 04 May 2016 17:41 |
Christian Pontesegger Messages: 250 Registered: July 2009 Location: Graz, Austria |
Senior Member |
|
|
Hi Daniel,
have a look at the JVM module:
loadModule("/System/JVM");
org.eclipse.ease.modules.java.JVMModule@7317ea31
createInstance("workspace://Java 1/src/org/test/Hello.java")
org.test.Hello@15b6685f
It provides methods to create an instance from a default constructor, to get a class definition or to invoke a static method on a class (eg: main)
Edit: even if we have a method called 'compile' we do not really start a compile process, but use the automated build of eclipse. so we depend that there exists a binary folder and the according class files.
HTH
Christian
[Updated on: Wed, 04 May 2016 17:43] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04428 seconds