This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

create jar files and location of stub classes  RSS feed

 
Marco Barenkamp
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have decided to create 2 jar archives for the client and
for the server.
When I want a remote reference to the server, I have to tell the
registry where to find the stub class.
My stub class is in the server jar, and this cannot be used
for URLs.
My question is, is there a possiblity to store the stub class
in a jar file, or should I not create any jar files?

------------------
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marco -
You certainly can store stubs in a JAR. They're just class files after all.
One thing I encourage my students to do is run rmic with the -keepgenerated flag. This option retains the .java source that's used to compile the stubs. Once you see the source of a stub, you'll see it's nothing magical at all. rmic is just a code generator (and compiler)!
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!