Testing JDK 9 EA with Heroku
You can test JDK 9 in just a couple of minutes by deploying any JVM-based app to Heroku.
Why should you test JDK 9? Because it’s a great way to help the community! The Adopt OpenJDK project is eagerly requesting feedback, bug reports, and contributions that help get everyone’s frameworks and applications prepared for the new release.
You can test your own app, or use one of Heroku’s samples. If you’re not familiar with Heroku, you might want to follow the Getting Started with Java on Heroku guide.
When you have an app ready,
add a system.properties
file in the root directory of your project, and
put this code in it:
Add that file to your Git repository by running these commands:
Then, deploy to Heroku by running git push heroku master
:
You’ll see Heroku install JDK 9 for your app, and once the deploy is finished you can check things out by running:
And you can start a shell for your app and test the new JDK 9 by running:
If you find any problems, feel free to reach out to me.
If you don’t find any problems, and still want to contribute, try collecting some data points for the G1GC (the new default garbage collector) as describe in this post on hotspot-dev.
If you’d like to play around with some new features, check out this great post on what’s new in JDK 9 from Takipi.