diff --git a/README.md b/README.md index 3d2d7fb..f2d3864 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,13 @@ # Samples-java-helloworld -Simple hello world code to show a Java connection to InterSystems IRIS +This is a simple hello world example to show a JDBC connection to InterSystems IRIS. It retrieves and outputs sample petstore data that has been pre-loaded into your instance of InterSystems IRIS. -## To run this code in provided Theia IDE - -Edit **Samples-java-helloworld/Simple/HelloWorld.java**: +## Run the sample +In the integrated terminal window type: +* `cd /home/project/Samples-java-helloworld/simple` +* `javac -cp ".:intersystems-jdbc-3.0.0.jar" HelloWorld.java` +* `java -cp ".:intersystems-jdbc-3.0.0.jar" HelloWorld` -1. Comment out line 4 as we won't need the package declaration -2. Edit line 14 to change the ip to "try-iris" +## Keep Exploring +* To see another example of using Java and InterSystems IRIS, see the [Java Multi-model example](../quickstarts-multimodel-java/README.md) +* Or, continue to work with the pre-loaded petstore data. -In the terminal window type: - `cd Samples-java-helloworld/Simple` - `javac -cp ".:intersystems-jdbc-3.0.0.jar" HelloWorld.java` - `java -cp ".:intersystems-jdbc-3.0.0.jar" HelloWorld` diff --git a/Simple/HelloWorld.java b/Simple/HelloWorld.java index 725b6e7..1791097 100644 --- a/Simple/HelloWorld.java +++ b/Simple/HelloWorld.java @@ -1,7 +1,7 @@ /* * PURPOSE: Makes a connection to an instance of InterSystems IRIS Data Platform. */ -package com.intersystems.samples; +//package com.intersystems.samples; import com.intersystems.jdbc.IRISDataSource;