• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

rmic compilation error

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't say "public final class PackageName/ClassName". You say

package PackageName;
public final class ClassName {
...
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic