• Post Reply Bookmark Topic Watch Topic
  • New Topic

rmic compilation error  RSS feed

 
borja roig
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i'm trying to compile an rmi program. when i do

rmic -d ./ engine/ComputeEngine

i recieve this errors:
________________________________________________________________________
./engine/ComputeEngine_Stub.java:4: '{' expected.
public final class engine/ComputeEngine_Stub
^
./engine/ComputeEngine_Skel.java:4: Class engine already defined in ./engine/ComputeEngine_Stub.java.
public final class engine/ComputeEngine_Skel
^
./engine/ComputeEngine_Skel.java:4: '{' expected.
public final class engine/ComputeEngine_Skel
^
./engine/ComputeEngine_Stub.java:4: Public class engine must be defined in a file called "engine.java".
public final class engine/ComputeEngine_Stub
^
4 errors
________________________________________________________________________

ofcourse, rmi compiler doesn't creates any file

I'm new to rmi java, but i think i'm doing all ok. I'm using linux and i tried to compile with sun official and with blacdown port, all of them 1.4 java version and i have the same result.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't say "public final class PackageName/ClassName". You say

package PackageName;
public final class ClassName {
...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!