# Upgrading to a newer version of Java

**URL:** <https://forum.vassalengine.org/t/upgrading-to-a-newer-version-of-java/10005>\
**Category:** Technical Support & Bugs\
**Created:** [September 8, 2019, 11:39pm UTC](https://forum.vassalengine.org/t/upgrading-to-a-newer-version-of-java/10005 "2019-09-08T23:39:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)\
**Post date:** [September 8, 2019, 11:39pm UTC](https://forum.vassalengine.org/t/upgrading-to-a-newer-version-of-java/10005/1 "2019-09-08T23:39:45Z")

</div>

I’ve been banging my head against the wall for a few weeks now to have a test build working with a version of Java newer than Java 8. Just a few minutes ago I solved the last major issue I know of, which was working around the fact that the classes we use to play sound were deprecated and then removed after Java 8.

Expect a test build sometime this week.

---

<div class="post-metadata">

**Author:** ![tar](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/tar/32/21_2.png) [@tar](https://forum.vassalengine.org/u/tar)\
**Post date:** [September 10, 2019, 12:32am UTC](https://forum.vassalengine.org/t/upgrading-to-a-newer-version-of-java/10005/2 "2019-09-10T00:32:39Z")

</div>

Hooray!

On Sun, Sep 8, 2019 at 4:40 PM uckelman [uckelman@nomic.net](mailto:uckelman@nomic.net) wrote:

> I’ve been banging my head against the wall for a few weeks now to have a  
> test build working with a version of Java newer than Java 8. Just a few  
> minutes ago I solved the last major issue I know of, which was working  
> around the fact that the classes we use to play sound were deprecated  
> and then removed after Java 8.
> 
> Expect a test build sometime this week.
> 
> * * *
> 
> Read this topic online here:  
> [Upgrading to a newer version of Java](https://forum.vassalengine.org/t/upgrading-to-a-newer-version-of-java/10005/1)
> 
> * * *
> 
> messages mailing list  
> [messages@vassalengine.org](mailto:messages@vassalengine.org)  
> [vassalengine.org/mailman/listinfo/messages](http://www.vassalengine.org/mailman/listinfo/messages)

---

<div class="post-metadata">

**Author:** ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)\
**Post date:** [September 11, 2019, 11:01pm UTC](https://forum.vassalengine.org/t/upgrading-to-a-newer-version-of-java/10005/3 "2019-09-11T23:01:01Z")

</div>

Test build:

[vassalengine.sourceforge.net/builds/](http://vassalengine.sourceforge.net/builds/)

3.2.18-svn9251 is compiled with Java 11 to work with Java 9 or later. It WILL NOT work with anything less than Java 9.

Please give this build a try and let me know what you find.

---

<div class="post-metadata">

**Author:** ![GianniVacca](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/giannivacca/32/239_2.png) [@GianniVacca](https://forum.vassalengine.org/u/GianniVacca)\
**Post date:** [September 24, 2019, 9:34pm UTC](https://forum.vassalengine.org/t/upgrading-to-a-newer-version-of-java/10005/4 "2019-09-24T21:34:42Z")

</div>

I have tried version VASSAL-3.2.18-svn9251 with a freshly-installed JDK SE 11, and upon launching VASSAL I get an error pop-up with the following error message:  
This application requires a Java Runtime Environment 1.5.0

---

<div class="post-metadata">

**Author:** ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)\
**Post date:** [September 25, 2019, 7:13pm UTC](https://forum.vassalengine.org/t/upgrading-to-a-newer-version-of-java/10005/5 "2019-09-25T19:13:42Z")

</div>

Thus spake GianniVacca:

> I have tried version **VASSAL-3.2.18-svn9251** with a freshly-installed  
> JDK SE **11** , and upon launching VASSAL I get an error pop-up with the  
> following error message:  
> This application requires a Java Runtime Environment 1.5.0

We need more details to know what went wrong, such as what OS you’re  
using, how you’re launching VASSAL, and what’s in the errorLog.

–  
J.

---

<div class="post-metadata">

**Author:** ![GianniVacca](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/giannivacca/32/239_2.png) [@GianniVacca](https://forum.vassalengine.org/u/GianniVacca)\
**Post date:** [September 26, 2019, 7:46am UTC](https://forum.vassalengine.org/t/upgrading-to-a-newer-version-of-java/10005/6 "2019-09-26T07:46:33Z")

</div>

> such as what OS you’re using

Win7 Professional

> how you’re launching VASSAL

I’ve tried both double-clicking on the icon, and entering the following in a cmd window:  
java -jar Vengine.jar

> and what’s in the errorLog.

When I use the command line I only have the following:  
VASSAL: IO error  
java.io.IOException  
at VASSAL.launch.ModuleManager.main(ModuleManager.java:164)  
Caused by: java.nio.channels.OverlappingFileLockException  
at sun.nio.ch.SharedFileLockTable.checkList(Unknown Source)  
at sun.nio.ch.SharedFileLockTable.add(Unknown Source)  
at sun.nio.ch.FileChannelImpl.tryLock(Unknown Source)  
at java.nio.channels.FileChannel.tryLock(Unknown Source)  
at VASSAL.launch.ModuleManager.main(ModuleManager.java:161)

Is there more I can find somewhere?
