Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Runtime class doesnŽt work in plugin???
Runtime class doesnŽt work in plugin??? [message #228845] Wed, 14 April 2004 15:54
Eclipse UserFriend
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
Previous Topic:ECLIPSE3.0M6 on W2K doesn't launch
Next Topic:Swing looks and performs better on Mac than SWT :-(
Goto Forum:
  


Current Time: Wed Jul 16 11:40:00 EDT 2025

Powered by FUDForum. Page generated in 0.07053 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top