Hi,

thanks for your response. I really appreciate it.
RE: [Taverna-users] Use Beanshell to launch external .jar outofmemoryError

Hi,

before looking into what is the cause of the OutOfMemory Exception, maybe you should try to use a BeanShell service where you define your jar as dependency and then you do an API call.

See here:

http://dev.mygrid.org.uk/wiki/display/taverna/Beanshell

Drop your Programm.jar in the Taverna 'lib' directory and declare the dependency in the Beanshell.

Then you can create objects and invoke methods from classes of the jar within your BeanShell.

I did it this way. But i will get the same error.

Is there any way to use my jar like I'm on the standard gnome-terminal? So that it creates a new VM and is not running in taverna?

Generally, if you have a plain java application, it should not be necessary to invoke an external command using Runtime.exec().

If you want to stick to your approach, consider ProcessBuilder:

http://www.java-tips.org/java-se-tips/java.util/from-runtime.exec-to-processbuilder.html

Best,

Sven

Thanks a lot,

Julian
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/

Reply via email to