Commit Graph

37 Commits

Author SHA1 Message Date
A Pottinger
c14695476e Moves to Java11 and OpenJDK via AdoptOpenJDK within the processing4 train.
Moves to Java11 and OpenJDK via AdoptOpenJDK within the processing4 train using a squash of sampottinger processing fork's java11 branch.

**Primary required changes:**
Some changes directly support OpenJFX / OpenJDK 11:

 - Response to image loading changes caused by [JEP 320](https://openjdk.java.net/jeps/320)
 - Use of jmodules as necessitated by [JEP 261](https://openjdk.java.net/jeps/261)
 - Reponse to largely changed file paths caused by [JEP 220](https://openjdk.java.net/jeps/220).
 - Modifications in build system related to AdoptOpenJDK and Java 11 which have a different naming structure for downloads.
 - Allowing use of non-Oracle Java within internal Processing checks.

**Secondary required changes:**
There were some secondary required changes that impacted the usability of Processing after having moved to OpenJFX / OpenJDK 11:

 - Removal of com.apple.eawt calls related to [JEP 272](http://openjdk.java.net/jeps/272)
 - Response to HiDPI support on Windows and Linux in [JEP 263](https://openjdk.java.net/jeps/263)
- Removal of `java.ext.dirs`. Would be forced by [JEP 220](http://openjdk.java.net/jeps/220).
 - Due to bugs on Windows, updated the JNA jars.
 - Changes in downloader build tasks to support AdoptOpenJDK and OpenJFX.
 - Updated org.eclipse.* / equinox jars.
 - Some optimization around size of distribution.
 - Update of AppBundler.
 - Some changes in formulation of classpath and modifications in PreprocessingService given [JEP 261](https://openjdk.java.net/jeps/261).

**Incidental changes:**
This was (ahem) a bit of a larger PR with the above modifications. So, I wanted to introduce automated tests when possible and convenient along with a few changes for platform sustainability in order to support development:

 - Addition of cross-building capability (!) made possible by AdoptOpenJDK.
 - Addition of mockito for testing.
 - Upgrade of junit.
 - Addition of ant-contrib.
 - Standardized nomenclature around JRE / JDK in `build/build.xml`
 - Deduplication of code in `jre/build.xml`.
 - Addition of JavaDoc in a few places.
 - Some refactoring of PImage / Shape to support increased testing and readability in image manipulation code.
2019-10-05 20:49:33 -07:00
Ben Fry
80eac720c7 preserve file attributes so things don't appear modified; fix some indents lost in tab conversion 2019-04-21 08:12:20 -04:00
gohai
cb8e37ed43 ARM: Don't attempt to build JavaFX on arm64 2017-04-11 14:44:49 +02:00
Ben Fry
d8537b351c more generic, cleaning up dirs 2016-09-20 15:15:23 -04:00
Jakub Valtar
dd8698427c Update app to Java 8 2016-04-02 23:17:25 +02:00
Ben Fry
2ace98d41a implement default cursor images for OpenGL (fixes #3554) 2015-09-11 14:28:12 -04:00
gohai
bd41cb5f6c Reduce the maximum number of lights to 2 for vc4 (v2)
This is to work around register allocation failures in the new mesa vc4 driver. Eric wants to implement a pre-register-allocation scheduling pass, which might help, but for the time being reduce the maximum number of lights to 2, which is what lights() needs.
2015-08-12 01:09:01 +02:00
gohai
dcc7223edb Fix build if JavaFX is missing (v2)
"Starting with JDK 8u33, JavaFX Embedded is removed from the ARM bundle and is not supported." Note: there is an OpenJFX project, but this would probably have to be an external compile-time dependency.
2015-07-31 20:44:25 +02:00
codeanticode
8bb398d5bb moved shaders to separate package 2015-05-19 23:48:05 -04:00
Ben Fry
c18d42babc move apple.jar into core because it needs its own ThinkDifferent 2015-05-19 15:49:03 -04:00
Ben Fry
c32736be56 fix ant build for jogl 2015-05-14 18:22:49 -04:00
codeanticode
12b6626747 put LWJGL in the core 2015-02-20 16:21:15 -05:00
Ben Fry
9f1816495a more fixes for building core standalone 2015-01-21 19:14:15 -05:00
Ben Fry
8267c4c11f remove methods binary, clean up tasks, remove demo stuff, notes on recent fixes 2015-01-21 19:08:11 -05:00
Ben Fry
8ae116567d next stage of mess 2015-01-20 15:46:25 -05:00
Ben Fry
5be24e55ea bring back the jnilib for the menubar hiding 2015-01-19 16:55:48 -05:00
Kyle Feuz
cc312f8b76 Unset the executable bit on xml files 2014-11-20 13:17:33 -07:00
Federico Bond
ce5daefffd Use 1.7 as source and target Java version 2014-10-20 23:52:26 -03:00
Ben Fry
e279fa2e47 build cleanups to die when files not present, remove duplicate fonts 2014-07-30 16:20:52 -04:00
Ben Fry
5e939b1316 add debug message.. found Java 1.8 problem with build. 2014-04-15 13:51:34 -04:00
Ben Fry
5411ece732 fix ecj.jar path issue on Windows (and Linux?) 2014-04-09 11:38:09 -04:00
Ben Fry
c350407d01 conditionally use javac if ecj not available 2014-02-08 13:09:29 -05:00
Ben Fry
55ffd815f6 more 1.7 notes 2013-10-25 09:53:02 -04:00
Ben Fry
7eb0f19d65 change build scripts to use built-in ecj (removes jdk req) 2013-09-12 19:21:57 -04:00
benfry
b5894484a7 actually add the images to the build 2012-10-22 23:07:52 +00:00
benfry
ab815ede89 update source/target settings in build b/c of Java 7 warnings 2012-10-19 14:48:48 +00:00
codeanticode
46f4ba5f51 upgrading jogl 2012-07-28 00:36:15 +00:00
benfry
f7752ae687 fix methods setup so that android also auto-adds methods from PGraphics/PImage 2012-07-21 15:05:08 +00:00
benfry
6a216e6f0b moving core.jar and friends 2012-07-20 22:34:12 +00:00
benfry
74a0aa9bb1 classpath fixes for Eclipse, ant tweak for OpenGL 2012-07-20 20:39:14 +00:00
benfry
5e89f31610 change to 1.6 instead of 1.5 as target 2012-05-31 16:27:53 +00:00
benfry
2e181361cc two steps forward, two steps back for graphics 2012-05-18 19:12:32 +00:00
benfry
410bf3dd91 fix problems with native lib copy and better errors msgs for full screen problems 2012-03-27 17:08:04 +00:00
benfry
4559b37776 stuffing the javadoc in there for the methods, deal with rename 2010-02-07 20:53:59 +00:00
benfry
4975c8b693 add encoding and disable ant libs on build scripts, working to fix up
windows version
2010-02-07 13:54:02 +00:00
benfry
40e990c0c2 work on new build scripts 2010-02-06 03:38:24 +00:00
benfry
f8f0d1c2ba starting switchover to ant build scripts 2010-02-05 13:14:23 +00:00