- OIM Design Console must be installed. This setup uses the files installed by the OIM Design Console.
- Add the Design Console JAR files to Eclipse:
- Select your project, then select Windows -> Preferences (Eclipse -> Properties on a Mac).
- Select Java, Build Path, User Libraries from the menu items on the left.
- Click the New button, and enter a library name (OIM API Library), then click OK.
- Click the Add Jars button, navigate to the "lib" directory where your OIM Design Console is installed (OIMDesignHome/xlclient/lib), and select all the jar files. It is left as an exorcise to set the javadoc location -- these might be located somewhere in OIMDesignHome/documentation/SDK/javadocs. If you find them, please update this page.
- Add the User Library created in 2 to your Eclipses project:
- Select your project, then select Project -> Properties.
- Select Java Build Path from the menu items on the left.
- Select the Libraries tab.
- Click on the Add Library button, select User Library from the list, then Next.
- Select OIM API Library from the list, then click Finish.
- Add the files in the Design Consoles "ext" directory to the class path, and set the VM Arguments:
- Select your project, then select Project -> Properties.
- Select Run/Debug Settings form the menu items on the left.
- If a launch configuration has not already been setup for your project, click on the New button and select Java Application as the type. Otherwise, select your configuration and press the Edit button.
- On the Main tab, ensure that your Main class is set to the correct class file.
- On the Arguments tab, enter the following:
-DXL.HomeDir=. -Djava.security.policy=config/xl.policy -Djava.security.auth.login.config=config/auth.conf -Dlog4j.configuration=config/log.properties
- Change the working directory to OIMDesignHome/xlclient.
- On the JRE tab, make sure that a 1.4.2 JVM is selected. Otherwise you run the risk of using features not available to OIM.
- On the Classpath tab, select User Entries, then click on the Add External JARs button.
- Navigate to OIMDesignHome/xlclient/ext and select all the JAR files.
- Eclipse is now configured to run and debug your code that uses the OIM API.
Wednesday, December 1, 2010
Setup Eclipse Environment for OIM API debugging
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment