Beruflich Dokumente
Kultur Dokumente
3
Student Exercises
EXNoSideHLeL
Activities
Student Exercises
V5.4.0.3
Student Exercises
b. Select the JAR files listed in the data table, and click Open. 3. Click Finish in the Java Settings window. 4. If you are prompted with the message Open Associated Perspective? window, click Yes.
1. In the Properties window, select the Java Build Path from the tree view in the left pane. 2. Click the Source tab in the right pane. 3. In the Default output folder field (at the bottom of the screen), click Browse. 4. In the Folder Selection window, click Create New Folder to create a new folder. a. Type classes in the Folder name box.
Copyright IBM Corp. 2011 Unit 1. Set Up Eclipse IDE
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
Student Exercises
b. Click OK. c. In the Folder Selection window, select the classes folder. d. Click OK to close the Folder Selection window. 5. Click OK in the Properties window. 6. Click Yes if you are prompted with the output folder information.
e. Select the check box next to the files listed in the data table, and then click Finish. 2. Optionally, you can add Java solution files to your project by doing the following steps: a. In the Package Explorer window, select your package (com.ibm.filenet.edu), right-click, and click Import. b. In the Import window, open the folder called General, select the File System option, and click Next.
V5.4.0.3
Student Exercises
c. EXNoSideHead Click Browse next to the From directory field at the top, go to the C:\CMJavaAPIProg\Solution folder, and select it. d. Click OK. e. Select the check box next to the Solution folder to select all the files. f. Click the Filter Types button. g. In the Select Types window, select this type: .java h. Click OK. i. j. In the Import window, click Finish. Verify that all the Java files are added to your project.
Name
Modifiers Superclass Which method stubs would you public static void main(String[] args) like to create? 3. Click Finish to close the window.
Student Exercises
Example: com.ibm.filenet.edu.<Name of the Java class that you want to run> d. Click the Arguments tab. 2. Enter the VM arguments: a. In the Arguments tab, clear any entry that you find in the VM arguments field. b. Copy and paste the content from the following file into the VM arguments field: C:\CMJavaAPIProg\Source\VMArgumentsforEclipse.txt c. Click Apply to save the changes. d. Click Run to execute the code. Important The values given in the following table are for informational purposes only. To avoid any typing or formatting error, use the VMArgumentsforEclipse.txt file provided on your student system to copy and paste these values.
Values for VM Arguments (C:\CMJavaAPIProg\Source\VMArgumentsforEclipse.txt) -Dcom.ibm.CORBA.ConfigURL="file:C:\Program Files\IBM\WebSphere\AppClient\properties\sas.client.props" -Djava.security.auth.login.config="file:C:\CE_API\config\jaas.conf.WebSphere" -Djava.naming.provider.url=iiop://ccv01135:2809 -Djava.ext.dirs="C:\Program Files\IBM\WebSphere\AppClient\java\jre\lib;C:\Program Files\IBM\WebSphere\AppClient\java\jre\lib\ext;C:\Program Files\IBM\WebSphere\AppClient\lib;C:\Program Files\IBM\WebSphere\AppClient\plugins" Troubleshooting If you receive the following error when you execute the code, it is most likely due to VM arguments missing for the Java class:
com.filenet.api.exception.EngineRuntimeException: FNRCA0032E: API_UNEXPECTED_JNDI_ERROR: The JNDI cannot be accessed. at com.filenet.apiimpl.util.SessionLocator.locateEJBByPath(SessionLocator.java:879) at com.filenet.apiimpl.util.SessionLocator.findEJBSessionByPath(SessionLocator.java:814)
... Follow the steps in Procedure 8 step 2 to enter the VM arguments for your Java class.
V5.4.0.3
Student Exercises
1. Locate the following folder: C:\Program Files\IBM\WebSphere\AppClient\properties 2. Open the sas.client.props file with a text editor (example: Notepad). 3. Set the values for the entries using the values listed in the following data table. sas.client.props entries com.ibm.CORBA.sercurityServerHost com.ibm.CORBA.sercurityServerPort com.ibm.CORBA.loginSource Value ccv01135 2809 none (type this value)