PX4 / jMAVSim

Simple multirotor simulator with MAVLink protocol support
BSD 3-Clause "New" or "Revised" License
84 stars 208 forks source link

Unable to launch JMAVSim in Windows - Could not create the Java Virtual Machine #139

Open KarthiAru opened 3 months ago

KarthiAru commented 3 months ago

Hi,

I was able to successfully build by running make px4_sitl jmavsim. I followed the instructions here for installation in Windows 11 - https://docs.px4.io/v1.12/en/dev_setup/dev_env_windows_cygwin.html.

I switched to the v1.14.3 release tag for PX4-Autopilot. Also, I updated the cygwin packages by running setup-x86_64.exe in the PX4\toolchain\cygwin64 folder. I had to update this since the cmake version 3.14.3 was lower than the 3.16 version required by the "uxrce_dds_client" module.

Error:

Unrecognized option: --add-exports
Error: Could not create the Java Virtual Machine.

Logs:

karth@ka ~/Firmware
$ make -j8 px4_sitl jmavsim
[1/2] launching px4 jmavsim_iris (SYS_AUTOSTART=10017)

______  __   __    ___
| ___ \ \ \ / /   /   |
| |_/ /  \ V /   / /| |
|  __/   /   \  / /_| |
| |     / /^\ \ \___  |
\_|     \/   \/     |_/

px4 starting.

INFO  [px4] startup script: /bin/sh etc/init.d-posix/rcS 0
env SYS_AUTOSTART: 10017
INFO  [param] selected parameter default file parameters.bson
INFO  [param] selected parameter backup file parameters_backup.bson
  SYS_AUTOCONFIG: curr: 0 -> new: 1
  SYS_AUTOSTART: curr: 0 -> new: 10017
  CAL_ACC0_ID: curr: 0 -> new: 1310988
  CAL_GYRO0_ID: curr: 0 -> new: 1310988
  CAL_ACC1_ID: curr: 0 -> new: 1310996
  CAL_GYRO1_ID: curr: 0 -> new: 1310996
  CAL_ACC2_ID: curr: 0 -> new: 1311004
  CAL_GYRO2_ID: curr: 0 -> new: 1311004
  CAL_MAG0_ID: curr: 0 -> new: 197388
  CAL_MAG0_PRIO: curr: -1 -> new: 50
  CAL_MAG1_ID: curr: 0 -> new: 197644
  CAL_MAG1_PRIO: curr: -1 -> new: 50
* SENS_BOARD_X_OFF: curr: 0.0000 -> new: 0.0000
* SENS_DPRES_OFF: curr: 0.0000 -> new: 0.0010
INFO  [dataman] data manager file './dataman' size is 7866640 bytes
/cygdrive/c/PX4/home/Firmware/build/px4_sitl_default/rootfs/etc/init.d-posix/px4-rc.simulator: line 39: [: : integer expression expected
INFO  [init] jMAVSim simulator
INFO  [simulator_mavlink] using TCP on remote host localhost port 4560
WARN  [simulator_mavlink] Please ensure port 4560 is not blocked by a firewall.
INFO  [simulator_mavlink] Resolved host 'localhost' to address: 127.0.0.1
INFO  [simulator_mavlink] Waiting for simulator to accept connection on TCP port 4560
Buildfile: C:\PX4\home\Firmware\Tools\simulation\jmavsim\jMAVSim\build.xml

make_dirs:

compile:

create_run_jar:

copy_res:

BUILD SUCCESSFUL
Total time: 0 seconds
Unrecognized option: --add-exports
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.