Comments (27)
@julianoes Thanks. i will try it!
It works. Thank you so much for your help.
from jmavsim.
Hi julianoes, Did you solve this problem? because i have a same problem too.
i tried to run jmavsim_run.jar with java7 and java8 but it showed the different errors.
So, if you have any advice then please notice me.
thanks.
from jmavsim.
It works with Java 8. Make sure to clean build by deleting the out
folder, and otherwise post your error.
from jmavsim.
Hi!
I have the same problem, i'm using java 11. What's the out folder?
Thanks
from jmavsim.
The steps for the Java 8 workaround are:
cd wherever/Firmware
rm -rf Tools/jMAVSim/out
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
make posix jmavsim
Also, see: http://discuss.px4.io/t/problem-running-jmavsim-on-macos-high-sierra/5357/20
from jmavsim.
from jmavsim.
@nicollorens12 could it be that you ran the simulation in a new shell window after doing the steps I mentioned above? The export
command is only valid for the current shell, and it could be that you're seeing these errors because it is using Java 11 to run the Java 8 compiled code.
from jmavsim.
from jmavsim.
@nicollorens12 you need to follow the steps I posted above.
from jmavsim.
from jmavsim.
from jmavsim.
I'm trying the export comand but I get this error. bash: /usr/libexec/java_home: No such file or directory
Ok, this probably means that you don't have Java 8 installed. I'd try to install Java 8.
from jmavsim.
from jmavsim.
Have you tried -version
or --version
?
from jmavsim.
from jmavsim.
Look through the output, something must have failed if you see that.
from jmavsim.
from jmavsim.
brew install ant
from jmavsim.
from jmavsim.
@nicollorens12 can you please do make clean
and then build it and copy all of the output to pastebin and link it here?
from jmavsim.
from jmavsim.
I would need "all of the output" including make clean
, the exports, etc.
from jmavsim.
from jmavsim.
Ok, so the export command didn't work, so of course jMAVSim won't work properly later.
export JAVA_Home=$(/usr/libexec/java_home -v 1.8)
bash: /usr/libexec/java_home: No such file or directory
I would try to install Oracle Java SE Development Kit 8:
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
And on the side, why are you doing these things as root? That seems dangerous.
from jmavsim.
from jmavsim.
Oh, and I was assuming and trying to help with macOS!
This issue is about macOS not Ubuntu. For Ubuntu I suggest you create a new issue, that way it gets clearer.
from jmavsim.
This one has been resolved, see: https://dev.px4.io/master/en/simulation/jmavsim.html#an-illegal-reflective-access-operation-has-occured
from jmavsim.
Related Issues (20)
- Port busy when run JmavSim in HITL Mode In cygwin HOT 4
- windCurrent & windDeviation
- px4_task_spawn_cmd: failed to set sched policy HOT 3
- Communication unexpectedly lost in both the terminal and while using QGroundControl
- make px4_sitl jmavsim misbehaving. (OSX)
- Not able to change location
- New PX4 firmware + jMAVSim fails to build on Windows 10 HOT 4
- java.lang.IllegalAccessException when running/building on Ubuntu 20.04 HOT 5
- Proposal: Replacing ExecutorService to achieve more stable timing in the update loop HOT 3
- JMAVSim Failing To Start: java.lang.reflect.InvocationTargetException
- How do I change the environment background in jmavsim? HOT 1
- I had a problem when I was doing multi-machine emulation, and when I opened an instance, I kept getting stuck here
- Unable to launch JMAVSim in Windows - Could not create the Java Virtual Machine
- Can't get jMAVSim to work HOT 8
- "getting required buffer size failed" on jmavsim simulation on Windows 10
- "Can't load library: /home/pi/src/Firmware/Tools/jMAVSim/out/production/libgluegen-rt.so" HOT 17
- Problem with OpenGL version. JMAVSim (from Windows Cygwin Toolchain) on Windows 10
- Yuneec 520: HITL simulator keep crashing into land after takeoff HOT 8
- jMAVsim fails with Java 11 HOT 9
- Forward traffic to UDP port 14540 in HITL mode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jmavsim.