• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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 {
...
 
Watchya got in that poodle gun? Anything for me? Or this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic