Merge pull request #4 from intersystems/labs-readme-update

update readme
This commit is contained in:
DuongDo-Intersystems 2019-04-08 17:03:24 -04:00 committed by GitHub
commit a3af0b50aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -1,10 +1,11 @@
# 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](https://irisdocs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=AB_idesetup).
## To run this code in InterSystems Learning Labs, AWS, GCP, or Azure
## To run this code in InterSystems Learning Labs or Evaluator Edition (on AWS, GCP, or Azure)
1. Open Samples-java-helloworld/Simple/HelloWorld.java
2. Comment out line 4 (we won't need the package declaration here)
3. Edit line 14 to change the ip to "try-iris"
2. Comment out line 4 (since we won't need the package declaration here)
`//package com.intersystems.samples;`
3. 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)
4. In the terminal window type:
`cd Samples-java-helloworld/simple`
`javac -cp ".:intersystems-jdbc-3.0.0.jar" HelloWorld.java`