Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Java SE 6 or 7?  (Read 1697 times)
0 Members and 1 Guest are viewing this topic.
Offline HeroesGraveDev

JGO Kernel


Medals: 310
Projects: 11
Exp: 3 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Posted 2013-08-09 07:41:51 »

Well, I recently installed Arch Linux, and am now ready to continue development (starting with a pixel/programmer-art application Cool).
The only Java available from the Arch official repositories is SE7.

While I can install Java 6 with a little more work, I'm wondering if I should.

Since Mac+LWJGL+Java 7 is working, is it safe a good idea to switch (back) to Java 7? or is it not widely used enough yet?

Offline SHC
« Reply #1 - Posted 2013-08-09 07:59:06 »

Install which version is available in your distro and you can target a lower version since I too think that Java 7 is still not widely used yet. I always target the least version of java I had to check in eclipse but my JDK is version 8. Here's some reasons for not using the latest java in user's type of mind.

  • Java 7 is larger than Java 6 in size. So it works better.
  • There are security issues appeared in Java 7. Oracle is issuing updates more frequently and those downloads eat my bandwidth. So I'd better stick with Java 6.
  • Java 6 is what came with my OS X. Java 7 is from oracle but 6 is from the apple. Apple's implementation is generally better on os x since they are the creators of the os itself. (I experienced this in OS X Mountain Lion 10.8.3 recently. When I opened JAR launcher, it opened with Java 6)

These are the main reasons. Also an article Choosing between Java version 6 or 7 stated "When it comes to Java, the latest is probably not the greatest."

So install a newer version if you have to but deploy to an older JVM.

Offline HeroesGraveDev

JGO Kernel


Medals: 310
Projects: 11
Exp: 3 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #2 - Posted 2013-08-09 08:34:16 »

Java 6 it is then.

Now I need to do a bit of hacking around to install Java 6...
I love Arch Linux. Wink

EDIT: Eclipse says I need a compatible JVM for 1.6 compliance. Not sure what that means though. Whether it means Java 7 is compatible and works, or is warning me to install Java 6.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline 65K
« Reply #3 - Posted 2013-08-09 09:00:43 »

A good reason to no longer use Java 6 is that it is out of support.

Offline princec

« JGO Spiffy Duke »


Medals: 435
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #4 - Posted 2013-08-09 09:24:14 »

We're transitioning to Java 7 only. We will ultimately drop support for OSX10.6 or below in order to do this. It's getting a little long in the tooth though.

Cas Smiley

Offline deathpat
« Reply #5 - Posted 2013-08-09 11:27:53 »

We're transitioning to Java 7 only. We will ultimately drop support for OSX10.6 or below in order to do this. It's getting a little long in the tooth though.

Cas Smiley

Is there something wrong with Java7 + OSX10.6 ? I though that the latest LWJGL fixed the issues of java7 and OSX.

work in progress : D A E D A L U S
Offline princec

« JGO Spiffy Duke »


Medals: 435
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #6 - Posted 2013-08-09 11:44:40 »

Java7 just doesn't run on OSX10.6 or below.

Cas Smiley

Offline nsigma
« Reply #7 - Posted 2013-08-09 13:03:10 »

A good reason to no longer use Java 6 is that it is out of support.

Not this one again!  Roll Eyes  Particularly given that the OP mentioned Linux, this statement is incorrect.  Free support for Oracle's proprietary Java 6 is ended (though not paid support), but that doesn't apply to either OpenJDK or (I believe) Apples's JDK.

Mind you, a recent security update of OpenJDK 6 completely broke things - multiple EDT's at once anyone?  Shocked


Praxis LIVE - open-source intermedia toolkit and live interactive visual editor
Digital Prisoners - interactive spaces and projections
Offline Z-Man
« Reply #8 - Posted 2013-08-09 18:34:43 »

Java 6 it is then.

Now I need to do a bit of hacking around to install Java 6...
I love Arch Linux. Wink

EDIT: Eclipse says I need a compatible JVM for 1.6 compliance. Not sure what that means though. Whether it means Java 7 is compatible and works, or is warning me to install Java 6.
Java 1.7 will work, however the correct practice for compiling towards older bytecode is to use the -source setting for the older version and to set the bootclasspath to compile against the older version of rt.jar. However if you don't point the bootclasspath to the older JDK javac will do it's best to use the old language rules combined with the new libraries which can cause subtle bugs and bytecode that points to code that doesn't exist in the older libraries. (Source for that info) Now since that is just a warning you can probably get away with it and I never experienced any issues. However since I use an ant script to build my projects for actual deployment I just installed the latest JDK 6 build and told my ant script to run using that instead of JDK 1.7.
Offline ReBirth
« Reply #9 - Posted 2013-08-10 02:43:03 »

I use 7 only. I don't like having multiple instance of JDK installation.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline deathpat
« Reply #10 - Posted 2013-08-14 12:46:35 »

Java7 just doesn't run on OSX10.6 or below.

Cas Smiley

Thanks a lot, I didn't know that ... this allowed me to understand why my game was not running on OSX 10.6 and older versions Smiley

work in progress : D A E D A L U S
Offline ReBirth
« Reply #11 - Posted 2013-08-15 02:38:57 »

Java7 just doesn't run on OSX10.6 or below.

Cas Smiley

Thanks a lot, I didn't know that ... this allowed me to understand why my game was not running on OSX 10.6 and older versions Smiley
Just set your compilation target 1.6 on Eclipse.

Offline jonjava
« Reply #12 - Posted 2013-08-15 04:41:47 »

You're going to need a 1.6 jdk installed though, iirc.

Offline gouessej
« Reply #13 - Posted 2013-08-15 10:24:15 »

nsigma wrote a bug report about a very big regression in OpenJDK 1.6, a real nightmare, several event queues, ... Sad

Rather use OpenJDK 1.7.

Offline deathpat
« Reply #14 - Posted 2013-08-15 10:36:53 »

Thanks a lot, I didn't know that ... this allowed me to understand why my game was not running on OSX 10.6 and older versions Smiley
Just set your compilation target 1.6 on Eclipse.
The problem is that I was trying to run the game with an embedded JRE 7 under OSX 10.6 which just failed to create the display ( the rest was surprisingly working ... ). I was already compiling in 1.6 so it was just a matter of JRE. Now for OSX I use the default system JRE for OSX 10.6 and lower, and my embedded JRE 7 for OSX 10.7 and higher Smiley

work in progress : D A E D A L U S
Offline princec

« JGO Spiffy Duke »


Medals: 435
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #15 - Posted 2013-08-15 10:38:53 »

Exactly what we do (have a look at our Mac downloads - nifty self-expanding JRE etc with fallback)

Cas Smiley

Offline deathpat
« Reply #16 - Posted 2013-08-15 10:46:24 »

Exactly what we do (have a look at our Mac downloads - nifty self-expanding JRE etc with fallback)
Cas Smiley

Yep in fact I already have and got a lot of inspiration from your Droid assault launch script Smiley I did not do the self expanding JRE thing as the game size will be quite huge for me anyway

work in progress : D A E D A L U S
Offline gouessej
« Reply #17 - Posted 2013-08-15 11:07:16 »

The problem is that I was trying to run the game with an embedded JRE 7
By the way, I plan to use an embedded JRE too, JogAmp Runtime Environment alias Project Ji Gong, based on OpenJDK 1.8 EA. Yeah! I'm gonna set fire to AWT  Grin

Offline ReBirth
« Reply #18 - Posted 2013-08-16 02:57:50 »

Now you mentioned it. It's not only 6 or 7 anymore, don't forget the 8 Emo

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (37 views)
2014-12-15 09:26:44

Mr.CodeIt (31 views)
2014-12-14 19:50:38

BurntPizza (62 views)
2014-12-09 22:41:13

BurntPizza (99 views)
2014-12-08 04:46:31

JscottyBieshaar (60 views)
2014-12-05 12:39:02

SHC (74 views)
2014-12-03 16:27:13

CopyableCougar4 (77 views)
2014-11-29 21:32:03

toopeicgaming1999 (138 views)
2014-11-26 15:22:04

toopeicgaming1999 (127 views)
2014-11-26 15:20:36

toopeicgaming1999 (38 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!