It would be nice if the rmic compiler would not have to
be called as an external process. This could be done
with use of reflection and classloaders. And the nice
dosprompt would disappear.
I like your RMIC plugin, but I was wondering howcome you
user runtime.exec() when calling RMIC. I did a small eclipse
plugin for internal use where:
Class class = Class.forName
("sun.rmi.rmic.Main");
Constructor constructor =
class.getConstructor(
new Class[] {
OutputStream.class, String.class });
Object rmic = cons.newInstance(new Object
[] { System.err, "rmic" });
Method compileRmi =
class.getMethod("compile", new Class
[] { String[].class });
Boolean ok =
(Boolean) compileRmi.invoke(
rmic,
(new Object[] { currentFiles
[0].getPath().toOSString()}));
This requires the tools.jar file to be in classpath though. I
would have made a patch and sent you, but I just don't have
the time before beginning of october :(
If this mail is displaying wierd, please mail me and i'll send it
to you from something else than Lotus Notes ..
regards,
Ulf Holm Nielsen
IGS, IBM Denmark
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=543473
You can make the dos window disappear if you use JDK 1.4
to run eclipse (eclipse -vm <path to 1.4 jvm).
Logged In: YES
user_id=543473
Quoted email
I like your RMIC plugin, but I was wondering howcome you
user runtime.exec() when calling RMIC. I did a small eclipse
plugin for internal use where:
Class class = Class.forName
("sun.rmi.rmic.Main");
Constructor constructor =
class.getConstructor(
new Class[] {
OutputStream.class, String.class });
Object rmic = cons.newInstance(new Object
[] { System.err, "rmic" });
Method compileRmi =
class.getMethod("compile", new Class
[] { String[].class });
Boolean ok =
(Boolean) compileRmi.invoke(
rmic,
(new Object[] { currentFiles
[0].getPath().toOSString()}));
This requires the tools.jar file to be in classpath though. I
would have made a patch and sent you, but I just don't have
the time before beginning of october :(
If this mail is displaying wierd, please mail me and i'll send it
to you from something else than Lotus Notes ..
regards,
Ulf Holm Nielsen
IGS, IBM Denmark
Logged In: YES
user_id=543473
please check V 1.2.0 (alpha) released today.
Genady
Logged In: YES
user_id=543473
Should work in 1.2.1
You must run eclispe with 1.4.0 to use
the compiler on 1.4.0 projects.