#Prepare for the Transition to Java 17: Upcoming Changes and How to Stay Updated

1 messages · Page 1 of 1 (latest)

autumn cedar
#

A thread to discuss the transition to Java 17.

midnight cipher
#

Oh that's perfect. I built MegaStrike against Java 17 because of JavaFX and jpackage

languid fog
#

Oh Boy, we are getting closer and closer to a useable Java version for me ;3, can´t wait to play Mega Mek one day ;D

oak hawk
oblique cargo
#

17 in particular is usable right now, if that's the one that works for you

#

if it's 21, that will take longer

languid fog
oblique cargo
#

yeah messing with work PCs definitely not the best idea

languid fog
oblique cargo
#

wew, that's gonna be a long wait then

languid fog
scenic hamlet
#

If your machine is constantly being updated to the latest Java release, it'll likely stay, at the least, just ahead of the MM curve, forever tempting you as if you were Tantalus.

heady finch
heady finch
#

And the general intention is to not move to the next LTS until the current has reached EOL.

golden gazelle
#

and even that is not that very big a deal.

languid fog
dire gazelle
#

Question about Java 17 ...
... is there any testing done with OpenJDK? Just curious, because with Java 11, I was able to comfortably use OpenJDK 11 (installed through homebrew).

When I tried to use OpenJDK 17 (17.0.12), I could get MekHQ to run, but when I launched MegaMek for a contract, it ground to unresponsiveness. I was able to move one mech and it didn't auto-select the next unit for movement (despite saying it was my turn to move a unit). And I couldn't manually select a unit to move.

dire gazelle
#

I'm currently trying the Temurin install ...

heady finch
#

On macOS? Use the adoptoum installer directly. Don't use Homebrew. There is an issue with the OpenJDK builds within Homebrew.

dire gazelle
#

yep... Adoptium/Temurin seems MUCH MUCH better ... I can actually play 😄

heady finch
#

Thank you for reporting that bug. We'll have that fixed in the next release to prevent playing. We only do war crimes here.

haughty plaza
#

@woeful trail This is the existing Java 17 transition support thread.

#

!java

rough yarrowBOT
#

Java Update Protocol Activated!
Hey MechWarriors! Time to power up your Java systems:

:robot: Critical Mission Briefing:

  1. First thing! Check your version of MegaMek/MegaMekLab/MekHQ to ensure you get the right Java.

Java Version Compatibility:
MegaMek/MegaMekLab/MekHQ Versions:

  • 0.50.x to 0.51.x: Will require Java 17 (LTS) when this cycle lands (Mid 2024).
  • 0.49.0 to 0.49.20: Needs Java 11 (LTS) but you should be looking at updating to Java 17.
  • 0.48.0-Stable: Needs Java 8 (LTS). If you're using this version, upgrade to the MILESTONE release.
  1. Visit this link for detailed update steps: https://github.com/MegaMek/megamek/wiki/Updating-to-Adoptium-(Eclipse-Temurin-Open-Source-Java)
  2. For a visual guide, check out this helpful video tutorial: How to install Megamek & Java! Play Battletech online! by "The Many Voices":video_camera:
  3. Follow these steps EXACTLY – or risk facing the wrath of a misconfigured Mech!
  4. Don't forget the reboots and Step 6 – they're more important than a headshot with a PPC!

Ignoring these steps might leave your Mech as useful as a Locust in an Atlas fight!
Remember, Information is Ammunition.

GitHub

MegaMek is a networked Java clone of BattleTech, a turn-based sci-fi boardgame for 2+ players. Fight using giant robots, tanks, and/or infantry on a hex-based map. - MegaMek/megamek

Hello mechwarriors! Just a quick installation guide for Megamek and Java for anyone who wants to use Megamek! Hope this helps you to start gaming online with your friends! If you're looking to play somewhere check out the MRC! https://discord.gg/UnwFRV4xha

Text guide: https://github.com/MegaMek/megamek/wiki/Updating-to-Adoptium-(Eclipse-Temuri...

▶ Play video
haughty plaza
#

@woeful trail If you follow the above link's steps, are you able to install Java 17?

woeful trail
#

extracting again file...

haughty plaza
#

Remember to use 7zip or WinRar or something to unzip the MM, MML, or MHQ packages, too.

woeful trail
#

Yeah... I'm all thumbs. It's still showing the older 48.0 as "default" MML...

I've even tried to overwrite to the new version... nothing.

~quote 2 left big toes...

oblique cargo
#

... did you extract the new version into the folder for the old version?

#

What do you mean by "default", anyway?

woeful trail
#

By default, it is the only one shown, I've tried to extract the 50.5 and replace the files with them, no luck.

Looks like I need to clean sweep the slate and re install MM, MML and MMHQ from scratch. A pain, but at least I know it'll work...

oblique cargo
#

By default, it is the only one shown
Shown where?

#

Megamek doesn't "install" in the Start Menu, it's just a program you run from its folder

woeful trail
#

on my folder

oblique cargo
#

... you did copy the new files into the old folder, didn't you

#

Don't do that.

#

Extract the new version into its own folder, and run it from there.

woeful trail
#

As seen from my POV

#

48.0 is last "file" and I can't get 50.5 MML to open up

oblique cargo
#

Again, did you take the new version files and copy them into the folder with the old version? Because that would break everything.

#

If so, start over from the point where you extract the downloaded new version from its archive, and put it into a different folder.

woeful trail
#

No, don't think so

#

I'll try it

oblique cargo
#

also, wait, which operating system are you using?

heady finch
#

Why does it look like you're storing your files on a cloud drive? Do NOT do that. That WILL cause issues.

woeful trail
#

Windows 11

#

I do have cloud support, but am not storing these anyway

heady finch
#

If MM is in ANY cloud folder or any folder managed by a cloud drive, it WILL mess things up. I asked because it's highlighed on the left. I recommend storing MM at C:\Games to remove that issue

woeful trail
#

Problem solved, it was saved to another file, have fixed.