Skip to content

Commit 319e9fe

Browse files
ian-burnettPhilWakelin
authored andcommitted
Extra detail about configuring build path (#15)
* Extra detail about configuring build path * Include section on importing projects * Rewording of import instructions
1 parent 23469c2 commit 319e9fe

File tree

2 files changed

+25
-11
lines changed

2 files changed

+25
-11
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ The sample Java classes are designed to be added to an OSGi bundle and deployed
3535
1. Copy the CICS supplied `DFHOSGI.jvmprofile` zFS file to the zFS directory specified by the `JVMPROFILE` SIT parameter, and ensure the `JAVA_HOME` variable is set correctly.
3636
1. Install the `DFHJVMS` resource defined in step 2 and ensure it becomes enabled.
3737

38+
39+
### Import the resources into your IDE
40+
41+
1. Ensure you have an Eclipse-based IDE with the CICS Explorer SDK installed.
42+
1. Import the relevant projects into your Eclipse environment as described in [Adding the resources to Eclipse](/projects#adding-the-resources-to-eclipse).
43+
1. Follow the instructions in the [Generated resources](/projects#generated-resources) section to add any required binary libraries to the build path.
44+
45+
3846
### To deploy the samples into a CICS region
3947

4048
1. Using the CICS Explorer export the `com.ibm.cicsdev.*.cicsbundle` projects to a zFS directory. The sample definitions use the following style of zFS location `/u/cics1/com.ibm.cicsdev.link.cicsbundle_1.0.0`.

projects/README.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@ Complete Eclipse projects demonstrating how to use the JCICS API in an OSGi JVM
88

99
* `com.ibm.cicsdev.*` - Eclipse project containing the Java source code.
1010
* `com.ibm.cicsdev.*.cicsbundle` - Eclipse project for a CICS bundle that can be deployed into a CICS region.
11-
* `com.ibm.cicsdev.*.resources.cicsbundle` - Eclipse project for a CICS bundle that defines the required program and transaction resources for the sample.
11+
* `com.ibm.cicsdev.*.resources.cicsbundle` - Eclipse project for a CICS bundle that defines the required
12+
program and transaction resources for the sample.
1213

1314

1415
## Samples overview
1516

16-
* [`com.ibm.cicsdev.link`](com.ibm.cicsdev.link) - Performing CICS LINK operations using both commareas, and channels and containers.
17-
* [`com.ibm.cicsdev.serialize`](com.ibm.cicsdev.serialize) - Serializing access to a common resource using the CICS ENQ and DEQ mechanism.
17+
* [`com.ibm.cicsdev.link`](com.ibm.cicsdev.link) - Performing CICS LINK operations using both commareas,
18+
and channels and containers.
19+
* [`com.ibm.cicsdev.serialize`](com.ibm.cicsdev.serialize) - Serializing access to a common resource using
20+
the CICS ENQ and DEQ mechanism.
1821
* [`com.ibm.cicsdev.tdq`](com.ibm.cicsdev.tdq) - Accessing transient data queues.
1922
* [`com.ibm.cicsdev.terminal`](com.ibm.cicsdev.terminal) - Reading in data from a terminal for an OSGi application.
2023
* [`com.ibm.cicsdev.tsq`](com.ibm.cicsdev.tsq) - Accessing temporary storage queues.
@@ -23,17 +26,20 @@ Complete Eclipse projects demonstrating how to use the JCICS API in an OSGi JVM
2326

2427
## Adding the resources to Eclipse
2528

26-
1. Using an Eclipse development environment import the project from the project folder using the menu File -> Import -> Existing Projects into Workspace.
27-
1. Define and set a CICS Target Platform for the workspace using the menu Window -> Preferences -> Target Platform.
29+
1. Using an Eclipse development environment import the project from the project folder using the menu
30+
**File** -> **Import** -> **Existing Projects into Workspace**.
31+
1. Define and set a CICS Target Platform for the workspace using the menu **Window** -> **Preferences** ->
32+
**Target Platform**.
2833

2934

3035
## Generated resources
3136

32-
Several sample projects manipulate binary structures and utilize Java classes generated using the JZOS
33-
record generator. The generated classes can be found packaged in a jar file, found in the `lib/` subdirectory
34-
of the relevant project. Only the compiled helper classes are required to compile and run the application,
35-
however the generated source files are included for reference.
3637

37-
If you are manually adding source files to your development environment, you will need to add the generated
38-
jar file to the classpath in order to compile the samples.
38+
The TS, TD, VSAM and LINK sample projects manipulate byte-oriented record structures using Java classes
39+
generated using the IBM Record Generator for Java. The generated classes can be found packaged in a JAR
40+
file, found in the `lib/` subdirectory of the relevant project. Only the compiled helper classes are
41+
required to compile and run the application, however the generated source files are included for reference.
3942

43+
If you are manually adding source files to your Eclipse development environment, you will need to add the
44+
generated JAR file to the build path in order to compile the samples, using the project context menu
45+
**Build Path** -> **Configure Build Path** -> **Libraries**.

0 commit comments

Comments
 (0)