Runtime class doesnŽt work in plugin??? [message #228845] |
Wed, 14 April 2004 15:54 |
Eclipse User |
|
|
|
Originally posted by: andrea.inatel.br
Hi, IŽm developing a plugin for J2me applications development. So, my code
executes the preverify command using the Runtime class, like this:
String m_command = "preverify ...."
Process process = Runtime.getRuntime().exec(m_command);
BufferedInputStream in = new BufferedInputStream(process.getErrorStream());
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
if ((s = reader.readLine()) != null)
{
do {
System.out.println (s + '\n');
}while ((s = reader.readLine()) != null);
}
else{
System.out.println("Command executed with sucess!");
}
This works well when I execute the plugin by Run As -> Runtime Workbench,
but when I install the plugin coping the jar file and plugin.xml file to
the plugins directory (c:/eclipse/plugins) the command doesnŽt work and
seems that nothing is done.
Could someone help me, please?
Best Regards,
Andréa
|
|
|
Powered by
FUDForum. Page generated in 0.07053 seconds