javaeclipsepluginscorba

The import org.omg cannot be resolved


I'm following this tutorial on how to set up corba, but I can't use the packages they are talking about, and no where on the internet can give an adequate explanation of how to get them.

I want the following imports to not give me an error.

import org.omg.CosNaming.*;
import org.omg.CosNaming.NamingContextPackage.*;
import org.omg.CORBA.*;
import org.omg.PortableServer.*;
import org.omg.PortableServer.POA;

Downloading JacORB just gives me a github file the also has imports of the package 'org.omg'

Somebody said use this findjar site, I have no idea what the things are on that site


Solution

  • Be sure to download the CORBA API from a reliable source:

    Add a folder to your project called lib and drag the jar file into lib

    Right Click the jar file and select Build Path -> Add to Build Path

    Then go to project -> properties -> libraries and move the jar to your CLASSPATH