aboutsummaryrefslogtreecommitdiff
path: root/doc/problemexamples/problemtemplate/run
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-08-12 14:58:37 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-08-12 14:58:37 +0000
commit4a96669616d1600604abfa21da5b410432e5b0a4 (patch)
tree88852b161f9a9bd0a54bceca38bad5af06330df6 /doc/problemexamples/problemtemplate/run
parent7e53a3e24b103d4a272a0f54a51be51e31ba8b0d (diff)
downloadboca-4a96669616d1600604abfa21da5b410432e5b0a4.tar.gz
boca-4a96669616d1600604abfa21da5b410432e5b0a4.zip
suggest java class name, better output
Diffstat (limited to 'doc/problemexamples/problemtemplate/run')
-rwxr-xr-xdoc/problemexamples/problemtemplate/run/java8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/problemexamples/problemtemplate/run/java b/doc/problemexamples/problemtemplate/run/java
index ff7a368..4cec4ee 100755
--- a/doc/problemexamples/problemtemplate/run/java
+++ b/doc/problemexamples/problemtemplate/run/java
@@ -178,7 +178,13 @@ else
ret=$?
fi
if [ $ret -gt 10 ]; then
- echo "> > > > > > > Nonzero return code - possible runtime error - I'M GUESSING IT IS RUNTIME ERROR < < < < < < < <"
+ if [ -r stderr0 ]; then
+ grep -q "not find or load main class" stderr0
+ if [ $? == 0 ]; then
+ echo "> > > Nonzero return code - possible class name mismatch - do check < < <"
+ else
+ echo "> > > Nonzero return code - possible runtime error - do check < < <"
+ fi
ret=9
fi
if [ -f stdout0 ]; then