Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • 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
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

rmic compilation error

 
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.
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • 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 {
...
 
Too many men are afraid of being fools - Henry Ford. Foolish tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!