OpenRocket on Linux?

Discussion in 'Rocketry Electronics and Software' started by blackbrandt, Oct 4, 2017.

Help Support The Rocketry Forum by donating:

  1. Oct 4, 2017 #1

    blackbrandt

    blackbrandt

    blackbrandt

    That Darn College Student

    Joined:
    Mar 18, 2012
    Messages:
    9,123
    Likes Received:
    33
    Hello all,

    Still a bit new to the Linux field, so sorry for what probably is a stupid question. :)

    I downloaded OpenRocket, and according to the software manager, OpenRocket is installed. But I can't find it anywhere on my system.

    I'm on Linux Mint 18.1, Cinnamon desktop.

    Any ideas? Thanks!
     
    artapplewhite likes this.
  2. Oct 4, 2017 #2

    djkingsley

    djkingsley

    djkingsley

    Well-Known Member

    Joined:
    Feb 23, 2014
    Messages:
    368
    Likes Received:
    12
    find / -name openrocket*.* -print
     
    artapplewhite likes this.
  3. Oct 4, 2017 #3

    blackbrandt

    blackbrandt

    blackbrandt

    That Darn College Student

    Joined:
    Mar 18, 2012
    Messages:
    9,123
    Likes Received:
    33
    Code:
    /var/lib/dpkg/info/openrocket.md5sums
    /var/lib/dpkg/info/openrocket.prerm
    /var/lib/dpkg/info/openrocket.postinst
    /var/lib/dpkg/info/openrocket.postrm
    /var/lib/dpkg/info/openrocket.list
    /var/cache/apt/archives/openrocket_15.03_all.deb
    /media/matt/StorageDrive/Documents/Rocket Stuff/Openrocket Files/OpenRocket-15.03.jar
    /media/matt/StorageDrive/School 2016-2017 Spring/Comp Physics/Python Scripts/Final Project/openrocket_file.PNG
    /usr/share/app-install/desktop/openrocket:openrocket.desktop
    /usr/share/pixmaps/openrocket.xpm
    /usr/share/applications/openrocket.desktop
    find: ‘/run/user/1000/gvfs’: Permission denied
    /home/matt/Desktop/OpenRocket/net/sf/openrocket/preset/xml/OpenRocketComponentSaver$3.class
    /home/matt/Desktop/OpenRocket/net/sf/openrocket/preset/xml/OpenRocketComponentSaver$2.class
    /home/matt/Desktop/OpenRocket/net/sf/openrocket/preset/xml/OpenRocketComponentSaver$1.class
    /home/matt/Desktop/OpenRocket/net/sf/openrocket/preset/xml/OpenRocketComponentDTO.class
    /home/matt/Desktop/OpenRocket/net/sf/openrocket/preset/xml/OpenRocketComponentLoader.class
    /home/matt/Desktop/OpenRocket/net/sf/openrocket/preset/xml/OpenRocketComponentSaver.class
    /home/matt/Desktop/OpenRocket/net/sf/openrocket/document/OpenRocketDocumentFactory.class
    /home/matt/Desktop/OpenRocket/net/sf/openrocket/document/OpenRocketDocument.class
    /home/matt/Desktop/OpenRocket/net/sf/openrocket/gui/main/OpenRocketClipboard.class
    /home/matt/Desktop/OpenRocket/net/sf/openrocket/gui/print/OpenRocketPrintable.class
    /home/matt/Desktop/OpenRocket/net/sf/openrocket/startup/OpenRocket.class
    /home/matt/Desktop/OpenRocket/net/sf/openrocket/file/openrocket/OpenRocketSaver.class
    /home/matt/Desktop/OpenRocket/net/sf/openrocket/file/openrocket/importt/OpenRocketLoader.class
    /home/matt/Desktop/OpenRocket/net/sf/openrocket/file/openrocket/importt/OpenRocketHandler.class
    /home/matt/Desktop/OpenRocket/net/sf/openrocket/file/openrocket/importt/OpenRocketContentHandler.class
    /home/matt/Downloads/OpenRocket-15.03.jar
    /home/matt/.local/share/Trash/files/net/sf/openrocket/preset/xml/OpenRocketComponentSaver$3.class
    /home/matt/.local/share/Trash/files/net/sf/openrocket/preset/xml/OpenRocketComponentSaver$2.class
    /home/matt/.local/share/Trash/files/net/sf/openrocket/preset/xml/OpenRocketComponentSaver$1.class
    /home/matt/.local/share/Trash/files/net/sf/openrocket/preset/xml/OpenRocketComponentDTO.class
    /home/matt/.local/share/Trash/files/net/sf/openrocket/preset/xml/OpenRocketComponentLoader.class
    /home/matt/.local/share/Trash/files/net/sf/openrocket/preset/xml/OpenRocketComponentSaver.class
    /home/matt/.local/share/Trash/files/net/sf/openrocket/document/OpenRocketDocumentFactory.class
    /home/matt/.local/share/Trash/files/net/sf/openrocket/document/OpenRocketDocument.class
    /home/matt/.local/share/Trash/files/net/sf/openrocket/gui/main/OpenRocketClipboard.class
    /home/matt/.local/share/Trash/files/net/sf/openrocket/gui/print/OpenRocketPrintable.class
    /home/matt/.local/share/Trash/files/net/sf/openrocket/startup/OpenRocket.class
    /home/matt/.local/share/Trash/files/net/sf/openrocket/file/openrocket/OpenRocketSaver.class
    /home/matt/.local/share/Trash/files/net/sf/openrocket/file/openrocket/importt/OpenRocketLoader.class
    /home/matt/.local/share/Trash/files/net/sf/openrocket/file/openrocket/importt/OpenRocketHandler.class
    /home/matt/.local/share/Trash/files/net/sf/openrocket/file/openrocket/importt/OpenRocketContentHandler.class
    
    The .jar in my downloads folder just opens up the file extractor tool.
     
    artapplewhite likes this.
  4. Oct 4, 2017 #4

    LithosphereRocketry

    LithosphereRocketry

    LithosphereRocketry

    Pining for the Fjords

    Joined:
    Feb 19, 2017
    Messages:
    784
    Likes Received:
    9
    Have you gone into the properties and configured it to run as an executable? That's the one weird thing you need to do as far as I know.
     
    artapplewhite likes this.
  5. Oct 4, 2017 #5

    blackbrandt

    blackbrandt

    blackbrandt

    That Darn College Student

    Joined:
    Mar 18, 2012
    Messages:
    9,123
    Likes Received:
    33
    Got it!

    For future people searching, solution:

    1. Find file (mine was in ~/Downloads/)
    2. Open terminal at location of file.
    3. Run command sudo chmod +x filename
    4. Right click on OpenRocket in file manager, and run it with the Java RunTime environment.
    5. ?
    6. Profit $$
     
    artapplewhite likes this.
  6. Oct 4, 2017 #6

    dhbarr

    dhbarr

    dhbarr

    Amateur Professional TRF Supporter

    Joined:
    Jan 30, 2016
    Messages:
    5,422
    Likes Received:
    493
    I'll have to check when I'm at a workstation, but I think sudo apt-get install openrocket works on most Debian/Ubuntu flavors.
     
    artapplewhite likes this.
  7. Oct 4, 2017 #7

    blackbrandt

    blackbrandt

    blackbrandt

    That Darn College Student

    Joined:
    Mar 18, 2012
    Messages:
    9,123
    Likes Received:
    33
  8. Oct 4, 2017 #8

    dhbarr

    dhbarr

    dhbarr

    Amateur Professional TRF Supporter

    Joined:
    Jan 30, 2016
    Messages:
    5,422
    Likes Received:
    493
    To confirm: that was the install method you used, but the executable bit still required manual modification?
     
  9. Oct 5, 2017 #9

    UhClem

    UhClem

    UhClem

    Well-Known Member

    Joined:
    Feb 6, 2009
    Messages:
    1,431
    Likes Received:
    55
    I created the executable file "openrocket" in ~/bin (which is in my search path) which contains:
    Code:
    #! /bin/bash
    java -jar ~/bin/OpenRocket.jar
    
    To run, I just type "openrocket" in a terminal window.
     
    artapplewhite likes this.
  10. Oct 5, 2017 #10

    blackbrandt

    blackbrandt

    blackbrandt

    That Darn College Student

    Joined:
    Mar 18, 2012
    Messages:
    9,123
    Likes Received:
    33
    I actually can't remember how I installed it.
     
    artapplewhite likes this.
  11. Oct 6, 2017 #11

    CORZERO

    CORZERO

    CORZERO

    Well-Known Member

    Joined:
    Feb 5, 2015
    Messages:
    710
    Likes Received:
    1
    That's because you didn't. .jar files aren't installed, they are opened and run with Java.
     
  12. Aug 25, 2019 #12

    John Kemker

    John Kemker

    John Kemker

    Member

    Joined:
    Aug 25, 2019
    Messages:
    7
    Likes Received:
    2
    Gender:
    Male
    Seems like this thread is over two years old, but I've just run into problems trying to install on Linux Mint 19.1 with Cinnamon 64-bit.

    Attempts to install using apt-get fail with a wget error. Manually downloading the .jar file and running with java -jar OpenRocket-15.03.jar show the splash logo, but then die with an "illegal reflective access operation has occurred" error in the xterm window and a bug report with the info in the attached file, openrocket-err.txt and the command line error report is as follows:

    $ java -jar /usr/lib/openrocket/OpenRocket-15.03.jar
    WARNING: An illegal reflective access operation has occurred
    WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/usr/lib/openrocket/OpenRocket-15.03.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
    WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$2
    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
     

    Attached Files:

    artapplewhite likes this.
  13. Aug 25, 2019 #13

    UhClem

    UhClem

    UhClem

    Well-Known Member

    Joined:
    Feb 6, 2009
    Messages:
    1,431
    Likes Received:
    55
    Works fine for me. Fedora 30 and:

    java -version
    openjdk version "1.8.0_222"
    OpenJDK Runtime Environment (build 1.8.0_222-b10)
    OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

    No errors or warnings.
     
    artapplewhite likes this.
  14. Aug 26, 2019 #14

    John Kemker

    John Kemker

    John Kemker

    Member

    Joined:
    Aug 25, 2019
    Messages:
    7
    Likes Received:
    2
    Gender:
    Male
    Interesting. Evidently, I have a *much* later version than you do.

    $ java -version
    openjdk version "11.0.4" 2019-07-16
    OpenJDK Runtime Environment (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3)
    OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Ubuntu-1ubuntu218.04.3, mixed mode, sharing)


    When I try to install via apt-get:

    $ sudo apt-get install openrocket
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
    libwine-development linux-headers-4.15.0-54 linux-headers-4.15.0-54-generic
    linux-image-4.15.0-54-generic linux-modules-4.15.0-54-generic
    linux-modules-extra-4.15.0-54-generic wine64-development
    Use 'sudo apt autoremove' to remove them.
    The following NEW packages will be installed:
    openrocket
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/8,884 B of archives.
    After this operation, 98.3 kB of additional disk space will be used.
    Selecting previously unselected package openrocket.
    (Reading database ... 555873 files and directories currently installed.)
    Preparing to unpack .../openrocket_15.03_all.deb ...
    Unpacking openrocket (15.03) ...
    Setting up openrocket (15.03) ...
    options : --install --fast --verbose --
    temporary directory: /tmp/openrocket.efuEAn5xAg
    selected action = --install
    installed version =
    upstream version = release-15.03
    wgetoptions= -nd -P . -v --progress=dot:default -t 3 -T 15
    downloading navbar_download_button
    https://github.com/openrocket/openrocket/releases/download/release-15.03/OpenRocket-15.03.jar...
    --2019-08-25 20:45:40-- http://navbar_download_button/
    Resolving navbar_download_button (navbar_download_button)... failed: Name or service not known.
    wget: unable to resolve host address ‘navbar_download_button’
    --2019-08-25 20:45:40-- https://github.com/openrocket/openrocket/releases/download/release-15.03/OpenRocket-15.03.jar
    Resolving github.com (github.com)... 140.82.114.4
    Connecting to github.com (github.com)|140.82.114.4|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://github-production-release-a...esponse-content-type=application/octet-stream [following]
    --2019-08-25 20:45:41-- https://github-production-release-a...esponse-content-type=application/octet-stream
    Resolving github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)... 52.216.93.59
    Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (github-production-release-asset-2e65be.s3.amazonaws.com)|52.216.93.59|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 22211882 (21M) [application/octet-stream]
    Saving to: ‘./OpenRocket-15.03.jar’

    0K .......... .......... .......... .......... .......... 0% 1.99M 11s
    <snip>
    21650K .......... .......... .......... .......... . 100% 27.6M=1.1s

    2019-08-25 20:45:42 (19.4 MB/s) - ‘./OpenRocket-15.03.jar’ saved [22211882/22211882]

    FINISHED --2019-08-25 20:45:42--
    Total wall clock time: 1.8s
    Downloaded: 1 files, 21M in 1.1s (19.4 MB/s)
    cleaning up temporary directory /tmp/openrocket.efuEAn5xAg ...
    ERROR: wget failed to download
    Processing triggers for desktop-file-utils (0.23+linuxmint5) ...
    Processing triggers for menu (2.1.47ubuntu2.1) ...
    Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
    Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
    Processing triggers for mime-support (3.60ubuntu1) ...
     
  15. Aug 26, 2019 #15

    mikec

    mikec

    mikec

    Well-Known Member

    Joined:
    May 9, 2009
    Messages:
    2,007
    Likes Received:
    85
    I'm on Ubuntu 16.04 and Java 1.8 and OR works fine. From the error messages it seems like something in later versions of OpenJDK broke it. I didn't even know there was a version later than 1.8 (also known as just 8 and now they're up to 11.) I'd try to install an older version of Java if possible. Maybe sudo apt install openjdk-8-jdk will work.
     
  16. Aug 26, 2019 #16

    mikec

    mikec

    mikec

    Well-Known Member

    Joined:
    May 9, 2009
    Messages:
    2,007
    Likes Received:
    85
    So it seems like in Ubuntu 18.04 and later the apt-get for Openrocket is broken, and OR is broken itself with JDK 11. Over on my test machine, I downloaded the OpenRocket jar file and did an sudo apt-get purge openjdk-\* to get rid of OpenJDK 11, then did an sudo apt-get install openjdk-8-jdk and finally a java -jar OpenRocket-15.03.jar and it seems to be working.

    You'd think with all the effort to make Java "portable" things like this wouldn't happen. Sigh.
     
  17. Aug 26, 2019 #17

    John Kemker

    John Kemker

    John Kemker

    Member

    Joined:
    Aug 25, 2019
    Messages:
    7
    Likes Received:
    2
    Gender:
    Male
    Hmmm...

    So, hunting around with a thoughtfully crafted "find" command reveals /usr/lib/jvm/java-8-openjdk-amd64/bin/java. So, using the command line:

    $ /usr/lib/jvm/java-8-openjdk-amd64/bin/java -jar /usr/lib/openrocket/OpenRocket-15.03.jar

    Eureka! I found my workaround!

    Now, if the OpenRocket devs will just update to Java 11 compatibility...[grin]
     
  18. Aug 26, 2019 #18

    mikec

    mikec

    mikec

    Well-Known Member

    Joined:
    May 9, 2009
    Messages:
    2,007
    Likes Received:
    85
    The source code is all out there, maybe all it would take is a recompile. I have no idea what the difference between Java 8 and Java 11 even is, you'd think they would have backward compatibility but that sort of thing seems to have gone out the window (says this old, cranky software engineer who cut his teeth on a PDP-11.)
     
  19. Aug 26, 2019 #19

    John Kemker

    John Kemker

    John Kemker

    Member

    Joined:
    Aug 25, 2019
    Messages:
    7
    Likes Received:
    2
    Gender:
    Male
    It's a thought. I'll have to get the source tree downloaded.
     
  20. Aug 26, 2019 #20

    opcon

    opcon

    opcon

    Active Member

    Joined:
    May 30, 2019
    Messages:
    31
    Likes Received:
    5
    Gender:
    Male
    Location:
    SW Michigan
    There were syntactical changes between v8 and v11. Some of the code would have to be updated or re-written. I love OR but I hate Java and I hate the JVM.
     
  21. Aug 26, 2019 #21

    mikec

    mikec

    mikec

    Well-Known Member

    Joined:
    May 9, 2009
    Messages:
    2,007
    Likes Received:
    85
    If anyone does this, it would be nice if it was done in such a way that every existing Java 8 and below install doesn't have to be updated to 11. There's something called a "multi-release jar" that could be used.

    I've done a little looking into this and all it's done is reinforce my desire to stay the heck away from Java. BTW, those warning messages about illegal reflexive access are supposed to just encourage you to make your code use approved APIs, they are still supposed to work; I'm not sure what's actually going on.
     
  22. Aug 26, 2019 #22

    gna

    gna

    gna

    average joe-overbuild member

    Joined:
    Sep 10, 2014
    Messages:
    266
    Likes Received:
    3
    The apt-get version of OR downloads just fine, but it won't run. I had to download a version and save it on the desktop and I can run that.
     
  23. Aug 26, 2019 #23

    mikec

    mikec

    mikec

    Well-Known Member

    Joined:
    May 9, 2009
    Messages:
    2,007
    Likes Received:
    85
  24. Aug 27, 2019 #24

    plugger

    plugger

    plugger

    Well-Known Member

    Joined:
    May 1, 2009
    Messages:
    389
    Likes Received:
    94

Share This Page