Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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  
  Applets only supporting Java 1.6 an above  (Read 2634 times)
0 Members and 1 Guest are viewing this topic.
Offline rackham

Junior Duke





« Posted 2009-04-21 10:47:02 »

Hello everyone!

Before i ask my question I want to say im very happy to discover this forum, i didn't know a popular java games forum existed, i shouldve looked i guess!

Anyway, being very new to online java games development, i have a question.

In my applet i have used classed which are new to Java 1.6, the SwingWorker for one example. Currently I have a small bit of code that checks the java version installed on the computer, if it's < 1.6 then it will trigger a download of the latest java version (using the deployment toolkit provided on the sun site).

What i want to ask is would there be some users who would find this annoying, do some people prefer to keep a few versions back?

Also I heard that the Mac JVM has differnt version numbers, would the current mac jvm support all the classed in Java 1.6?

Sorry if any of these questions are stupid! Huh

Thanks for any help!

Offline DzzD
« Reply #1 - Posted 2009-04-21 10:51:55 »

Quote
What i want to ask is would there be some users who would find this annoying, do some people prefer to keep a few versions back?

a little more than 50% users should have 1.6 or over, IMO a cupple of people may quit if they have to install anything

Quote
Also I heard that the Mac JVM has differnt version numbers, would the current mac jvm support all the classed in Java 1.6?
Mac can report 1.8 version wich is inded wrong

Offline rackham

Junior Duke





« Reply #2 - Posted 2009-04-21 11:11:04 »

Hiya, thanks for the reply.

I wonder if the deployment toolkit takes into account download the right JVM for the mac, i would image so but ill have to check it out....

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline zammbi

JGO Coder


Medals: 4



« Reply #3 - Posted 2009-04-21 11:19:51 »

32bit macs can only use Java 1.5 so a lot of people with macs can't use Java 1.6.

Current project - Rename and Sort
Offline rackham

Junior Duke





« Reply #4 - Posted 2009-04-21 12:21:38 »

really?!  Why is that?

So if i want to support those people i have to remove my swingworkers? ~damn

I presumed that regardless of the Java version  currently installed (if any) everyone would at least have the ability to upgrade to latest version, i guess that was an incorrect assumption? Undecided


Offline rackham

Junior Duke





« Reply #5 - Posted 2009-04-21 12:38:52 »

im about to ask a (maybe) very stupid but related question. So my applet runs on java 1.5 whats to stop me taking the binarys of the swingworker class from jre 1.6 and dumping them in my applets jar file, Then recompiling the jar then with 1.5 compatibility?

Offline zammbi

JGO Coder


Medals: 4



« Reply #6 - Posted 2009-04-21 12:40:30 »

Quote
Posted by: rackham
Insert Quote
really?!  Why is that?

So if i want to support those people i have to remove my swingworkers? ~damn

If you want to support a lot of macs then you will have to support Java 1.5.
Maybe someone else can go into details why. But I heard its because they only ported the server version of Java which only came in 64bit.

Current project - Rename and Sort
Offline jezek2
« Reply #7 - Posted 2009-04-21 23:58:01 »

Just use backport of SwingWorker: https://swingworker.dev.java.net/
Similarly if you're using GroupLayout: https://swing-layout.dev.java.net/ (NetBeans will bundle it automatically when you select it in form properties)

For general applications it's still better to use 1.5 as a minimal target these days.
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #8 - Posted 2009-04-22 00:10:37 »

The main reason is because Apple cares more about the iPod than it does Mac OS X these days.

See my work:
OTC Software
Offline DzzD
« Reply #9 - Posted 2009-04-22 06:53:28 »

Just use backport of SwingWorker: https://swingworker.dev.java.net/
Similarly if you're using GroupLayout: https://swing-layout.dev.java.net/ (NetBeans will bundle it automatically when you select it in form properties)

For general applications it's still better to use 1.5 as a minimal target these days.


this is all a matter of compatibility ....
1.6 => approx 50 %
1.5 => approx 65 %
1.4 => approx 70 %
1.1 => approx 90 % (from different source)

http://www.riastats.com/

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline rackham

Junior Duke





« Reply #10 - Posted 2009-04-22 07:43:37 »

but those figures represent the current install version as opposed to the highest version permitted by the users system. I have no issues which saying to the user they need to upgrade their JVM to a newer version, but if that version is higher than the users system can support it would be a bit of a bummer!

good stats site...

Offline rackham

Junior Duke





« Reply #11 - Posted 2009-04-22 07:44:20 »

ps.. thanks for all the replys, ill look into the swingworker backport in a min....

looking at the RIASTATS site posted above, it reports x amount of users with java 1.8 installed, i didnt realise there was 1.8!??! I saw 1.7 was on an early look release, whats going on?

Offline zammbi

JGO Coder


Medals: 4



« Reply #12 - Posted 2009-04-22 08:07:41 »

a little more than 50% users should have 1.6 or over, IMO a cupple of people may quit if they have to install anything
Mac can report 1.8 version wich is inded wrong

Current project - Rename and Sort
Offline rackham

Junior Duke





« Reply #13 - Posted 2009-04-22 08:11:29 »

ah yes sorry!

I have an information rentention problem...

Offline rackham

Junior Duke





« Reply #14 - Posted 2009-04-22 11:52:19 »

are 32 bit macs running < OSX, i cant see any mac OS stats on what sort of % of mac owners would fall into this catagory..

Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 11
Exp: 10 years


Game Engineer


« Reply #15 - Posted 2009-04-22 17:49:24 »

Most of them. My laptop is only a year old and it doesn't even have 64 bit. I originally thought it did, but it definitely doesn't Anybody with a Mac newer than mine probably has 64 bit, but I'm guessing there will never be a time when there are a lot of Mac users with 1.6 Probably when 1.7 comes out we'll finally get an update, and that'll happen before 64-bit Intel's are the majority of the Mac market.

See my work:
OTC Software
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.

Longarmx (38 views)
2014-10-17 03:59:02

Norakomi (28 views)
2014-10-16 15:22:06

Norakomi (24 views)
2014-10-16 15:20:20

lcass (28 views)
2014-10-15 16:18:58

TehJavaDev (53 views)
2014-10-14 00:39:48

TehJavaDev (54 views)
2014-10-14 00:35:47

TehJavaDev (43 views)
2014-10-14 00:32:37

BurntPizza (64 views)
2014-10-11 23:24:42

BurntPizza (36 views)
2014-10-11 23:10:45

BurntPizza (78 views)
2014-10-11 22:30:10
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

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!