mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-02 11:05:28 -04:00
updated the README to include commands for Unix systems
This commit is contained in:
parent
cf43419015
commit
9f19c22b77
@ -54,7 +54,8 @@ jar cf json-java.jar org/json/*.class
|
||||
|
||||
*Compile a program that uses the jar (see example code below)*
|
||||
````
|
||||
javac -cp .;json-java.jar Test.java
|
||||
javac -cp .;json-java.jar Test.java (Windows)
|
||||
javac -cp .:json-java.jar Test.java (Unix Systems)
|
||||
````
|
||||
|
||||
*Test file contents*
|
||||
@ -71,7 +72,8 @@ public class Test {
|
||||
|
||||
*Execute the Test file*
|
||||
````
|
||||
java -cp .;json-java.jar Test
|
||||
java -cp .;json-java.jar Test (Windows)
|
||||
java -cp .:json-java.jar Test (Unix Systems)
|
||||
````
|
||||
|
||||
*Expected output*
|
||||
|
Loading…
x
Reference in New Issue
Block a user