Simplify for Try/Eval

* Simplified README
* Commented out not needed package
This commit is contained in:
semanej 2019-06-03 16:49:48 -04:00
parent 2c298aea0f
commit 5d89bbc7e1
2 changed files with 10 additions and 11 deletions

View File

@ -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`

View File

@ -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;