• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

How to run RMI in IntelliJ

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am running IntelliJ Idea (2019.3.1) Ultimate Edition. I would like to run
RMI client server applications on IntelliJ. I would like to create RMI stub and
RMI skeleton without using command lines every time I run a new RMI application.
I can't seem to find any step by step instructions for this.

Can anyone please help me.

Bye
 
Saloon Keeper
Posts: 28761
211
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The stub and skeleton are produced by the rmic command line utility. "rmic" stands for "RMI Compiler", in fact.

It's possible that rmic is like a lot of other Java utilities where the actual program is in Java enclosed in a shell wrapper and could be called directly from Java code, but that's only the first step towards getting IntelliJ to run it automatically.

A much easier way to do things is to use a tool like Maven that has an RMIC plugin so that the total build process will include that step. Also, it's not a bad practice to use a batch builder like Maven or Gradle in any case. IDE's are great for coding and debugging, but I learned the hard way that batch builders are less likely to break when you have an emergency build to do. Besides, IntelliJ should be able to run Maven for you, so literally using a command line becomes optional.
reply
    Bookmark Topic Watch Topic
  • New Topic