Pages: [1]
  Print  
Author Topic: Java 8 Stable  (Read 6633 times)
Offline (Male) Goombert
Posted on: October 17, 2014, 10:49:34 AM

Contributor
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2988

View Profile


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
« Last Edit: October 17, 2014, 11:41:10 AM by Robert B Colton » Logged
Welcome to ENIGMO, the game engine built by fucking aliens.

Offline (Unknown gender) Darkstar2
Reply #1 Posted on: October 17, 2014, 12:09:33 PM
Member
Joined: Jan 2014
Posts: 1213

View Profile Email
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?
Logged
Offline (Unknown gender) TheExDeus
Reply #2 Posted on: October 17, 2014, 01:59:07 PM

Developer
Joined: Apr 2008
Posts: 1886

View Profile
No, ENIGMA doesn't have any connection to Java. It's only LGM.
Logged
Offline (Unknown gender) Darkstar2
Reply #3 Posted on: October 17, 2014, 02:43:29 PM
Member
Joined: Jan 2014
Posts: 1213

View Profile Email
No, ENIGMA doesn't have any connection to Java. It's only LGM.

Thank goodness for that :D

Logged
Offline (Male) HitCoder
Reply #4 Posted on: October 18, 2014, 07:45:20 PM

Member
Location: King's Lynn, England
Joined: Aug 2014
Posts: 139

View Profile WWW Email
ENIGMA will not run with java 8, please help. Lol.
Logged
DISCORD: HitCoder#4530
I'm not good at games, and I'm not good at making them either. But I am fairly confident I am a decent programmer. I think. Maybe not.
(As you can tell I am not witty at all)
Offline (Male) Goombert
Reply #5 Posted on: October 18, 2014, 09:50:57 PM

Contributor
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2988

View Profile
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.
Logged
Welcome to ENIGMO, the game engine built by fucking aliens.

Offline (Female) IsmAvatar
Reply #6 Posted on: October 21, 2014, 04:15:55 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
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.
Logged
Offline (Male) Goombert
Reply #7 Posted on: October 21, 2014, 09:36:14 PM

Contributor
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2988

View Profile
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
Logged
Welcome to ENIGMO, the game engine built by fucking aliens.

Offline (Unknown gender) The 11th plague of Egypt
Reply #8 Posted on: October 22, 2014, 02:15:20 AM
Member
Joined: Dec 2009
Posts: 284

View Profile
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/
Logged
Offline (Unknown gender) TheExDeus
Reply #9 Posted on: October 25, 2014, 03:40:18 PM

Developer
Joined: Apr 2008
Posts: 1886

View Profile
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.
Logged
Offline (Male) Goombert
Reply #10 Posted on: October 25, 2014, 04:04:40 PM

Contributor
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2988

View Profile
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.
Logged
Welcome to ENIGMO, the game engine built by fucking aliens.

Offline (Unknown gender) TheExDeus
Reply #11 Posted on: October 26, 2014, 12:44:28 PM

Developer
Joined: Apr 2008
Posts: 1886

View Profile
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.
Logged
Offline (Male) Goombert
Reply #12 Posted on: October 26, 2014, 07:27:26 PM

Contributor
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2988

View Profile
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
Logged
Welcome to ENIGMO, the game engine built by fucking aliens.

Pages: [1]
  Print