-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·20 lines (14 loc) · 886 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/zsh
JAVA_HOME=.:~/software/jdk-12
CLASSPATH=.:$JAVA_HOME/lib
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH
java -version
echo "javac --enable-preview -source 12 -Xlint:preview javasourc in newswitch"
javac --enable-preview -source 12 -Xlint:preview src/main/java/org/excavator/boot/jdk/ExampleWithNewSwitch.java
echo "java -cp sourcedir --enable-preview main in newswitch"
java -cp src/main/java --enable-preview org.excavator.boot.jdk.ExampleWithNewSwitch
echo "javac --enable-preview -source 12 -Xlint:preview javasourc in JEP-305 PatternMatching for InstanceOf"
javac --enable-preview -source 12 -Xlint:preview src/main/java/org/excavator/boot/jdk/PatternMatchingInstanceOf.java
echo "java -cp sourcedir --enable-preview main in JEP-305 PatternMatching for InstanceOf"
java -cp src/main/java --enable-preview org.excavator.boot.jdk.PatternMatchingInstanceOf