Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8424555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:01:33+00:00 2026-06-10T04:01:33+00:00

I have an .*idl interface: interface Class1; interface Class2 { typedef sequence<Class1> vector; Class2

  • 0

I have an .*idl interface:

interface Class1;

interface Class2
{
    typedef sequence<Class1> vector;
    Class2 create();
};

interface Class1
{
    typedef sequence<Class2> vector;
    Class1 create();
};

I compile it like this:

idlj -fclient interface.idl

and it gives me files:

Class1Helper.java      Class2.java            interface.idl
Class1Holder.java      _Class1Stub.java   Class2Operations.java
Class1.java            Class2Helper.java  
Class1Operations.java  Class2Holder.java  _Class2Stub.java

and catalogs:

Class1Package Class2Package

in Class1Package I have : vectorHelper.java vectorHolder.java and in Class2Package I have: vectorHelper.java vectorHolder.java. When I cded to Class1Package and tried to compile java files (with `javac *.java) I got errors:

vectorHelper.java:3: ‘.’ expected import Class2;
^ vectorHelper.java:3: ‘;’ expected import Class2;
^ vectorHelper.java:4: class, interface, or enum expected import Class2Helper;
^ vectorHolder.java:3: ‘.’ expected import Class2;
^ vectorHolder.java:3: ‘;’ expected import Class2;
^ 5 errors Class1Package$ javac *.java vectorHelper.java:3: ‘.’ expected import Class2;
^ vectorHelper.java:3: ‘;’ expected import Class2;
^ vectorHelper.java:4: class, interface, or enum expected import Class2Helper;
^ vectorHolder.java:3: ‘.’ expected import Class2;
^ vectorHolder.java:3: ‘;’ expected import Class2;
^ 5 errors

What’s wrong?

My whole project: http://www41.zippyshare.com/v/32339153/file.html

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:01:35+00:00Added an answer on June 10, 2026 at 4:01 am

    The reason for the error is explained here (look at accepted answer), basically from java 4 on you can no longer refer to a class (using an import statement) in an unnamed package (aka. default package) from a named package.

    Modify your IDL compiler to have a module, is there a reason you don’t have your interfaces inside a module already?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a defined idl file, which looks like this: module Banking { typedef
I have a legacy COM-component with an interface declaring a property like this (IDL
I try to implement callback interface with COM techonlogy and have IDL like that:
I have an interface defined in an IDL file that I would like to
I have a method defined in IDL as follows : interface IMyFunc : IDispatch
I have a structure defined in IDL. This structure has following members: { BSTR
I have a COM interface method definition in IDL as follows: [id(8)] HRESULT GetBinData([in,out,size_is(dataLen)]BYTE
Currently I have some code that looks like this void calc_run(Calculation *c, Input *i);
I'm trying to create the IDL for the IConverterSession interface and I'm confused by
I have this large IDL that I am importing into a C# project. Everything

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.