diff --git a/scripts/build.sh b/scripts/build.sh
index b8cf98a..63e2a92 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -169,7 +169,7 @@ main()
         return 1
     fi
 
-    if [[ ${PARAM_CPP} ]] ; then
+    if [[ ${PARAM_CPP} == 1 ]] ; then
         set_global_java_variables
         if [ $? -ne 0 ] ; then
             return 1