Importing Missing CORBA Classes
The following hack is **TOTALLY**
unsupported! This means that **neither** IBM **nor** Scott Stanchfield
be held accountable for any damage caused by this hack!
Hacking the VisualAge data files is AT YOUR OWN RISK. If you try this, try it on an isolated machine first!
Several folks have had trouble using CORBA in VisualAge for Java version 3, Early Adopters Environment. The problem is that IBM has locked an incomplete version of the CORBA libraries from OMG in the Java class libraries project. This prevents anyone from adding in the missing classes that are necessary for many ORBs.
Warning: THE FOLLOWING IS A HACK!!!!!!!!!
I cannot stress that strong enough. However, it seems that the above problem is seriously impacting development (it's not simply a "I want to use JDK 1.1.8 instead of 1.1.7" issue).
Read through this process before doing anything.
I strongly recommend you try this out on an isolated machine, NOT your development machine. Make sure it seems stable for you before
Version everything in your workspace
Backup the repository (ivj.dat) and your project_resources directories somewhere safe
[optional] uninstall & reinstall VAJ v3 Early Adopters environment (I recommend this step, but it's not absolutely necessary)
Hex Edit the \IBMVJava\ide\program\runtime.icx file
Look for second occurrence of ASCII "Java class libraries" (it should have <proj> before it)
Change it to say "Java class librariex" (a bogus name) This seems to remove the lock...
Save the runtime.icx
Import missing CORBA class INTO the Java class libraries project
Version Java class libraries as "1.2 corba hack"
Hex Edit runtime.icx, changing "Java class librariex" back to "Java class libraries"
My guess is that the spot we're editing in runtime.icx also controls some of the execution behavior for CLASSPATH and VCE and such. Because of this, it is imperative that you FIX the runtime.icx when done.
DO NOT use this to try to upgrade the JDK core libraries (ie JDK 1.1.7->1.1.8) -- it won't work and could cause some very nasty problems even if you do get it partially working.