thinkingrock-gtd/tr-pc

Improve JDK detection in installer(s)

Opened this issue · 2 comments

(At least) Linux installer checks installed java. I've installed the default java on RHEL (currently 11). Installer allow install trgd and than complains in this way:


Warning - could not install some modules:  swingx 1.0 - The Java platform version 17 or higher was requested but only 11 is running.  activation - The Java platform version 17 or higher was requested but only 11 is running.  glazedlists-1.7.0 - The Java platform version 17 or higher was requested but only 11 is running.  jaxb - The Java platform version 17 or higher was requested but only 11 is running.  minimal-json - The Java platform version 17 or higher was requested but only 11 is running. TR Resource - The Java platform version 17 or higher was requested but only 11 is running.  javamail - The Java platform version 17 or higher was requested but only 11 is running.  xalan 2.7.1 - The Java platform version 17 or higher was requested but only 11 is running.  commons-email - The Java platform version 17 or higher was requested but only 11 is running.  miglayout 4.0 - The Java platform version 17 or higher was requested but only 11 is running. TR Runtime - The Java platform version 17 or higher was requested but only 11 is running.  commons-lang 2.6 - The Java platform version 17 or higher was requested but only 11 is running.  commons-logging 1.1.3 - The Java platform version 17 or higher was requested but only 11 is running.  fop 1.1 - The Java platform version 17 or higher was requested but only 11 is running.  ical4j 1.0.5 - The Java platform version 17 or higher was requested but only 11 is running.  jasper 5.1.0 - The Java platform version 17 or higher was requested but only 11 is running. TR Utilities - The Java platform version 17 or higher was requested but only 11 is running. TR Import - The Java platform version 17 or higher was requested but only 11 is running. TR Application - The Java platform version 17 or higher was requested but only 11 is running. TR Task Messages - The Java platform version 17 or higher was requested but only 11 is running. TR Prefs Recurrence - The Java platform version 17 or higher was requested but only 11 is running. TR Prefs Dates - The Java platform version 17 or higher was requested but only 11 is running. TR Swing - The Java platform version 17 or higher was requested but only 11 is running. TR Prefs Data - The Java platform version 17 or higher was requested but only 11 is running. TR Calendar - The Java platform version 17 or higher was requested but only 11 is running. TR Calendar iCal4j - The Java platform version 17 or higher was requested but only 11 is running. TR Prefs Actions - The Java platform version 17 or higher was requested but only 11 is running. TR Prefs UI - The Java platform version 17 or higher was requested but only 11 is running. TR Prefs Projects - The Java platform version 17 or higher was requested but only 11 is running. TR Model - The Java platform version 17 or higher was requested but only 11 is running. TR Export - The Java platform version 17 or higher was requested but only 11 is running. TR Datastore - The Java platform version 17 or higher was requested but only 11 is running. TR Reports - The Java platform version 17 or higher was requested but only 11 is running. TR Task Activation - The Java platform version 17 or higher was requested but only 11 is running. TR Task Recurrence - The Java platform version 17 or higher was requested but only 11 is running. TR Calendar Implementation - The Java platform version 17 or higher was requested but only 11 is running.  xstream-1.4.19 - The Java platform version 17 or higher was requested but only 11 is running. TR Datastore XStream - The Java platform version 17 or higher was requested but only 11 is running. TR Archive - The Java platform version 17 or higher was requested but only 11 is running. TR Data - The Java platform version 17 or higher was requested but only 11 is running. TR Services - The Java platform version 17 or higher was requested but only 11 is running. TR View - The Java platform version 17 or higher was requested but only 11 is running. TR View Delegates - The Java platform version 17 or higher was requested but only 11 is running. TR View Contexts - The Java platform version 17 or higher was requested but only 11 is running. TR View Topics - The Java platform version 17 or higher was requested but only 11 is running. TR View Filters - The Java platform version 17 or higher was requested but only 11 is running. TR View Someday Maybe - The Java platform version 17 or higher was requested but only 11 is running. TR Cal - The Java platform version 17 or higher was requested but only 11 is running. TR iPhone Sync - The Java platform version 17 or higher was requested but only 11 is running. TR View Criteria - The Java platform version 17 or higher was requested but only 11 is running. TR View Project - The Java platform version 17 or higher was requested but only 11 is running. TR View Goals - The Java platform version 17 or higher was requested but only 11 is running. TR Extract - The Java platform version 17 or higher was requested but only 11 is running. TR Report - Done - The Java platform version 17 or higher was requested but only 11 is running. TR Report - Project Detail - The Java platform version 17 or higher was requested but only 11 is running. TR Report - Single Actions - The Java platform version 17 or higher was requested but only 11 is running. TR Report - Reference - The Java platform version 17 or higher was requested but only 11 is running. TR Report - Actions Do ASAP - The Java platform version 17 or higher was requested but only 11 is running. TR Report - Future Projects - The Java platform version 17 or higher was requested but only 11 is running. TR Export Someday Maybe - The Java platform version 17 or higher was requested but only 11 is running. TR Export Actions - The Java platform version 17 or higher was requested but only 11 is running. TR Report - PocketMod - The Java platform version 17 or higher was requested but only 11 is running. TR Report - Weekly Review - The Java platform version 17 or higher was requested but only 11 is running. TR Reports PDF - Project Details - The Java platform version 17 or higher was requested but only 11 is running. TR Reports PDF - Project Outline - The Java platform version 17 or higher was requested but only 11 is running. TR Report - Actions Scheduled - The Java platform version 17 or higher was requested but only 11 is running. TR Report - Someday Maybe - The Java platform version 17 or higher was requested but only 11 is running. TR Export Data - The Java platform version 17 or higher was requested but only 11 is running. TR Report - Actions Delegated - The Java platform version 17 or higher was requested but only 11 is running. TR Data Recent Files - The Java platform version 17 or higher was requested but only 11 is running. TR Report - Project Outline - The Java platform version 17 or higher was requested but only 11 is running. TR Sync Device - The Java platform version 17 or higher was requested but only 11 is running. TR Email - The Java platform version 17 or higher was requested but only 11 is running. TR View Action - The Java platform version 17 or higher was requested but only 11 is running. TR View Projects - The Java platform version 17 or higher was requested but only 11 is running. TR View Process - The Java platform version 17 or higher was requested but only 11 is running. TR View Reference - The Java platform version 17 or higher was requested but only 11 is running. TR View Collect - The Java platform version 17 or higher was requested but only 11 is running. TR View Actions - The Java platform version 17 or higher was requested but only 11 is running. TR View Calendar - The Java platform version 17 or higher was requested but only 11 is running. TR Find - The Java platform version 17 or higher was requested but only 11 is running. TR Import Thoughts - The Java platform version 17 or higher was requested but only 11 is running. TR View Overview - The Java platform version 17 or higher was requested but only 11 is running. TR L10N - German (Germany) - The Java platform version 17 or higher was requested but only 11 is running. TR L10N - French (France) - The Java platform version 17 or higher was requested but only 11 is running. TR L10N - English (USA) - The Java platform version 17 or higher was requested but only 11 is running. TR L10N - Spanish (Spain) - The Java platform version 17 or higher was requested but only 11 is running. TR Export References - The Java platform version 17 or higher was requested but only 11 is running. 77 further modules could not be installed due to the above problems.

We should probably update detection in installers (probably all) to check supported version of java (currently 17+) to prevent users confusion.

I can confirm that launching TR from the Desktop Icon on Windows 10 fails for me with the pop-up stating: "Cannot run on older versions of Java than Java 17. Please install Java 17 or newer or use --jdkhome switch to point to its installation directory."

The desktop shortcut points to the installation directory bin/trgtd.exe (which obviously fails with the same message if launched directly).

However: If I launch bin/trgtd64.exe (or change the path in the link to that executable), everything works perfectly.

@RadekCap Does it behave the same way on your installation?

Windows 11
bin/trgtd64 is failing with the same error as bin/trgtd - "Cannot find java 1.8 or higher.

I had (and removed) this line in config:
jdkhome="C:\Program Files\RedHat\java-17-openjdk-17.0.11.0.9-1"
so hopefully something isn't cached.

With this line it works properly.