JPPF, java, parallel computing, distributed computing, grid computing, parallel, distributed, cluster, grid, cloud, open source, android, .net
JPPF

The open source
grid computing
solution

 Home   About   Features   Download   Documentation   On Github   Forums 
April 14, 2021, 09:12:19 PM *
Welcome,
Please login or register.

Login with username, password and session length
Advanced search  
News: New users, please read this message. Thank you!
  Home Help Search Login Register  
Pages: [1]   Go Down

Author Topic: Building The ExtendedClassLoading Sample-Failed  (Read 59 times)

hoho23

  • JPPF Padawan
  • *
  • Posts: 11
Building The ExtendedClassLoading Sample-Failed
« 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!!!!!
Logged

lolo

  • Administrator
  • JPPF Council Member
  • *****
  • Posts: 2268
    • JPPF Web site
Re: Building The ExtendedClassLoading Sample-Failed
« Reply #1 on: February 14, 2021, 06:37:41 AM »

Hello,

There are indeed issues in the build ant ascript for this sample. I registered a bug report for it: Issue #21, and it is fixed in this pull request.

To resolve the problem on your side, simply replace the ExtendedClassLoading/build.xml with the fixed version in our repository.

Sorry for the inconvenience.

Sincerely,
-Laurent
Logged

hoho23

  • JPPF Padawan
  • *
  • Posts: 11
Re: Building The ExtendedClassLoading Sample-Failed
« Reply #2 on: February 15, 2021, 09:20:54 AM »

Thanks for your help.
The sample is working perfectly  :)
Logged
Pages: [1]   Go Up
 
JPPF Powered by SMF 2.0 RC5 | SMF © 2006–2011, Simple Machines LLC Get JPPF at SourceForge.net. Fast, secure and Free Open Source software downloads