ENIGMA Forums

General fluff => Announcements => Topic started by: Goombert on October 17, 2014, 10:49:34 AM

Title: Java 8 Stable
Post by: Goombert on October 17, 2014, 10:49:34 AM
(http://www.ibm.com/developerworks/i/hivis-v17-java8beta.png)

That's right, Java 8 has finally entered the stable release channel at Java8u25
https://java.com/en/download/index.jsp

I have to encourage everyone to update as soon as you possibly can. The new version of Java integrates JavaFX into the standard Java library providing CSS support, 3D graphics, MP3 audio playback and a ton of other features that we want to be able to use in LGM like SVG graphics with the widespread adoption of the new Java. Project Nashorn is also new which is a JavaScript parsing engine, allowing essentially LGM to provide JavaScript extensions like Unity3D.

https://en.wikipedia.org/wiki/Java_version_history#Java_SE_8_.28March_18.2C_2014.29
https://en.wikipedia.org/wiki/Nashorn_%28JavaScript_engine%29
https://en.wikipedia.org/wiki/JavaFX

It also seems likely that this will be one of the most quickly adopted Java versions ever.

http://www.marketwatch.com/story/oracle-highlights-continued-java-se-momentum-and-innovation-at-javaone-2014-2014-09-29
http://www.theserverside.com/news/2240232875/Will-Java-EE-8-adoption-outpace-previous-releases
Title: Re: Java 8 Stable
Post by: Darkstar2 on October 17, 2014, 12:09:33 PM
Wow that sure was a late arrival, I still remember ages ago when you were waiting for the 8 release to come out, you mentioned 2 months.....seems it took forever :D

BTW this is only for LGM right ? The compiled application will not require J8 on the person's computer right?
Title: Re: Java 8 Stable
Post by: TheExDeus on October 17, 2014, 01:59:07 PM
No, ENIGMA doesn't have any connection to Java. It's only LGM.
Title: Re: Java 8 Stable
Post by: Darkstar2 on October 17, 2014, 02:43:29 PM
No, ENIGMA doesn't have any connection to Java. It's only LGM.

Thank goodness for that :D

Title: Re: Java 8 Stable
Post by: HitCoder on October 18, 2014, 07:45:20 PM
ENIGMA will not run with java 8, please help. Lol.
Title: Re: Java 8 Stable
Post by: Goombert on October 18, 2014, 09:50:57 PM
HitCoder, I am going to need to see an error report. If it just opens and closes immediately, copy enigma-dev/output_log.txt to http://www.pastie.org and let me see it. Additionally try it with the latest LateralGM, everything is working fine here, make sure you also have a 32bit Java installation, 64bit Java currently has issues. If you want both then install both 32bit and 64bit Java in parallel and modify settings.ini to launch ENIGMA with the 32 bit JVM.
Title: Re: Java 8 Stable
Post by: IsmAvatar on October 21, 2014, 04:15:55 PM
Quote
3D graphics, MP3 audio playback... SVG graphics
Wut? Java actually decided to enter the modern world? I can't tell you how long I've waited for those to become available, and how much I hemmed and hawed while writing functionality around them and debating whether to just include a separate library for it.
Title: Re: Java 8 Stable
Post by: Goombert on October 21, 2014, 09:36:14 PM
I am more excited about Nashorn honestly Ism, but Java is definitely improving and this is why it is one of the most quickly adapted versions according to Oracle.

MP3 support takes the form of a new HTML5 esque audio player, see "Supported Encoding Types"
http://docs.oracle.com/javafx/2/api/javafx/scene/media/package-summary.html

The SVG support seems somewhat limited to me.
http://docs.oracle.com/javafx/2/api/javafx/scene/shape/SVGPath.html

3D is there and limited, but Oracle wants to add more shader support and everything.
http://docs.oracle.com/javase/8/javafx/graphics-tutorial/javafx-3d-graphics.htm
Title: Re: Java 8 Stable
Post by: The 11th plague of Egypt on October 22, 2014, 02:15:20 AM
Whatever, if you want to write games you have a chance to port to Android, you are stuck with Java 6.

Yes, there are frameworks working both on Android and PC.
http://libgdx.badlogicgames.com/
Title: Re: Java 8 Stable
Post by: TheExDeus on October 25, 2014, 03:40:18 PM
It seems ENIGMA.exe needs some changes for Java8 to work. It errors for me with this:
Quote
Copyright (C) 2013 The ENIGMA Team

Checking Java Installation
Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'

has value '1.8', but '1.7' is required.
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.
ERROR! Could not find Java.exe. Please install Sun's Java runtime environment.
http://www.java.com/en/download/manual.jsp

If you already have Java, and believe you have received this message in error, y
ou could try adding it to your system PATH variable.
Press any key to continue . . .
I can of course still run lgm directly, so it's not a breaking bug. But still.
Title: Re: Java 8 Stable
Post by: Goombert on October 25, 2014, 04:04:40 PM
Did you uninstall the old Java versions or are you running them in parallel Harri? If so you probably need to add a special command line option to the settings.ini

I am already on Java 8 and it is the only Java I have installed and everything is working fine here. As it currently stands neither the settings.ini or the Windows executable impose any minimum required Java version. However LGM was built with 1.6 compliance though the new jars I have been building with 1.7 compliance, it is simply implied that LGM will not currently work with Java 5 and the new versions will not work with Java 6.
Title: Re: Java 8 Stable
Post by: TheExDeus on October 26, 2014, 12:44:28 PM
I'm not sure what I had to change in the .ini, so I just uninstalled Java7. Now I have only 8 and I can run ENIGMA.exe now.
Title: Re: Java 8 Stable
Post by: Goombert on October 26, 2014, 07:27:26 PM
That's great Harri I am glad you could resolve it. You would have had to explicitly state the Java version in the launch command in settings.ini from the following tutorial.

http://www.wikihow.com/Run-a-.Jar-Java-File

Quote from: wikiHow
Type the following command into terminal: $>/usr/lib/jvm/jre-1.6.0-sun/bin/java -jar %f