How to configure and run the IBMi TN5250J Screens project
When working with IBMi TN5250J screens, you must provide the TN5250J jar to the OpenLegacy CLI and place them inside your .m2 directory in case you need to compile the project.
You can find the JAR here.
- Unzip the file.
- Copy from:
IBMi-tn5250j-screens/tn5250j/0.8.0.2/tn5250j-0.8.0.2.jar
into:
/.ol/cli/extra-classpath-resources/tn5250j-0.8.0.2.jar
This will allow the CLI to use the H3270 JAR and run the emulation.
In case you want to compile the OpenLegacy API, make sure to have the following artifact in your .m2 repository:
- groupId: Set the group ID to tn5250j
- artifactId: Set the artifact ID to tn5250j
- version: Set the version to 0.8.0.2
You can run the install-to-m2.sh script inside the root directory, or call this command from the terminal:
mvn install:install-file \
-Dfile=./tn5250j/0.8.0.2/tn5250j-0.8.0.2.jar \
-DpomFile=./tn5250j/0.8.0.2/tn5250j-0.8.0.2.pom\
-DgroupId=tn5250j \
-DartifactId=tn5250j \
-Dversion=0.8.0.2 \
-Dpackaging=jar
Or create the following hierarchy in your .m2 repository:
.m2/repository/tn5250j/tn5250j/0.8.0.2/tn5250j-0.8.0.2.jar
.m2/repository/tn5250j/tn5250j/0.8.0.2/tn5250j-0.8.0.2.pom
Updated 7 months ago