Skip to main content



      Home
Home » Newcomers » Newcomers » Include RMI Stubs in Eclipse generated JAR
Include RMI Stubs in Eclipse generated JAR [message #4031] Mon, 17 January 2005 22:04 Go to next message
Eclipse UserFriend
Originally posted by: dstamenkovic.audioproducts.com.au.nospam

Hey

I've just gotten my java website sorted out to use eclipse along with
nitrox which I'm really happy about because in the past I've had to
compile and deploy manually.

However Im using RMI in my site and I have RMI generated stub classfiles
(with command RMIC -v1.2 au.com.audioproducts.package.classname

These stubs go into the proper package directory but Eclipse excludes them
from the jar it generates when I select export project.
Is there any way I can include them because this will stop me from being
able to launch my site from within Eclipse(tomcat)

Thanks
Dejan
Re: Include RMI Stubs in Eclipse generated JAR [message #4729 is a reply to message #4031] Tue, 18 January 2005 09:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Chris_Laffra.ca.ibm.com

When you export a project, the Java source is compiled into a temporary
output directory.
If you generate a build.xml file from the plugin.xml (see the PDE context
menu), you can see what it does.

The proper solution is to generate a library jar that contains the RMI stub
classes and add the library to your project.
See http://www.eclipsefaq.org/chris/faq/html/faq105.html for an explanation
how to do that.

--
Chris Laffra, http://eclipsefaq.org


"Dejan" <dstamenkovic@audioproducts.com.au.nospam> wrote in message
news:cshuc1$rgf$1@www.eclipse.org...
> Hey
>
> I've just gotten my java website sorted out to use eclipse along with
> nitrox which I'm really happy about because in the past I've had to
> compile and deploy manually.
>
> However Im using RMI in my site and I have RMI generated stub classfiles
> (with command RMIC -v1.2 au.com.audioproducts.package.classname
>
> These stubs go into the proper package directory but Eclipse excludes them
> from the jar it generates when I select export project.
> Is there any way I can include them because this will stop me from being
> able to launch my site from within Eclipse(tomcat)
>
> Thanks
> Dejan
>
Re: Include RMI Stubs in Eclipse generated JAR [message #11238 is a reply to message #4729] Fri, 21 January 2005 09:08 Go to previous message
Eclipse UserFriend
It is possible that the stubs are not included because the workspace is
out of sync with the filesystem.
You can either enable automatic file system synchronization (in the
workbench properites page), or
if you use ant build file, you can select an option that will sync with
the filesystem after the script is run.

I can also suggest using the RMI Plugin for Eclipse - the plugin will
take care of all the stubs generation stuff,
and it has other features such as the RMI Launcher and the Registry
Inspector.

More information at http://www.genady.net/rmi/v16/
Screenshots at http://www.genady.net/rmi/v16/screenshots/

Personal (free), educational and commercial licenses are available.

Regards,
Genady Beryozkin

Chris Laffra wrote:

>When you export a project, the Java source is compiled into a temporary
>output directory.
>If you generate a build.xml file from the plugin.xml (see the PDE context
>menu), you can see what it does.
>
>The proper solution is to generate a library jar that contains the RMI stub
>classes and add the library to your project.
>See http://www.eclipsefaq.org/chris/faq/html/faq105.html for an explanation
>how to do that.
>
>
>
Previous Topic:a question about Eclipse---Linux (AMD 64/GTK 2)
Next Topic:Unable to create Java project
Goto Forum:
  


Current Time: Wed May 07 21:42:58 EDT 2025

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

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

Back to the top