Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 13
Registered: ‎11-27-2012
My Device: Blackberry Bold 9900
My Carrier: U Mobile
Accepted Solution

How do I execute a Perl script and returns the value as string?

Hi, I'm trying to build an application using the Eclipse 2.0.0 with Blackberry SDK 7.1 Plug-in. Currently I'm testing it on simulator 9900 version I need to use Perl language to acess the biological database and returns raw data as string without having to write a longer program using java.

In a stand alone Java SDK, I can use the line:  


Process p = Runtime.getRuntime().exec("perl script.pl")


but when I tried to use it on the IDE for a Blackberry project, the project won't compile. It says:

The method exec(String) is undefined for the type Runtime


Hopes someone can show me the correct syntex to use, but if no class is available, coul