Simplify for Try/Eval
* Simplified README * Commented out not needed package
This commit is contained in:
parent
2c298aea0f
commit
5d89bbc7e1
19
README.md
19
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
|
||||
## 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`
|
||||
|
||||
Edit **Samples-java-helloworld/Simple/HelloWorld.java**:
|
||||
## 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.
|
||||
|
||||
1. Comment out line 4 as we won't need the package declaration
|
||||
2. Edit line 14 to change the ip to "try-iris"
|
||||
|
||||
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`
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue