Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (497)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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 6 or 7? (Solved)  (Read 1619 times)
0 Members and 1 Guest are viewing this topic.
Offline Kurten

Junior Member


Medals: 3
Exp: 3 years


-w-


« Posted 2011-11-04 15:21:36 »

Hello JGO

I'm building an educational program in Java with secondary school students in focus. To be more precise, a program that explains math to em. When i started to work on this program Java 1.7 had just been released but no eclipse support for it and I don't like to work in netBeans. But now with the eclipse support I want to make use of java 1.7 stuff like switch statements for strings and the try with resource thingie, my problem is: Will a java 7 written program be of any use for students? Java 6 is installed on pretty much all computers i have seen so far. But i don't know how well java 1.7 has been welcomed by users, do you guys have any experience in this field? Do people use java 7 yet? if not, when will they start using it or will they skip it to go to java 8 that i have read somewhere will be released 2012?

//Kurten
Offline ra4king

JGO Kernel


Medals: 345
Projects: 3
Exp: 5 years


I'm the King!


« Reply #1 - Posted 2011-11-04 15:58:11 »

No you cannot run Java 7 programs on Java 6. However, you can install Java 7 on your computer and set Eclipse to make it compatible with Java 6. This is done by right-clicking the project, clicking on Properties, and choosing Java Compiler. Use the drop-down menu to choose the "Compiler Compliance Level".

EDIT: Also, Java 7 isn't even on www.java.com yet so it has not been pushed out to the general public yet.

Offline Kurten

Junior Member


Medals: 3
Exp: 3 years


-w-


« Reply #2 - Posted 2011-11-04 16:24:22 »

I see, thanks for the reply Smiley Do you have any idea if java 7 will be widely distributed in a couple of months or will it be a very slow process?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Cero
« Reply #3 - Posted 2011-11-04 16:53:07 »

since java 6 (openjdk6) is still default on linux - and switching it manually is just such a pain, I changed my code back to java 6

by now this only meant to change the string switch cases

but oh well... is it really that much nicer to use switch case instead of if else ?
you have to use break everytime and stuff...

so yeah I just switched back

other than that I like the 1_000_000 thing, but dont really use it yet
and well java7 is much faster they say, so when running (and when distributing a game with a private jvm) I choose java7

Offline JL235

JGO Coder


Medals: 10



« Reply #4 - Posted 2011-11-04 17:43:46 »

I see, thanks for the reply Smiley Do you have any idea if java 7 will be widely distributed in a couple of months or will it be a very slow process?
For schools, it will probably be at least another year, as lots of institutions upgrade their software during the summer holidays.

If you do chose to target 6, then I'd recommend developing on 6 too, instead of 7. Although you can set Java 7 to target Java 6, there is nothing to stop you accidentally using any new classes or methods which are exclusive to 7.

Offline Kurten

Junior Member


Medals: 3
Exp: 3 years


-w-


« Reply #5 - Posted 2011-11-04 18:11:14 »

@Cero: I prefer using switch statements over if else because i find it easier to organize without all the curly braces, just my personal opinion and it would be great to organize the contents of my program with switch statements since it uses a lot of strings. I want it to be easy and stable for the user, but on the same time i want to have a somewhat pleasant time coding the application.

@JL235: Thank you, i didn't know that about schools. It is settled then, i will continue using java 6 for this project, thanks Smiley
Offline JL235

JGO Coder


Medals: 10



« Reply #6 - Posted 2011-11-04 18:49:29 »

@JL235: Thank you, i didn't know that about schools. It is settled then, i will continue using java 6 for this project, thanks Smiley
np. I used to work part time for the Greenfoot team, which is also a Java application aimed at schools. Java 6 was released 5 years ago, yet they only officially switched from Java 5 to 6 earlier this year. Even then they still compile Greenfoot to target Java 5, as they still have users on that.

Offline ra4king

JGO Kernel


Medals: 345
Projects: 3
Exp: 5 years


I'm the King!


« Reply #7 - Posted 2011-11-04 21:53:12 »

My school's computers have been using Java 6u16 for years until they got new computers, which had 6u26! And the current version is 6u29 Cranky

If you really want to use the new features in Java 7, I suggest you distribute the JRE7 with your application and have a BAT file or an EXE file that runs your program Smiley

Offline TheCodingUniverse

Senior Newbie





« Reply #8 - Posted 2011-11-15 07:29:51 »

I recommend you stick with Java 6. Unless you really, really, want the new features provided by the Java 7 library, Java 6 is the better choice. Especially for schools, which always have a hard time upgrading their computers and software.

Oskar Veerhoek, founder of TheCodingUniverse.
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.

BurntPizza (22 views)
2014-09-19 03:14:18

Dwinin (35 views)
2014-09-12 09:08:26

Norakomi (62 views)
2014-09-10 13:57:51

TehJavaDev (88 views)
2014-09-10 06:39:09

Tekkerue (44 views)
2014-09-09 02:24:56

mitcheeb (65 views)
2014-09-08 06:06:29

BurntPizza (47 views)
2014-09-07 01:13:42

Longarmx (35 views)
2014-09-07 01:12:14

Longarmx (40 views)
2014-09-07 01:11:22

Longarmx (36 views)
2014-09-07 01:10:19
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

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!