Package Details: freemind 1.0.1-5

Git Clone URL: https://aur.archlinux.org/freemind.git (read-only, click to copy)
Package Base: freemind
Description: A Java mindmapping tool
Upstream URL: https://sourceforge.net/projects/freemind
Licenses: GPL
Submitter: Dragonlord
Maintainer: Andrei_Korshikov
Last Packager: Dragonlord
Votes: 5
Popularity: 0.000042
First Submitted: 2022-02-05 17:25 (UTC)
Last Updated: 2022-02-05 17:25 (UTC)

Dependencies (4)

Required by (1)

Sources (2)

Pinned Comments

Andrei_Korshikov commented on 2022-12-07 15:06 (UTC) (edited on 2024-04-07 21:11 (UTC) by Andrei_Korshikov)

Christian Foltin (the author of software) adapted code to compile and run with java17, but for version 1.1.0 only. Stable version (1.0.1) perfectly runs with jre11-openjdk. Java SE 11 is LTS release, so I believe it's OK. To run freemind with non-default java version one can use simple command: env JAVA_HOME=/usr/lib/jvm/java-11-openjdk freemind

Latest Comments

Andrei_Korshikov commented on 2024-04-07 21:07 (UTC)

@dreieck Thank you for your suggestions. I will create -bin package with suggested changes and request merging.

@sinbud2004 I still think that env JAVA_HOME=... freemind is better approach. No need to sudo, no system-wide changes (other programs are unaffected).

@butla The same problem and the same solution. Use java-11, not java-17. I think, I will change the package to use Java 11 explicitly.

dreieck commented on 2024-03-07 14:12 (UTC) (edited on 2024-03-07 14:19 (UTC) by dreieck)

This package should be renamed to freemind-bin since you do not build from Java sources.

With renaming, also provides=("freemind=${pkgver}"), conflicts=("freemind"), `replaces=("freemind<=1.0.1") should be added.

Regards and thanks for maintaining!

sinbud2004 commented on 2024-01-12 03:14 (UTC) (edited on 2024-01-12 03:21 (UTC) by sinbud2004)

I have tested many situations. For example, Dbeaver requires >java-17-openjdk to run, but freemind requires java-11-openjdk to run. I have installed both sudo pacman -S jre11-openjdk jre17-openjdk . I just need to write a switch for one of them.

freemind.sh

#!/usr/bin/bash
sudo archlinux-java set java-11-openjdk
freemind %U
sudo archlinux-java set java-17-openjdk

In this way, when you run freemind, you will switch to the environment it needs. It should be noted (1) Freemind and Dbeaver cannot run at the same time. (2) Sudoer needs to be set to user without password.

butla commented on 2023-03-03 15:17 (UTC) (edited on 2023-03-03 15:17 (UTC) by butla)

I was getting an error like this on Manjaro:

java.io.FileNotFoundException: /home/butla/.freemind/auto.properties (No such file or directory)
        at java.base/java.io.FileInputStream.open0(Native Method)
        at java.base/java.io.FileInputStream.open(FileInputStream.java:216)
        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
        at freemind.main.FreeMindStarter.readUsersPreferences(FreeMindStarter.java:165)
        at freemind.main.FreeMindStarter.main(FreeMindStarter.java:59)
Panic! Error while loading default properties.
Exception in thread "main" java.lang.reflect.InaccessibleObjectException: Unable to make field private static java.lang.String sun.awt.X11.XToolkit.awtAppClassName accessible: module java.desktop does not "opens sun.awt.X11" to unnamed module @731a74c
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
        at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
        at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
        at freemind.main.FreeMindStarter.main(FreeMindStarter.java:72)

Anyways, I've noticed that Freemind has a successor fork - Freeplane - which is available in the community repos, so I switched to that.

It also needed a tweak to pick a Java runtime different from the latest, though:

sudo pacman -Sy jre17-openjdk
sudo archlinux-java set java-17-openjdk

Andrei_Korshikov commented on 2022-12-07 15:06 (UTC) (edited on 2024-04-07 21:11 (UTC) by Andrei_Korshikov)

Christian Foltin (the author of software) adapted code to compile and run with java17, but for version 1.1.0 only. Stable version (1.0.1) perfectly runs with jre11-openjdk. Java SE 11 is LTS release, so I believe it's OK. To run freemind with non-default java version one can use simple command: env JAVA_HOME=/usr/lib/jvm/java-11-openjdk freemind

<deleted-account> commented on 2022-06-10 10:00 (UTC)

@theRedCyclops Thank you for letting me know. This is an issue of the precompiled freemind package. Sadly it hasn't been maintained for the last 8 or so years. For now, I advise to use a JRE with version 8. That is the LTS version of java and will definitely work with freemind. I'll try to make my own freemind binaries that are compatible with newer versions of java, but that will take some time to properly do. So please stay patient. :)

theRedCyclops commented on 2022-06-09 17:06 (UTC)

this package is currently broken on the latest java release