These labs use JDK 1.8 (Java 8), since CORBA classes are no longer available in later versions of Java.
Check out this website: OpenJDK Downloads
Choose the configurations depending on your own machine's characteristics.
If you have Eclipse:
3.1. Add the JDK to the installed JREs:
Window > Preferences > Java > Installed JREs
> Add > Standard VM > Next > Directory > Find and select your JDK folder > Finish > Check the newly added JDK to make it the default JDK for compilation (temporarily, you can always come back and undo that) > Apply and close.
3.2. Add the JDK to your project's libray:
Left click the project > Build path > Configure build path > Libraries > Add library > JRE System library
> Next > Execution environment > JavaSE 1.8
> Finish > Apply and close.
4.1. Go to the location of the JDK folder, enter the bin
folder, and copy the path in there.
4.2. Go to the environment variables
> Path > Edit > Add > Paste the copied path there > Apply Ok for all tabs.
4.3. To test if it all works fine, go to the command prompt and check the version of idlj
:
idlj -version
It should return the version of idlj.
hello.idl:
interface Hello {
void sayHello();
}
By compiling this file, it gnerates all the necessary classes for the CORBA app:
idlj -fall hello.idl
HelloImpl.java:
public class HelloImpl extends HelloPOA {
void sayHello() {
// Implementation
}
}
- Test writing the client in another language (ex. C++) to communicate with the Java-written server.