YuCheng Hu aca72a7bce | ||
---|---|---|
.idea | ||
.settings | ||
lib | ||
src/main | ||
.classpath | ||
.project | ||
LICENSE | ||
README.md | ||
Samples-java-helloworld.iml | ||
Samples-java-helloworld.ipr | ||
pom.xml |
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
- Clone this repo
- Open the repo in your favorite Java IDE (such as Eclipse, IntelliJ, or NetBeans)
- Open Samples-java-helloworld/src/main/java/com/intersystems/samples/HelloWorld.java and verify ip, password, port, and username are right. Update as necessary.
- Set up a classpath to intersystems-jdbc-3.2.0.jar
- Run HelloWorld.java
To run this code in InterSystems Learning Labs or Evaluator Edition (on AWS, GCP, or Azure)
- Clone the
ry-iris
branch:git clone -b try-iris https://github.com/intersystems/Samples-java-helloworld
- 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)
- 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