Linux support

erichahn's Avatar


23 Aug, 2020 04:49 PM

Ubuntu 18.04.5
java-11-openjdk OR

What version of java is supported for the sar.jar offline desktop application?

I've tried with the open jdk v 11 and the official oracle version 14. Both give me the following 500 error when navigating to the local url.

It seems like has been removed since java 11 and deprecated in java 10.
Search for in this release note

No errors or warnings are present in the terminal when launching with the correct java args and remappings.


  1. Support Staff 1 Posted by Ben Lantow on 23 Aug, 2020 05:05 PM

    Ben Lantow's Avatar

    So on Mac OS I'm running OpenJDK 11 and have no issue. We have a lot of users running 14 on Mac/PC no issue. Looking more at that error, its showing a file not found in the temp directory we're unpacking a few dependent files. It's conceivable that there's a permissions issue on your machine that isn't allowing the Java machine access to that folder for some reason. At startup when you run the sar.jar file there should be an output of the directory the java temp files are unpacked to. First step is probably check permissions through that file structure to ensure that isn't where the problem lies.

    If that doesn't fix it I'll ping a developer tomorrow and we can do a little more trouble shooting.

    Sorry it's so poorly documented on *nix, its a pretty small user base but we should do a better job getting some documentation together in the future.


  2. 2 Posted by erichahn on 23 Aug, 2020 05:31 PM

    erichahn's Avatar

    everyone can access the tmp/winstoneembeddedwar folder
    the files do exist when I navigate to them.
    I manually set full permissions on all files in the directoy and no change.

  3. Support Staff 3 Posted by Ben Lantow on 23 Aug, 2020 07:41 PM

    Ben Lantow's Avatar

    Ok. I've assigned this to a member of our development team to see if they can give some thoughts on that stacktrace and what may be going on.

    Can you confirm which version of the software you have?


  4. 4 Posted by erichahn on 23 Aug, 2020 07:43 PM

    erichahn's Avatar

    I just downloaded it off the sartopo site today.
    Both the initial setup .jar and the other .jar below it.

  5. Support Staff 5 Posted by mcosand on 24 Aug, 2020 04:10 AM

    mcosand's Avatar

    Hi Eric,
    Can you tell me a little bit more about how you're trying to run SARTopo? I'm not able to reproduce the error you're posting. Here's my environment:

    mcosand@my-machine:/mnt/sartopo$ lsb_release -a

    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 18.04.3 LTS
    Release: 18.04
    Codename: bionic
    mcosand@my-machine:/mnt/sartopo$ java -version

    openjdk version "11.0.8" 2020-07-14
    OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1)
    OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu118.04.1, mixed mode, sharing)
    mcosand@my-machine:/mnt/sartopo$ java -Dsarsoft.version="SARTopo Offline" -Xmx1024m -jar sar.jar --deb ug=1
    Welcome to SARTopo Offline version 4160, 04/28/20 02:33:06
    License Key 00000-XXXXXX expires on 10/07/2021
    Temp data unpacked to /tmp/winstoneEmbeddedWAR

    Server Addresses:
    http://localhost:8080/ http://my-machine:8080/

    mcosand@my-machine:/mnt/sartopo$ sha1sum sar.jar

    b060d243505fd374827b9e254a0e1a3dd357eab8 sar.jar

  6. 6 Posted by erichahn on 24 Aug, 2020 02:29 PM

    erichahn's Avatar

    I think this ticket can be closed - restarting once during
    initial debugging did not seem to initially fix the issue. I cannot think
    of any reason why it would not have.

    [~]$ uname -a
    Linux hahn-t480 5.4.0-42-generic #46~18.04.1-Ubuntu SMP Fri Jul 10 07:21:24
    UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
    [~]$ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 18.04.5 LTS
    Release: 18.04
    Codename: bionic
    [~]$ java --version
    java 14.0.2 2020-07-14
    Java(TM) SE Runtime Environment (build 14.0.2+12-46)
    Java HotSpot(TM) 64-Bit Server VM (build 14.0.2+12-46, mixed mode, sharing)

    *seems restarting twice fixed the issue... no other changes made.....*

    I did get this warning:
    [~/Downloads/sartopo-offline/sartopo]$ java -Dsarsoft.version="SARTopo Offline"
    -Xmx8g -jar sar.jar --debug=1
    Welcome to SARTopo Offline version 4160, 04/28/20 02:33:06
    License Key expires on 01/29/2021
    Temp data unpacked to /tmp/winstoneEmbeddedWAR

    Server Addresses:
    WARNING: An illegal reflective access operation has occurred
    WARNING: Illegal reflective access by
    (file:/tmp/winstoneEmbeddedWAR/WEB-INF/lib/ehcache-core-2.6.6.jar) to field
    WARNING: Please consider reporting this to the maintainers of
    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

  7. Support Staff 7 Posted by mcosand on 24 Aug, 2020 05:18 PM

    mcosand's Avatar

    Okay, I'll close the issue. The stack trace you posted was a little surprising - we'd definitely like to know if you see anything like it again. Glad things cleared up for you.

    Matt Cosand
    Software Developer
    CalTopo LLC

  8. mcosand closed this discussion on 24 Aug, 2020 05:18 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac