When "make px4_sitl jmavsim" it report "WARNING: Illegal reflective access by javax.media.j3d.JoglPipeline (rsrc:j3dcore.jar) to method sun.awt.AppContext.getAppContext()"

#1

It reported "WARNING: Illegal reflective access by javax.media.j3d.JoglPipeline (rsrc:j3dcore.jar) to method sun.awt.AppContext.getAppContext()
" and “BUILD SUCCESSFUL”.
Does anyone know how to fix it?
Thanks a lot.

xxx@xxx-ubuntu18042LTS64bit-virtual-machine:~/src/Firmware$ make px4_sitl jmavsim
– PX4 config file: /home/xxx/src/Firmware/boards/px4/sitl/default.cmake
– PX4 config: px4_sitl_default
– PX4 platform: posix
– PX4 lockstep: enabled
– PX4 version: v1.9.0-326-gfecb32f88d
– cmake build type: RelWithDebInfo
– The CXX compiler identification is GNU 7.4.0
– The C compiler identification is GNU 7.4.0
– The ASM compiler identification is GNU
– Found assembler: /usr/bin/cc
– Check for working CXX compiler: /usr/bin/c++
– Check for working CXX compiler: /usr/bin/c++ – works
– Detecting CXX compiler ABI info
– Detecting CXX compiler ABI info - done
– Detecting CXX compile features
– Detecting CXX compile features - done
– Check for working C compiler: /usr/bin/cc
– Check for working C compiler: /usr/bin/cc – works
– Detecting C compiler ABI info
– Detecting C compiler ABI info - done
– Detecting C compile features
– Detecting C compile features - done
– Found PythonInterp: /usr/bin/python (found version “2.7.15”)
– Found PY_jinja2: /usr/lib/python2.7/dist-packages/jinja2
– PX4 ECL: Very lightweight Estimation & Control Library v1.9.0-rc1-16-ga036cf8
– Configuring done
– Generating done
– Build files have been written to: /home/xxx/src/Firmware/build/px4_sitl_default
Scanning dependencies of target git_jmavsim
Scanning dependencies of target logs_symlink
Scanning dependencies of target lockstep_scheduler
Scanning dependencies of target uorb_headers
[ 0%] Generating …/…/logs
[ 0%] git submodule Tools/jMAVSim
[ 0%] Built target logs_symlink
[ 0%] Generating uORB topic headers
[ 0%] Building CXX object platforms/posix/src/lockstep_scheduler/CMakeFiles/lockstep_scheduler.dir/src/lockstep_scheduler.cpp.o
Scanning dependencies of target df_driver_framework
[ 0%] Built target git_jmavsim


INFO [mavlink] mode: Normal, data rate: 4000000 B/s on udp port 14570 remote port 14550
Buildfile: /home/shelley/src/Firmware/Tools/jMAVSim/build.xml
INFO [mavlink] mode: Onboard, data rate: 4000000 B/s on udp port 14580 remote port 14540
INFO [logger] logger started (mode=all)
INFO [logger] Start file log (type: full)
INFO [mavlink] MAVLink only on localhost (set param MAV_BROADCAST = 1 to enable network)
INFO [logger] Opened full log file: ./log/2019-07-05/02_38_48.ulg
INFO [px4] Startup script returned successfully
pxh>
make_dirs:
[mkdir] Created dir: /home/xxx/src/Firmware/Tools/jMAVSim/out/production/jMAVSim

compile:
[javac] Compiling 76 source files to /home/shelley/src/Firmware/Tools/jMAVSim/out/production/jMAVSim

create_run_jar:
[jar] Building jar: /home/xxx/src/Firmware/Tools/jMAVSim/out/production/jmavsim_run.jar

copy_res:
[copy] Copying 17 files to /home/xxx/src/Firmware/Tools/jMAVSim/out/production

BUILD SUCCESSFUL
Total time: 3 seconds
Options parsed, starting Sim.
Starting GUI…
Jul 05, 2019 10:38:53 AM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
3D [dev] 1.6.0-pre12-daily-experimental daily

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by javax.media.j3d.JoglPipeline (rsrc:j3dcore.jar) to method sun.awt.AppContext.getAppContext()
WARNING: Please consider reporting this to the maintainers of javax.media.j3d.JoglPipeline
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Inconsistency detected by ld.so: dl-lookup.c: 111: check_match: Assertion `version->filename == NULL || ! _dl_name_match_p (version->filename, map)’ failed!
pxh>
pxh> commander takeoff
ERROR [commander] rejecting takeoff, no position lock yet. Please retry…
Command ‘commander’ failed, returned 1.
pxh> commander takeoff
ERROR [commander] rejecting takeoff, no position lock yet. Please retry…
Command ‘commander’ failed, returned 1.
pxh> INFO [mavlink] partner IP: 127.0.0.1
pxh> commander takeoff
ERROR [commander] rejecting takeoff, no position lock yet. Please retry…
Command ‘commander’ failed, returned 1.
pxh> commander takeoff
ERROR [commander] rejecting takeoff, no position lock yet. Please retry…
Command ‘commander’ failed, returned 1.
pxh> ERROR [mavlink] Failed to start shell (-1)
pxh> shutdown
Shutting down
/home/xxx/src/Firmware/Tools/sitl_run.sh: line 140: kill: (17457) - No such process
platforms/posix/CMakeFiles/jmavsim.dir/build.make:57: recipe for target ‘platforms/posix/CMakeFiles/jmavsim’ failed
make[4]: *** [platforms/posix/CMakeFiles/jmavsim] Error 1
CMakeFiles/Makefile2:19939: recipe for target ‘platforms/posix/CMakeFiles/jmavsim.dir/all’ failed
make[3]: *** [platforms/posix/CMakeFiles/jmavsim.dir/all] Error 2
CMakeFiles/Makefile2:19946: recipe for target ‘platforms/posix/CMakeFiles/jmavsim.dir/rule’ failed
make[2]: *** [platforms/posix/CMakeFiles/jmavsim.dir/rule] Error 2
Makefile:6231: recipe for target ‘jmavsim’ failed
make[1]: *** [jmavsim] Error 2
Makefile:200: recipe for target ‘px4_sitl’ failed
make: *** [px4_sitl] Error 2