Ask Your Question
1

Problem Running RMI Program on Fedora 17

asked 2013-03-17 05:05:37 -0600

Rahul Mahale gravatar image

I am having Fedora 17 installed on my pc, I have an Java RMI Program, It runs Fine on Windows and Ubuntu 11.10,

Here are the details of the same I have one Interface and one Client and one Server Program.. I compiled it with javac Compiler and now next step is to generate the stub and skeleton using "rmic interfacename" command but in fedora 17 we dont have rmic command we have rmid but I am not able to do it using rmid so I am stuck here. I searched Google and Forums for hours, I have also installed some dependent packages like 1>jboss-rmi-1.0-api-javadoc-1.0.4-1.fc17.noarch.rpm and 2>rmic-maven-plugin-javadoc but still not having rmic command or the way to generate stub and skeleton by rmid.

So I request to please help me solving this issue.

Thanks and Regards:- Rahul Mahale

edit retag flag offensive close merge delete

Comments

thanks a lot.! It worked for me..

Rahul Mahale gravatar imageRahul Mahale ( 2013-03-17 11:55:17 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-03-17 05:54:16 -0600

Jomoos gravatar image

For Java development in Fedora, you have mainly two options, OpenJDK and Oracle JDK. Now, I assume you are using OpenJDK.


Short Answer

Install OpenJDK development version.

yum install java-1.7.0-openjdk-devel

Long Answer

If you do search for OpenJDK packages in Fedora, you can see many packages as follows(I included important entries only).

[root@tecnooc-mac ~]# yum search openjdk

java-1.7.0-openjdk.x86_64 : OpenJDK Runtime Environment
java-1.7.0-openjdk-devel.x86_64 : OpenJDK Development Environment
java-1.7.0-openjdk-javadoc.noarch : OpenJDK API Documentation
icedtea-web.x86_64 : Additional Java components for OpenJDK

As you can see from the description itself, java-1.7.0-openjdk contains the runtime environment only and thus you will not be able to develop applications with it, and you need java-1.7.0-openjdk-devel for development kit. java-1.7.0-openjdk-javadoc contains the Java API documentation and icedtea-web contains web browser plugin for Java.

So, the commands like javac, rmic, etc., will only needed for development and thus made available in java-1.7.0-openjdk-devel. You can verify this with the command repoquery(you need to install yum-utils for this).

[root@tecnooc-mac ~]# repoquery -lq java-1.7.0-openjdk-devel | grep rmic
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.3/bin/rmic
/usr/share/man/man1/rmic-java-1.7.0-openjdk.1.gz
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.9.x86_64/bin/rmic
/usr/share/man/man1/rmic-java-1.7.0-openjdk.1.gz
[root@tecnooc-mac ~]# repoquery -lq java-1.7.0-openjdk | grep rmic
[root@tecnooc-mac ~]#

So, in essence, you need to install java-1.7.0-openjdk-devel package to do any Java development. I suggest you to install icedtea-web package also. It is as follows:

yum install -y java-1.7.0-openjdk-devel icedtea-web

Hope this helps :)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-17 05:05:37 -0600

Seen: 607 times

Last updated: Mar 17 '13