Please make the javafx useflag enabled per default. This is useful because: - disabling javafx leads only to removal of already existing files. - javafx is a killerfeature of oracle jdk because icedtea for java 8 is unreleased and the open source javafx pendant openjfx is not packaged yet. Some people install oracle jdk only because of javafx. - java does not get the loss of javafx. If you want to execute a java application that needs javafx and the useflag is not set, java quits with the error message, that the Main class was not found or has errors. So a user first has to know that the jar is a javafx app, and second needs to recognize that the useflag is deactivated.
While I appreciate that the error is less than helpful, javafx adds a lot of additional dependencies. Sure, most desktop users are likely to have them anyway but Gentoo users are extremely picky about this kind of thing. Trust me, I've had complaints. I think I've already upset enough users over the X vs headless-awt thing so I'd rather avoid any further disruption. As distro developers, we are primarily concerned with packages in the tree and if one requires javafx then we can explicitly depend on the flag. At the moment though, the only package that does is an optional part of NetBeans. I'm not aware of any other applications that use it though no doubt that number is growing and we can review this decision at a later date. Java 9 is supposed to be more modular and I'm wondering how this will affect javafx in particular. P.S. icedtea for Java 8 is just released now. ;)
Ok, understand your concerns, maybe a compromise works and you can add an ewarn for this. Anyway, to find this bugreport with the exact error message, I want to post it (english and german): Error: Could not find or load main class application.Main Fehler: Hauptklasse application.Main konnte nicht gefunden oder geladen werden
Added a warning as requested.