mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 11:25:30 -04:00
Merge pull request #634 from JanitSri/update-README
updated the README to include commands for Unix systems
This commit is contained in:
commit
2528e60b09
@ -54,7 +54,8 @@ jar cf json-java.jar org/json/*.class
|
|||||||
|
|
||||||
*Compile a program that uses the jar (see example code below)*
|
*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*
|
*Test file contents*
|
||||||
@ -71,7 +72,8 @@ public class Test {
|
|||||||
|
|
||||||
*Execute the Test file*
|
*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*
|
*Expected output*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user