Menu

#13 Use RMIC compiler directly

closed-fixed
Genady B
5
2003-03-08
2002-08-09
No

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.

Discussion

  • Genady B

    Genady B - 2002-08-09

    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).

     
  • Genady B

    Genady B - 2002-08-09

    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

     
  • Genady B

    Genady B - 2002-08-12

    Logged In: YES
    user_id=543473

    please check V 1.2.0 (alpha) released today.

    Genady

     
  • Genady B

    Genady B - 2002-08-27

    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.

     
  • Genady B

    Genady B - 2002-08-27
    • status: open --> closed
     
  • Genady B

    Genady B - 2003-02-22
    • labels: 424387 -->
    • assigned_to: genady --> nobody
    • status: closed --> open
     
  • Genady B

    Genady B - 2003-03-08
    • assigned_to: nobody --> genady
    • labels: --> feature request
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB