JAVA 11.0 install and download other maps

Ted Jackson's Avatar

Ted Jackson

18 Jan, 2019 10:16 PM

New installation of SARTopo offline and used JDK 11.0 (most current as of Jan 2019). When trying to run the .BATch file (SARTopo-Offline-Java-9-10.bat), whether from Win 10 or good-old MS-DOS, JAVA doesn't seem to exist. Log file below.

Secondarily, since the offline maps are primarily in western U.S. areas, are there ways to download tiles from other sources to get SARTopo to work elsewhere in the country?

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Users\tvjac> cd documents\SAR\SARTopo
PS C:\Users\tvjac\documents\SAR\SARTopo> dir

    Directory: C:\Users\tvjac\documents\SAR\SARTopo

Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 01/16/2019 11:05 data
d----- 01/16/2019 11:05 mac - read instructions
-a---- 01/16/2019 11:04 146 license.txt
-a---- 01/16/2019 11:05 38620912 sar.jar
-a---- 01/16/2019 11:05 122 sar.properties
-a---- 01/16/2019 11:04 135 SARTopo-Offline-Java-9-10.bat
-a---- 01/16/2019 11:04 111 SARTopo-Offline.bat

PS C:\Users\tvjac\documents\SAR\SARTopo> SARTopo-Offline-Java-9-10.bat
SARTopo-Offline-Java-9-10.bat : The term 'SARTopo-Offline-Java-9-10.bat' is not recognized as the name of a cmdlet,
function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:1
+ SARTopo-Offline-Java-9-10.bat
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (SARTopo-Offline-Java-9-10.bat:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Suggestion [3,General]: The command SARTopo-Offline-Java-9-10.bat was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If you trust this command, instead type: ".\SARTopo-Offline-Java-9-10.bat". See "get-help about_Command_Precedence" for more details.
PS C:\Users\tvjac\documents\SAR\SARTopo> SARTopo-Offline-Java-9-10
SARTopo-Offline-Java-9-10 : The term 'SARTopo-Offline-Java-9-10' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
+ SARTopo-Offline-Java-9-10
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (SARTopo-Offline-Java-9-10:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Suggestion [3,General]: The command SARTopo-Offline-Java-9-10 was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If you trust this command, instead type: ".\SARTopo-Offline-Java-9-10". See "get-help about_Command_Precedence" for more details.
PS C:\Users\tvjac\documents\SAR\SARTopo> .\SARTopo-Offline-Java-9-10.bat

C:\Users\tvjac\documents\SAR\SARTopo>java --add-modules java.se.ee -Dsarsoft.properties=sar.properties -Dsarsoft.version="SARTopo Offline" -Xmx1024m -jar sar.jar --debug=1
'java' is not recognized as an internal or external command,
operable program or batch file.
PS C:\Users\tvjac\documents\SAR\SARTopo>

  1. Support Staff 1 Posted by matt on 19 Jan, 2019 10:21 PM

    matt's Avatar

    With Java 11 you should use the standard launcher, the SARTopo-Offline-Java-9-10.bat file only applies to 10/11.

    I'm not familiar enough with powershell to comment, but the program should run fine from a standard CMD window, or by double-clicking on it. Can you try doing that instead of using PowerShell?

  2. Support Staff 2 Posted by matt on 19 Jan, 2019 10:22 PM

    matt's Avatar

    To answer the second question, offline layer downloads should be available for the entire lower 48, but the downloader is built into SARTopo Offline, get that working first. The "downloads" tab on sartopo.com is for BirdsEye-format GPS maps, not SARTopo Offline.

  3. 3 Posted by Ted Jackson on 20 Jan, 2019 02:01 AM

    Ted Jackson's Avatar

    Matt:

    Turns out that the JAVA Development Kit 11.0.2 does *not* modify the PATH
    system variable to indicate where the command "java" should be found and
    executed. So, one of the things that Oracle suggests is to manually edit
    the user system variable path to include the pathname "C:\Program
    Files\java\bin" to allow the O/S to "find" the external command JAVA. So
    after editing the path variable, and manually running the batch script from
    MS-DOS command prompt, I now get an error message from JDK indicating that:
    Error occurred during initialization of boot layer
    java.lang.module.FindException: Module java.se.ee not found

    Full dialog of error is listed below:
    Microsoft Windows [Version 10.0.17134.523]
    (c) 2018 Microsoft Corporation. All rights reserved.

    C:\Users\tvjac>cd documents\sar\sartopo

    C:\Users\tvjac\Documents\SAR\sartopo>path
    PATH=C:\Program Files (x86)\Intel\Intel(R) Management Engine
    Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine
    Components\iCLS\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program
    Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program
    Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files
    (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program
    Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files
    (x86)\AOMEI Backupper;C:\Users\tvjac\AppData\Local\Microsoft\WindowsApps;*c:\Program
    Files\Java\bin;*

    C:\Users\tvjac\Documents\SAR\sartopo>dir
     Volume in drive C is OS
     Volume Serial Number is 362A-3102

     Directory of C:\Users\tvjac\Documents\SAR\sartopo

    01/19/2019 20:31 <DIR> .
    01/19/2019 20:31 <DIR> ..
    01/16/2019 11:05 <DIR> data
    01/16/2019 10:44 589,727 Installing and Running the SARTopo
    Offline App - Windows _ CalTopo Offline _ Knowledge Base - CalTopo
    Support.pdf
    01/16/2019 11:04 146 license.txt
    01/16/2019 11:05 <DIR> mac - read instructions
    01/16/2019 11:05 38,620,912 sar.jar
    01/16/2019 11:05 122 sar.properties
    01/16/2019 11:04 135 SARTopo-Offline-Java-9-10.bat
    01/16/2019 11:04 111 SARTopo-Offline.bat
    01/19/2019 20:30 135 SARTopoJava11.bat
    01/19/2019 20:37 1,715 Startup_SARTopo_ErrorLog.txt
                   8 File(s) 39,213,003 bytes
                   4 Dir(s) 601,493,020,672 bytes free

    C:\Users\tvjac\Documents\SAR\sartopo>type sartopojava11.bat
    java --add-modules java.se.ee -Dsarsoft.properties=sar.properties
    -Dsarsoft.version="SARTopo Offline" -Xmx1024m -jar sar.jar --debug=1

    C:\Users\tvjac\Documents\SAR\sartopo>sartopojava11.bat

    C:\Users\tvjac\Documents\SAR\sartopo>java --add-modules java.se.ee
    -Dsarsoft.properties=sar.properties -Dsarsoft.version="SARTopo Offline"
    -Xmx1024m -jar sar.jar --debug=1
    Error occurred during initialization of boot layer
    java.lang.module.FindException: Module java.se.ee not found

    C:\Users\tvjac\Documents\SAR\sartopo>
    C:\Users\tvjac\Documents\SAR\sartopo>exit

    Taking me back to the 1980s (MS-DOS - MicroSoft - Definitely Old School)...
    Ted Jackson, Black Diamond SAR

  4. 4 Posted by Ted Jackson on 20 Jan, 2019 02:21 AM

    Ted Jackson's Avatar

    Matt:

    An addendum:

    Turns out that the older Java batch program works (SARTopo-Offline.bat) for
    JDK 11.0.2. Doesn't have the call to add-module java.se.ee .

    Should update the user instructions about adding the path to the JDK
    executable and go back to using SARTopo-Offline.bat .

    Ted Jackson, Black Diamond SAR

  5. Support Staff 5 Posted by matt on 20 Jan, 2019 04:31 AM

    matt's Avatar

    I mentioned that in my original message - unfortunately the alternate start script is needed for 9 and 10, but not for 8 or 11, and people have a variety of JVM versions installed, so both options need to be included.

    Noted about the path, that's somewhat annoying.

  6. System closed this discussion on 02 Oct, 2019 04:24 PM.

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

Keyboard shortcuts

Generic

? 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