You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This must be compiled using javac according to the package name. In fact to compile this java code it must be moved to a directory called something. Then It can be compiled using javac something/SomeClass.java. But the tester.sh does not do this operation currently.
You can see the shell command executed for java files here:
if [ "$EXT"="java" ];then
cp ../java.policy java.policy
cp $PROBLEMPATH/$UN/$FILENAME.java $MAINFILENAME.java
shj_log "Compiling as Java"
javac $MAINFILENAME.java >/dev/null 2>cerr
...
This is annoying if the students structure their code in some directories with package statements.
A real example code:
Output:
The text was updated successfully, but these errors were encountered:
Consider this java code:
This must be compiled using javac according to the package name. In fact to compile this java code it must be moved to a directory called
something
. Then It can be compiled usingjavac something/SomeClass.java
. But thetester.sh
does not do this operation currently.You can see the shell command executed for java files here:
This is annoying if the students structure their code in some directories with package statements.
A real example code:
Output:
The text was updated successfully, but these errors were encountered: