File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes rmic compiling errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "rmic compiling errors" Watch "rmic compiling errors" New topic

rmic compiling errors

Michael Fisherman

Joined: Oct 11, 2007
Posts: 18
I am compiling my stub from my class at code/suncertify/server/ComputeEngineFactory.class

rmic -d . code/suncertify/server/ComputeEngineFactory
./code/suncertify/server/ '{' expected.
public final class code/suncertify/server/ComputeEngineFactory_Stub Public class code must be defined in a file called "".
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

Nitesh Kant

Joined: Feb 25, 2007
Posts: 1638

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 "."

apigee, a better way to API!
Michael Fisherman

Joined: Oct 11, 2007
Posts: 18

That did the trick.
It is sorta covered in the JavaRanch Style Guide.
subject: rmic compiling errors
It's not a secret anymore!