Moving to Java 19
This commit is contained in:
parent
fc466113d8
commit
2009cd8cff
4
Makefile
4
Makefile
@ -28,8 +28,8 @@ checkperm:
|
|||||||
c: HelloWorld.c /usr/bin/gcc
|
c: HelloWorld.c /usr/bin/gcc
|
||||||
gcc -o HelloWorld HelloWorld.c
|
gcc -o HelloWorld HelloWorld.c
|
||||||
|
|
||||||
java: HelloWorld.java /usr/lib/jvm/java-18-openjdk/bin/javac /usr/lib/jvm/java-18-openjdk/bin/java
|
java: HelloWorld.java /usr/lib/jvm/java-19-openjdk/bin/javac /usr/lib/jvm/java-19-openjdk/bin/java
|
||||||
/usr/lib/jvm/java-18-openjdk/bin/javac HelloWorld.java
|
/usr/lib/jvm/java-19-openjdk/bin/javac HelloWorld.java
|
||||||
|
|
||||||
bash: HelloWorld.bash /usr/bin/bash
|
bash: HelloWorld.bash /usr/bin/bash
|
||||||
#bash HelloWorld.bash
|
#bash HelloWorld.bash
|
||||||
|
@ -28,7 +28,7 @@ def test_cs():
|
|||||||
|
|
||||||
def test_java():
|
def test_java():
|
||||||
print(os.getcwd())
|
print(os.getcwd())
|
||||||
fh = os.popen("/usr/lib/jvm/java-18-openjdk/bin/java HelloWorld", mode='r', buffering=-1)
|
fh = os.popen("/usr/lib/jvm/java-19-openjdk/bin/java HelloWorld", mode='r', buffering=-1)
|
||||||
output = fh.read()
|
output = fh.read()
|
||||||
retcode = fh.close()
|
retcode = fh.close()
|
||||||
assert retcode == None and CheckOutput(output)
|
assert retcode == None and CheckOutput(output)
|
||||||
|
Loading…
Reference in New Issue
Block a user