global didnt work

put back variables into node
diff --git a/Jenkinsfile b/Jenkinsfile
index 6b62bbb..5a06d36 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -17,12 +17,10 @@
  * under the License.
  */
 
-// define variables here for global use
-def JAVA_JDK_8=tool name: 'JDK 1.8 (latest)', type: 'hudson.model.JDK'
-
 try {
         
 node('Windows') {
+        def JAVA_JDK_8=tool name: 'JDK 1.8 (latest)', type: 'hudson.model.JDK'
         echo "Testing with Java $JAVA_JDK_8"
         stage('JAVA 1.8 (Latest) on Windows'){
         withEnv(["Path+JDK=$JAVA_JDK_8\\bin","JAVA_HOME=$JAVA_JDK_8"]) {
@@ -32,6 +30,7 @@
     } // end node Windows
 
 node('ubuntu') {
+        def JAVA_JDK_8=tool name: 'JDK 1.8 (latest)', type: 'hudson.model.JDK'
         echo "Testing with Java $JAVA_JDK_8"
         stage('JAVA 1.8 (Latest) on Ubuntu'){
         withEnv(["Path+JDK=$JAVA_JDK_8/bin","JAVA_HOME=$JAVA_JDK_8"]) {