Closed julianoes closed 4 years ago
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.
It works with Java 8. Make sure to clean build by deleting the out
folder, and otherwise post your error.
@julianoes Thanks. i will try it!
It works. Thank you so much for your help.
Hi! I have the same problem, i'm using java 11. What's the out folder? Thanks
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
Hi! Thanks for the response,
Now i'm getting this error: Exception in thread 'main' java.lang.reflect.InvocationTargetException followed by many other lines of errors...
El dom., 2 dic. 2018 19:39, Julian Oes notifications@github.com escribió:
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
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PX4/jMAVSim/issues/81#issuecomment-443531444, or mute the thread https://github.com/notifications/unsubscribe-auth/Arba0YEP6zhzNKOD066JZAVFqY_1h0hPks5u1B5lgaJpZM4WnKTX .
@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.
I'm getting this error with java 11 but also with java 8. I haven't tried any export comand. In the instalation guide doesn't say you have to do any export comand.
El lun., 3 dic. 2018 8:58, Julian Oes notifications@github.com escribió:
@nicollorens12 https://github.com/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.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PX4/jMAVSim/issues/81#issuecomment-443620462, or mute the thread https://github.com/notifications/unsubscribe-auth/Arba0WMcjftQcYL0WGMAoTIHiBSnafvNks5u1Nm3gaJpZM4WnKTX .
@nicollorens12 you need to follow the steps I posted above.
Oh sorry, I'll try later when I get home. Thank you so much. I'll tell you the result I get.
El lun., 3 dic. 2018 9:22, Julian Oes notifications@github.com escribió:
@nicollorens12 https://github.com/nicollorens12 you need to follow the steps I posted above.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PX4/jMAVSim/issues/81#issuecomment-443626061, or mute the thread https://github.com/notifications/unsubscribe-auth/Arba0Yg_-w2pFb2ruwJO1ZM1G-Hzw33qks5u1N9MgaJpZM4WnKTX .
Hi again,
I'm trying the export comand but I get this error. bash: /usr/libexec/java_home: No such file or directory
El lun., 3 dic. 2018 10:16, hjfktjr nickskate23@gmail.com escribió:
Oh sorry, I'll try later when I get home. Thank you so much. I'll tell you the result I get.
El lun., 3 dic. 2018 9:22, Julian Oes notifications@github.com escribió:
@nicollorens12 https://github.com/nicollorens12 you need to follow the steps I posted above.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PX4/jMAVSim/issues/81#issuecomment-443626061, or mute the thread https://github.com/notifications/unsubscribe-auth/Arba0Yg_-w2pFb2ruwJO1ZM1G-Hzw33qks5u1N9MgaJpZM4WnKTX .
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.
Hi,
I've modified the export comand to the path lf my java, now i'm getting this back.
Unrecognized option: -v Error: Could not create the Java Virtual Machine Error: A fatal exception occurred. Program will exit.
I do java 8 install because when I java -version I get openjdk version 1.8.0_191 and everything.
Have you tried -version
or --version
?
I've tried again the comand make posix jmavsim and now I get something to work!! It says Waiting for initial data on UDP port 14560. Please start the flight simulator to proceed!
But shouldn't I get the jmavsim program opened already?
El dom., 2 dic. 2018 19:39, Julian Oes notifications@github.com escribió:
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
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PX4/jMAVSim/issues/81#issuecomment-443531444, or mute the thread https://github.com/notifications/unsubscribe-auth/Arba0YEP6zhzNKOD066JZAVFqY_1h0hPks5u1B5lgaJpZM4WnKTX .
Look through the output, something must have failed if you see that.
Yes I see. After saying px4 started it says: /home/nico/Firmware/Tools/jmavsim_run.sh: line 58: ant: comand not found
El lun., 3 dic. 2018 18:20, Julian Oes notifications@github.com escribió:
Look through the output, something must have failed if you see that.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PX4/jMAVSim/issues/81#issuecomment-443792427, or mute the thread https://github.com/notifications/unsubscribe-auth/Arba0R5EVNUses0zFWKO4TGAxLevYJ_lks5u1V14gaJpZM4WnKTX .
I'm getting now the same. The build is succesful but when it starts the GUI it says in thread "main" java.lang.reflect.InvocationTargetException
I do have java 8
El lun., 3 dic. 2018 19:18, Julian Oes notifications@github.com escribió:
brew install ant
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PX4/jMAVSim/issues/81#issuecomment-443812429, or mute the thread https://github.com/notifications/unsubscribe-auth/Arba0Syi1sYfQCvaUDnTiAFj4viHRsh_ks5u1WrpgaJpZM4WnKTX .
@nicollorens12 can you please do make clean
and then build it and copy all of the output to pastebin and link it here?
Sorry for the late respond
Pastebin: pastebin.com/W4jW5ptt
El mar., 4 dic. 2018 8:40, Julian Oes notifications@github.com escribió:
@nicollorens12 https://github.com/nicollorens12 can you please do make clean and then build it and copy all of the output to pastebin and link it here?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PX4/jMAVSim/issues/81#issuecomment-444001618, or mute the thread https://github.com/notifications/unsubscribe-auth/Arba0fTi9WviRRJk0KDsc1DYCMBq8Uotks5u1ib-gaJpZM4WnKTX .
I would need "all of the output" including make clean
, the exports, etc.
Here you have it: pastebin.com/CSVSvLCy
El vie., 7 dic. 2018 17:02, Julian Oes notifications@github.com escribió:
I would need "all of the output" including make clean, the exports, etc.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PX4/jMAVSim/issues/81#issuecomment-445278259, or mute the thread https://github.com/notifications/unsubscribe-auth/Arba0Qqg1_NpTa9oUneTcOqKnaJigWk5ks5u2pElgaJpZM4WnKTX .
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.
I'm reinstalling ubuntu because I think I'm messing up the enviroment paths. I'll install a clean java 8 version and try to build the program. Thanks
El sáb., 8 dic. 2018 7:22, Julian Oes notifications@github.com escribió:
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.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/PX4/jMAVSim/issues/81#issuecomment-445435363, or mute the thread https://github.com/notifications/unsubscribe-auth/Arba0a1pqzrb6Qj2F8M0vUUHCv-_luxEks5u21qNgaJpZM4WnKTX .
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.
This one has been resolved, see: https://dev.px4.io/master/en/simulation/jmavsim.html#an-illegal-reflective-access-operation-has-occured
On macOS with Java 9 we get the follow segfault:
Looks the same as this: https://bugs.openjdk.java.net/browse/JDK-8197910
More workarounds and tries that didn't work for me: http://forum.jogamp.org/Jogl-Jogamp-on-Java-9-tt4038012.html