Giter Club home page Giter Club logo

Comments (27)

DaeunGod avatar DaeunGod commented on July 17, 2024 1

@julianoes Thanks. i will try it!


It works. Thank you so much for your help.

from jmavsim.

DaeunGod avatar DaeunGod commented on July 17, 2024

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.

julianoes avatar julianoes commented on July 17, 2024

It works with Java 8. Make sure to clean build by deleting the out folder, and otherwise post your error.

from jmavsim.

nicollorens12 avatar nicollorens12 commented on July 17, 2024

Hi!
I have the same problem, i'm using java 11. What's the out folder?
Thanks

from jmavsim.

julianoes avatar julianoes commented on July 17, 2024

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.

nicollorens12 avatar nicollorens12 commented on July 17, 2024

from jmavsim.

julianoes avatar julianoes commented on July 17, 2024

@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.

nicollorens12 avatar nicollorens12 commented on July 17, 2024

from jmavsim.

julianoes avatar julianoes commented on July 17, 2024

@nicollorens12 you need to follow the steps I posted above.

from jmavsim.

nicollorens12 avatar nicollorens12 commented on July 17, 2024

from jmavsim.

nicollorens12 avatar nicollorens12 commented on July 17, 2024

from jmavsim.

julianoes avatar julianoes commented on July 17, 2024

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.

nicollorens12 avatar nicollorens12 commented on July 17, 2024

from jmavsim.

julianoes avatar julianoes commented on July 17, 2024

Have you tried -version or --version?

from jmavsim.

nicollorens12 avatar nicollorens12 commented on July 17, 2024

from jmavsim.

julianoes avatar julianoes commented on July 17, 2024

Look through the output, something must have failed if you see that.

from jmavsim.

nicollorens12 avatar nicollorens12 commented on July 17, 2024

from jmavsim.

julianoes avatar julianoes commented on July 17, 2024

https://stackoverflow.com/questions/3222804/how-can-i-install-apache-ant-on-mac-os-x/20984975#20984975

brew install ant

from jmavsim.

nicollorens12 avatar nicollorens12 commented on July 17, 2024

from jmavsim.

julianoes avatar julianoes commented on July 17, 2024

@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.

nicollorens12 avatar nicollorens12 commented on July 17, 2024

from jmavsim.

julianoes avatar julianoes commented on July 17, 2024

I would need "all of the output" including make clean, the exports, etc.

from jmavsim.

nicollorens12 avatar nicollorens12 commented on July 17, 2024

from jmavsim.

julianoes avatar julianoes commented on July 17, 2024

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.

nicollorens12 avatar nicollorens12 commented on July 17, 2024

from jmavsim.

julianoes avatar julianoes commented on July 17, 2024

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.

julianoes avatar julianoes commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.