Adding IDL to a Current Eclipse Installation
QUESTION: I currently use an Eclipse development environment for JAVA development. Is it possible to use this for IDL 7, or do I have to have a separate Eclipse installation for IDL?
ANSWER: Adding IDL to a current Eclipse installation is not officially supported by ITTVIS, but they have offered a couple of suggestions for people brave enough to want to try it. First of all, the following suggestions will only work with Eclipse 3.3 or higher. There were a number of important changes in going from Eclipse 3.2 to Eclipse 3.3 that the IDL Workbench relies on. If you want to try this, follow these steps:
- Find these three core IDL plug-ins in your IDL/idlde/plugins directory:
com.rsi.idldt_7.0.0.jar com.rsi.idldt.core_7.0.1.jar com.rsi.idldt.ui_7.0.0.jar
- Copy these JAR files into your Eclipse/plugins directory.
- If you want the IDL documenation, then you will need to copy all of the com.rsi.idl.doc.*.jar plug-ins as well.
- If you want the language packs, you will need to copy the ones with "*.nl*.jar", too.
- Set the LD_LIBRARY_PATH environment variable to point to both the idlde/bin.linux.x86 and the idl70/bin/bin.linux.x86 directories.
- Make sure the JDMLDir, BMLDir, and DMLDir environment variables point to the idlde/bin.linux.x86 directory. On Windows there is no platform- specific sub-directory.
- Make a shortcut or script to your eclipse.exe. On Windows, the shortcut should have these
command line options:
C:\Eclipse3.3\eclipse.exe -vmargs -DDMLDir="C:\Program Files\ITT \IDL70\idlde" -DJDMLDir="C:\Program Files\ITT\IDL70\idlde" -DBMLDir="C: \Program Files\ITT\IDL70\idlde" -DIDLDir="C:\Program Files\ITT \IDL70\bin\bin.x86" -DIDL_DIR="C:\Program Files\ITT\IDL70\"
On UNIX, you could use a shell script like the following, named idl_eclipse, to start Eclipse with IDL:
#!/bin/sh IDL_DIR=/software/rsi/idl70 export IDL_DIR LD_LIBRARY_PATH=/software/rsi/idl70/idlde/bin.linux.x86:/software/rsi/ idl70/bin/bin.linux.x86 export LD_LIBRARY_PATH eclipse -vmargs -DJDMLDir=/software/rsi/idl70/idlde/bin.linux.x86 \ -DBMLDir=/software/rsi/idl70/idlde/bin.linux.x86 \ -DDMLDir=/software/rsi/idl70/idlde/bin.linux.x86 \ -DIDLDir=/software/rsi/idl70/bin/bin.linux.x86 \ -DIDL_DIR=/software/rsi/idl70 &
- The first time you start Eclipse, you will not see the IDL Perspective, and the IDL process will not be started. Go to the Window->Open Perspective->Other menu selection and choose IDL. You will see numerous Java null exception errors, and IDL will attempt to start, but fail.
- Quit Eclipse, and re-start. At this point, you should be good to go!
The (one?) person who has tried this on LINUX, makes these observations.
- I always get a Java null pointer exception when I start the "IDL FrankenDE". This seems harmless.
- To get the IDL process to start, you have to have the IDL Command Line View visible.
- You cannot seamlessly debug a Java program and an IDL program. For example, if you are using the Java export bridge, this will fire up an IDL process that is not the same as the IDL process within your Workbench. So you cannot step from your Java code into your IDL code.
If anyone else tries this and has insights to add, please let us know on the IDL Newsgroup.
This testimonial has just come in.
It works! Thanks very much, I can now run IDL in Eclipse/Europa. All I need do now is configure Europa so it's the same as my previous version of Eclipse. Or I could configure the IDL workbench so it's the same as my previous setup for Eclipse.
Copyright © 2008 David W. Fanning
Last Updated 18 January 2008