This site requires JavaScript, please enable it in your browser!
Greenfoot back
JBanyer
JBanyer wrote ...

2019/5/21

Newest Greenfootversion won't Run XUbuntu

JBanyer JBanyer

2019/5/21

#
So my problem is, that this used to work perfectly.. well it crashed when my code looped a lot. However I was able to use start and run Greenfoot, without any problems. Now none of this is possible. I click it and nothing happens. I start it through the terminal and this is the error:
Exception in thread "main" java.lang.NoClassDefFoundError: javafx/application/Application
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at bluej.Boot.main(Boot.java:193)
Caused by: java.lang.ClassNotFoundException: javafx.application.Application
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 13 more
I tried reinstalling it a few times, I even looked into the file, but I couldn't really find any problem. I checked the forums here, but I can't seem to find anything. If you can help me, I'd be really thankful. Cheers!
nccb nccb

2019/5/21

#
Greenfoot requires Java 8, including JavaFX 8. This error occurs when JavaFX is missing. The simplest solution used to be to run Oracle's Java 8 which included JavaFX 8, so if Oracle Java 8 is available for your OS then I'd suggest that as the best fix. I'm guessing you used to have either Oracle's Java 8 installed or OpenJDK plus JavaFX, but an operating system update may have messed with the configuration or removed these packages -- did you recently perform a major update of your Operating System to a new version?
JBanyer JBanyer

2019/5/21

#
Yes I did. It was around last week. The reason why I updated, is because my Greenfoot was crashing. Thanks for your reply. I will try what you said.
JBanyer JBanyer

2019/5/22

#
No result btw. I still can't get it working.
AULoneRanger AULoneRanger

2019/5/28

#
Same problem, running Java 12 on a Linux Mint 19.1 system. I get the same message and cannot find a solution.
nccb nccb

2019/5/29

#
For the next Greenfoot version we've begun exploring bundling the required JDK (and JavaFX) with Greenfoot to avoid these kinds of problems. If that's something you'd be willing to test on your machines before we release it, that would be useful -- drop us an email to support@greenfoot.org if so. (We already bundle on Windows and Mac, but generally we've relied on the Ubuntu package management for the JDK in the past. But that seems to be getting more painful so hence we are looking to bundle on Ubuntu as well.)
AULoneRanger AULoneRanger

2019/6/15

#
I would be willing to test. I cannot get Oracle 8jdk to work with Greenfoot at all on Linux Mint 19.1. I keep getting the same error message as before. Any suggestions as how to fix this?
You need to login to post a reply.