Simple hello world code to show a Java connection to InterSystems IRIS
Go to file
YuCheng Hu aca72a7bce user stand gitignore file for project 2024-07-31 16:54:24 -04:00
.idea user stand gitignore file for project 2024-07-31 16:54:24 -04:00
.settings Add helloworld sample 2019-01-16 16:30:35 -05:00
lib Update driver 2020-11-13 10:33:53 -05:00
src/main MAB Create a sample POM file and IntelliJ IDEA Project 2019-01-20 18:12:03 -05:00
.classpath Add helloworld sample 2019-01-16 16:30:35 -05:00
.project Add helloworld sample 2019-01-16 16:30:35 -05:00
LICENSE Initial commit 2019-01-14 10:48:46 -05:00
README.md Update README.md 2021-03-17 16:27:12 -04:00
Samples-java-helloworld.iml MAB Create a sample POM file and IntelliJ IDEA Project 2019-01-19 11:53:55 -05:00
Samples-java-helloworld.ipr MAB Create a sample POM file and IntelliJ IDEA Project 2019-01-20 18:17:37 -05:00
pom.xml not all version of JDBC can be found and run 2024-07-31 16:52:08 -04:00

README.md

Samples-java-helloworld

This is a simple hello world example to show a JDBC connection to InterSystems IRIS. For more information about using this sample, please see documentation.

To run this code locally

  1. Clone this repo
  2. Open the repo in your favorite Java IDE (such as Eclipse, IntelliJ, or NetBeans)
  3. Open Samples-java-helloworld/src/main/java/com/intersystems/samples/HelloWorld.java and verify ip, password, port, and username are right. Update as necessary.
  4. Set up a classpath to intersystems-jdbc-3.2.0.jar
  5. Run HelloWorld.java

To run this code in InterSystems Learning Labs or Evaluator Edition (on AWS, GCP, or Azure)

  1. Clone the ry-iris branch: git clone -b try-iris https://github.com/intersystems/Samples-java-helloworld
  2. For AWS, GCP, or Azure ONLY: Edit line 14 to change the ip to "try-iris" (Please skip this step if using InterSystems Learning Labs)
  3. In the terminal window, move to the Samples-java-helloworld and type:
    javac -cp ".:intersystems-jdbc-3.2.0.jar" HelloWorld.java
    java -cp ".:intersystems-jdbc-3.2.0.jar" HelloWorld