Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

rmic compiling errors

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am compiling my stub from my class at code/suncertify/server/ComputeEngineFactory.class

rmic -d . code/suncertify/server/ComputeEngineFactory
./code/suncertify/server/ComputeEngineFactory_Stub.java:4: '{' expected.
public final class code/suncertify/server/ComputeEngineFactory_Stub

ComputeEngineFactory_Stub.java:4: Public class code must be defined in a file called "code.java".
public final class code/suncertify/server/ComputeEngineFactory_Stub



my ComputeEngineFactory class was created through javac with no errors and has a valid package name: code.suncertify.server. What else can I change ?
I am using jdk1.5 on the Mac.


Thanks in advance

Michael
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Michael: I am using jdk1.5 on the Mac.


Well then you do not have to go through the pain of rmic and pre-generation of stubs. Since jdk5, java can use Dynamic proxies to create stubs at runtime.
This release note entry will give you some information on that.

Michael: rmic -d . code/suncertify/server/ComputeEngineFactory



To the best of my knowledge, this must be like:

rmic -d . code.suncertify.server.ComputeEngineFactory



i.e.: Instead of "/" it must be a "."
 
Michael Fisherman
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks

That did the trick.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!