"Eric / Chang-Cheng, Chao" wrote:
> 
> Hi, I want to write some CORBA-compliant java programs and I need
> "idltojava" in order to convert the IDL  files to Java files.  I checked
> the Sun's website and I found versions for Sparc Solaris and Windows but
> none for Linux. Can anyone tell me where I can get it if there is indeed
> one available? Thanks.

No there is no idltojava compiler available for Linux.  (It's not a Java
application, and the source is not released, not even to the Blackdown
team(?).)  The currrent JDK1.3beta has a different ORB.  And the IDL
compiler for that ORB is called idlj and IS part of the JDK1.3beta.

The Win32 version of the old idltojava (for JDK1.2beta2, I think) does
run inside Wine.  So if you really really want to do your idltojava part
of the work on Linux, you can kludge it this way:
  1. Write your *.idl;
  2. Run 'gcc -E' over it (or find a cpp that runs under Wine);
  3. Copy the resulting file to where Wine thinks is the 'C:\' drive;
  4. Run idltojava on that file in Wine;
  5. Copy the result back;
  6. Of course Wine messes up all the file names (all lower case
letters), so you have to change them back to the proper case by hand.

I was crazy enough to do the above once, and it did work.  But I've
decided that it's easier to use a near by Windows 95 machine for the
task.

Maybe one could write a bash script to automate the above process.

-- 
Weiqi Gao
[EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to