Package Details: greenfoot 3.8.2-1

Git Clone URL: https://aur.archlinux.org/greenfoot.git (read-only, click to copy)
Package Base: greenfoot
Description: Educational software designed to make learning programming easy and fun.
Upstream URL: https://www.greenfoot.org
Licenses: GPL2, custom, BSD, MIT, Apache, LGPL2.1, LGPL2, CPL
Submitter: even
Maintainer: nomisge
Last Packager: nomisge
Votes: 15
Popularity: 0.000000
First Submitted: 2008-07-14 21:01 (UTC)
Last Updated: 2023-12-05 18:03 (UTC)

Dependencies (4)

Required by (0)

Sources (4)

Latest Comments

1 2 3 4 5 6 Next › Last »

nomisge commented on 2023-10-30 09:51 (UTC)

@foer This is a localization bug in greenfoot. The warning is suppressed when english language is used. Other language settings (in your case german) still show this warning.

Within BlueJ this has been fixed. I expect this to be fixed upstream with the next greenfoot release.

foer commented on 2023-10-30 08:04 (UTC) (edited on 2023-10-30 08:12 (UTC) by foer)

Starting with Greenfoot 3.8.0-1 there is a warning on startup:

WARNUNG: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @3a62b39e

It seems that it's only a warning and have no effect on functionality but students are very irritated by that. Is there a possibility to solve that problem?

Update: Linkin to Openjdk11 and java11-openjdk in /usr/bin/greenfoot stops the warning. It must have something to do with java17...

Ptero-4 commented on 2020-07-03 20:40 (UTC) (edited on 2020-07-03 20:58 (UTC) by Ptero-4)

greenfoot.org seems to be down. https://i.imgur.com/RUa4pHo.png

teacher4711 commented on 2020-07-01 11:01 (UTC)

Thank you so much for taking over the project! I've been following your advice to build the package and it has worked perfectly so far. Cheers

nomisge commented on 2020-03-06 16:30 (UTC) (edited on 2020-03-06 17:47 (UTC) by nomisge)

I did following changes locally to also have mime-types set correctly, to be able to open greenfoot when project.greenfoot is clicked.

Changed greefoot:

#!/bin/sh
if [ -e /usr/lib/jvm/java-11-openjfx/lib ]; then
        JAVAFX_HOME=/usr/lib/jvm/java-11-openjfx/lib
else
        JAVAFX_HOME=/usr/lib/jvm/java-11-openjdk/lib
fi

JAVAFX_CP="$JAVAFX_HOME/javafx.base.jar:$JAVAFX_HOME/javafx.controls.jar:$JAVAFX_HOME/javafx.fxml.jar:$JAVAFX_HOME/javafx.graphics.jar:$JAVAFX_HOME/javafx.media.jar:$JAVAFX_HOME/javafx.swing.jar:$JAVAFX_HOME/javafx-swt.jar:$JAVAFX_HOME/javafx.web.jar"

archlinux-java-run -a 11 -b 11 -- -Djavafx.embed.singleThread=true \
        -Dawt.useSystemAAFontSettings=on \
        -cp /opt/greenfoot/bluej.jar:/usr/lib/jvm/default/lib/tools.jar:$JAVAFX_CP bluej.Boot \
        -greenfoot=true \
        -bluej.compiler.showunchecked=false \
        -greenfoot.url.javadoc=file:///usr/share/doc/greenfoot/API \
        -javafxpath=$JAVAFX_CP \
        "$@"

Changed greenfoot.desktop

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=Greenfoot
Comment=A simple Java IDE and animation framework
Categories=Application;Development;
Exec=greenfoot %u
MimeType=application/x-greenfoot.package
Icon=greenfoot
Terminal=false
Type=Application
StartupWMClass=bluej.Boot$App

Added greenfoot.xml

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-greenfoot.package">
         <comment>Greenfoot Package</comment>
         <comment xml:lang="de">Greenfoot Paket</comment>
         <glob pattern="*.greenfoot"/>
  </mime-type>
</mime-info>

Added greenfoot.install

post_install() {
    if test -x /usr/bin/update-mime-database usr/share/mime &> /dev/null; then update-mime-database usr/share/mime &> /dev/null; fi
}

post_upgrade() {
    post_install
}

pre_remove() {
    if test -x /usr/bin/update-mime-database usr/share/mime &> /dev/null; then update-mime-database usr/share/mime &> /dev/null; fi
}

Changed source and sha256sum lines in PKGBUILD and added

install -Dm644 "${pkgname}.xml" "${pkgdir}/usr/share/mime/packages/${pkgname}.xml"

teacher4711 commented on 2020-01-06 18:29 (UTC)

@chetgurevitch Have you found time to verify that the modifications are working? Here is the code of the greenfoot file:

!/bin/sh

if [ -e /usr/lib/jvm/java-11-openjfx/lib ]; then JAVAFX_HOME=/usr/lib/jvm/java-11-openjfx else JAVAFX_HOME=/usr/lib/jvm/java-11-openjdk fi

JAVAFX_CP="$JAVAFX_HOME/lib/javafx.base.jar:$JAVAFX_HOME/lib/javafx.controls.jar:$JAVAFX_HOME/lib/javafx.fxml.jar:$JAVAFX_HOME/lib/javafx.graphics.jar:$JAVAFX_HOME/lib/javafx.media.jar:$JAVAFX_HOME/lib/javafx.swing.jar:$JAVAFX_HOME/lib/javafx-swt.jar:$JAVAFX_HOME/lib/javafx.web.jar"

archlinux-java-run -a 11 -b 11 -- -Dawt.useSystemAAFontSettings=on \ -cp /opt/greenfoot/bluej.jar:/usr/lib/jvm/default/lib/tools.jar:$JAVAFX_CP bluej.Boot \ -greenfoot=true \ -bluej.compiler.showunchecked=false \ -greenfoot.url.javadoc=file:///usr/share/doc/greenfoot/API \ -javafxpath="$JAVAFX_HOME" \ "$@"

teacher4711 commented on 2019-12-08 19:09 (UTC)

The new version 3.6.1 (6 Dec 2019) works with the modifications by @foer. Tested it on 8 Dec 2019. No issues like the ones mentioned in my comment on 8 Nov.

Thanks a lot to all the people who contribute to this aur, especially to @chetgurevitch