Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Apr 2026 10:13:21 +0000
From:      Nicola Vitale <nivit@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ac2e97593fe9 - main - deskutils/freeplane: Set JAVA_VERSION
Message-ID:  <69dcc1c1.26982.333009bc@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by nivit:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ac2e97593fe950bcbe5d1c80e076c1f0bb235a20

commit ac2e97593fe950bcbe5d1c80e076c1f0bb235a20
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2026-04-13 10:02:10 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2026-04-13 10:13:16 +0000

    deskutils/freeplane: Set JAVA_VERSION
    
    Freeplane fails to start with the current JAVA_DEFAULT (25) with
    the error message:
    
    ERROR:   Found /usr/local/bin/java in $PATH.
    ERROR:   It has version 25.0.2
    ERROR:   Currently, freeplane requires java version 8 or from 11 to 23
    ERROR:
    ERROR:   Select a supported java version
    ERROR:   by setting FREEPLANE_JAVA_HOME to a valid java location
    ERROR:   OR use an unsupported java version
    ERROR:   by setting FREEPLANE_USE_UNSUPPORTED_JAVA_VERSION to 1
    
    So set JAVA_VERSION to a list of supported JDK.
    
    Note that if you start freeplane with the environment variable
    FREEPLANE_USE_UNSUPPORTED_JAVA_VERSION=1, then the program fails with
    the error message:
    
    WARNING: package com.apple.eawt.event not in java.desktop
    WARNING: package com.apple.eawt not in java.desktop
    Error occurred during initialization of VM
    java.lang.Error: A command line option has attempted to allow or enable the Security Manager. Enabling a Security Manager is not supported.
            at java.lang.System.initPhase3(java.base@25.0.2/System.java:1969)
    
    - Bump PORTREVISION
---
 deskutils/freeplane/Makefile           | 5 ++++-
 deskutils/freeplane/files/freeplane.in | 2 ++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/deskutils/freeplane/Makefile b/deskutils/freeplane/Makefile
index 84f691c1d74a..793c08a6f85b 100644
--- a/deskutils/freeplane/Makefile
+++ b/deskutils/freeplane/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	freeplane
 DISTVERSION=	1.13.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	deskutils editors java
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}%20stable
 DISTNAME=	${PORTNAME}_bin-${PORTVERSION}
@@ -16,12 +16,15 @@ RUN_DEPENDS=	bash:shells/bash
 
 USES=		cpe desktop-file-utils java shebangfix zip
 
+JAVA_VERSION=	8 11 17 21 23
+
 SHEBANG_FILES=	${WRKSRC}/freeplane.sh
 
 NO_ARCH=	yes
 NO_BUILD=	yes
 SUB_FILES=	freeplane freeplane.desktop
 SUB_LIST=	DATADIR=${DATADIR} \
+		JAVA_HOME=${JAVA_HOME} \
 		PREFIX=${PREFIX}
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
diff --git a/deskutils/freeplane/files/freeplane.in b/deskutils/freeplane/files/freeplane.in
index 4b0ff3dad1ac..d60be1155a7c 100644
--- a/deskutils/freeplane/files/freeplane.in
+++ b/deskutils/freeplane/files/freeplane.in
@@ -6,4 +6,6 @@ if [ -n "$WAYLAND_DISPLAY" ]; then
     export _JAVA_AWT_WM_NONREPARENTING=1
 fi
 
+export FREEPLANE_JAVA_HOME=%%JAVA_HOME%%
+
 exec %%DATADIR%%/freeplane.sh "$@"


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69dcc1c1.26982.333009bc>