Problem about RMI in Eclipse

This is the place where you can find answers to the most frequently asked questions

Problem about RMI in Eclipse

Postby endsville » Tue Oct 11, 2005 6:20 am

When i used ant to run build.xml, the error occured

The error is below

BUILD FAILED:
D:\eclipse\workspace\johnny\build.xml:47: Rmic failed; see the compiler error output for details.

The line 47 of build.xml is
<!-- Compile the RMI stubs -->
<rmic classname="com.johnny.ic.Launcher" base="${build.dist.classes}"/>

Then if I just run the Launcher as RMI application, It can work.

So why I can not build it?
endsville
 
Posts: 2
Joined: Tue Oct 11, 2005 6:13 am

Postby genady » Tue Oct 11, 2005 11:19 pm

Hi,
You have used ant to generate the stubs. The RMI Plugin for Eclipse
does exactly the same, only better. If have problems using the RMI Plugin
to generate the stubs - please post the question here (on the General Discussion forum). If you prefer using ANT - I can't really help, and you should seek help elsewhere.

Regards,
Genady
genady
Site Admin
 
Posts: 397
Joined: Sat Aug 16, 2003 5:15 pm

Postby endsville » Thu Oct 20, 2005 9:30 am

OK,This is my question.

How can i use RMI Plugin for Eclipse to build the jar?
endsville
 
Posts: 2
Joined: Tue Oct 11, 2005 6:13 am

Postby genady » Thu Oct 20, 2005 9:51 am

You can build the jars using the regular tools that Eclipse provides
(File->Export->Jar File).
You can also use ANT - the .class files are all in the output folder of your project.

If you intend to build jars, I suggest you check the "-keep" option
on the project's RMI properties page. The RMI plugin will generate .java files and Eclipse will compile it to .class files. This will eliminate some
debug information warnings you might observe if .class files are generated directly.

Genady
genady
Site Admin
 
Posts: 397
Joined: Sat Aug 16, 2003 5:15 pm


Return to RMI FAQ

Who is online

Users browsing this forum: No registered users and 3 guests

cron