JPPF Forums
JPPF Help => Troubleshooting => Topic started by: hoho23 on February 12, 2021, 09:06:55 AM
-
I've tried to test the ExtendedClassLoading sample in the JPPF-6.2-samples-pack to understand how to use the class loading extensions to automate the management of a repository of application libraries at runtime, for all the nodes in the grid.
UNFORTUNATELY when I tried to build the project with the command "ant jar", the BUILD FAILED since the are some missing directories and classing. Here is the ERROR message I get:
##############################################################
~/Downloads/JPPF-6.2-samples-pack/ExtendedClassLoading$ ant
Buildfile: /home/toto/Downloads/JPPF-6.2-samples-pack/ExtendedClassLoading/build.xml
clean:
init:
compile.1:
[javac] /home/toto/Downloads/JPPF-6.2-samples-pack/ExtendedClassLoading/build.xml:100: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 14 source files to /home/toto/Downloads/JPPF-6.2-samples-pack/ExtendedClassLoading/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 8
[javac] /home/toto/Downloads/JPPF-6.2-samples-pack/ExtendedClassLoading/src/org/jppf/example/extendedclassloading/client/MyTask1.java:21: error: package org.jppf.example.extendedclassloading.clientlib1 does not exist
[javac] import org.jppf.example.extendedclassloading.clientlib1.MyClientDynamicClass1;
[javac] ^
[javac] /home/toto/Downloads/JPPF-6.2-samples-pack/ExtendedClassLoading/src/org/jppf/example/extendedclassloading/client/MyTask2.java:21: error: package org.jppf.example.extendedclassloading.clientlib2 does not exist
[javac] import org.jppf.example.extendedclassloading.clientlib2.MyClientDynamicClass2;
[javac] ^
[javac] /home/toto/Downloads/JPPF-6.2-samples-pack/ExtendedClassLoading/src/org/jppf/example/extendedclassloading/client/MyTask1.java:33: error: cannot find symbol
[javac] new MyClientDynamicClass1().printHello();
[javac] ^
[javac] symbol: class MyClientDynamicClass1
[javac] location: class MyTask1
[javac] /home/toto/Downloads/JPPF-6.2-samples-pack/ExtendedClassLoading/src/org/jppf/example/extendedclassloading/client/MyTask2.java:33: error: cannot find symbol
[javac] new MyClientDynamicClass2().printHello();
[javac] ^
[javac] symbol: class MyClientDynamicClass2
[javac] location: class MyTask2
[javac] 4 errors
[javac] 1 warning
BUILD FAILED
/home/toto/Downloads/JPPF-6.2-samples-pack/ExtendedClassLoading/build.xml:100: Compile failed; see the compiler error output for details.
Total time: 1 second
##############################################################
I've tried to add the missing directories and classes But the tutorial didn't work correctly!!!!!
-
Hello,
There are indeed issues in the build ant ascript for this sample. I registered a bug report for it: Issue #21 (https://github.com/jppf-grid/JPPF/issues/21), and it is fixed in this pull request (https://github.com/jppf-grid/JPPF/pull/22/files).
To resolve the problem on your side, simply replace the ExtendedClassLoading/build.xml with the fixed version (https://github.com/jppf-grid/JPPF/blob/b_6_2/samples-pack/ExtendedClassLoading/build.xml) in our repository.
Sorry for the inconvenience.
Sincerely,
-Laurent
-
Thanks for your help.
The sample is working perfectly :)