Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (576)
games submitted by our members
Games in WIP (498)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2
  ignore  |  Print  
  Can't get anything to work on a mac  (Read 4805 times)
0 Members and 1 Guest are viewing this topic.
Offline MetalBeetle

Senior Newbie





« Posted 2010-12-03 13:16:16 »

None of the applets on the 4k website work on my OS X 10.5 Intel MacBook, and the only minification I can get to work is ProGuard - no Pack200 or anything thelike. Sad

Any tips from fellow mac developers?
Offline princec

JGO Kernel


Medals: 282
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #1 - Posted 2010-12-03 16:05:34 »

What version of Java is it running?

Cas Smiley

Offline MetalBeetle

Senior Newbie





« Reply #2 - Posted 2010-12-03 17:24:08 »

What version of Java is it running?

Cas Smiley

1.5.0_26 from Apple Inc.

I consistently get the following error on Firefox 3.6.12 as well as Chrome and Safari:
General exception:
java.lang.ClassNotFoundException: V.class
   at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
   at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:145)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
   at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:667)
   at sun.applet.AppletPanel.createApplet(AppletPanel.java:786)
   at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1873)
   at jep.AppletFramePanel.createApplet(Unknown Source)
   at sun.applet.AppletPanel.runLoader(AppletPanel.java:715)
   at sun.applet.AppletPanel.run(AppletPanel.java:369)
   at jep.AppletFramePanel.run(Unknown Source)
   at java.lang.Thread.run(Thread.java:655)

I have also had no luck getting a homemade pack200'ed applet to load.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 70
Projects: 15


★★★★★


« Reply #3 - Posted 2010-12-03 17:29:29 »

Minimum requirements for this years contest are Java 1.6/6.0, so its likely many will compile for that version.

If your on OS X 10.5 64bit Apple provide a Java 1.6 build which you should install.
Offline MetalBeetle

Senior Newbie





« Reply #4 - Posted 2010-12-03 18:01:20 »

Minimum requirements for this years contest are Java 1.6/6.0, so its likely many will compile for that version.

If your on OS X 10.5 64bit Apple provide a Java 1.6 build which you should install.

Ah, but none of the applets on the 4k page work, even the 1.5 ones like VVVV. I have the 1.6 Java, but it seems to be very difficult to convince any browser to use it.
Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #5 - Posted 2010-12-03 18:54:17 »

I know Java 1.5 on the Mac doesn't support plugin2 and hence doesn't read the html parameter telling java to get the pack200 version.  I'm not certain that Java 1.6 on the Mac supports the parameter either.  Ideally Java4k.com should support the pack200 protocol introduced with 1.5 as that does work on the Mac - I'm doing exactly that for testing my 4k entry for this year so it definitely can be made to work. I host the applet on my PC running Tomcat server and my Mac fetches Java 1.5 applets just fine.

Time flies like a bird. Fruit flies like a banana.
Offline appel

JGO Wizard


Medals: 49
Projects: 5


I always win!


« Reply #6 - Posted 2010-12-03 20:28:46 »

It is beyond my comprehension why you would need a special addon in the web server in order to serve STATIC content! Only Sun could have created such nonsense, a nightmarish scenario of incompatibility and non-supported features, bound to invoke terror in the minds of sys admins.

I've googled these keywords, "pack200 apache", and I haven't found anything that hints what I need to do in my apache beyond what is already done, adding the correct http headers.

And the problem goes on unsolved...  Undecided

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 605
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #7 - Posted 2010-12-03 20:56:15 »

Just write a PHP script that does something like this persecutioncomplex


1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
         $resourceBase = '/absolute/path/to/files/';
         $path = $_GET['path'];
         if(strpos($path, "..") !== FALSE) die('boo');
         if(strpos($path, "/") !== FALSE) die('boo');
         if(strpos($path, "\\") !== FALSE) die('boo');

         $ae = $_SERVER['HTTP_ACCEPT_ENCODING'];

         if ($ae != null && strpos($ae, "pack200-gzip") !== FALSE)
         {
            $file = $resourceBase . $path . ".pack.gz";
            header("Content-Encoding: pack200-gzip");
         }
         else
         {
            $file = $resourceBase . $path . ".jar";
         }
         // stream contents of $file to browser


Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline pjt33
« Reply #8 - Posted 2010-12-03 22:09:01 »

I've googled these keywords, "pack200 apache", and I haven't found anything that hints what I need to do in my apache beyond what is already done, adding the correct http headers.
What's already been done? It's definitely not to spec, because it sends me a pack200-gzip even if I don't send an Accept-Encoding header (or if I send Accept-Encoding: none).

http://www.thrysoee.dk/pack200/ seems fairly straightforward, although I admit that I haven't tested it.
Offline pelle

Senior Member


Medals: 3
Projects: 1



« Reply #9 - Posted 2010-12-03 22:28:49 »

My first post here (just registered to follow the discussions about java4k 2011).

I have Snow Leopard and it came with Java 1.6 (don't ask me too many technical details though since I have been a Mac owner for about 48 hours and have never used OS X before).

Tried the two games (Before Z and Shrincube) in Safari and neither started. However in Opera both started (although both ran terribly throw; that might be because this computer is busy doing some updates).

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Groboclown
« Reply #10 - Posted 2010-12-03 22:42:33 »

Tried the two games (Before Z and Shrincube) in Safari and neither started. However in Opera both started (although both ran terribly throw; that might be because this computer is busy doing some updates).
I just switched these over from using "X.class" to just "X", based on comments from other threads.  Can you test to see if this works on Safari?

Offline pelle

Senior Member


Medals: 3
Projects: 1



« Reply #11 - Posted 2010-12-03 22:54:52 »

I just switched these over from using "X.class" to just "X", based on comments from other threads.  Can you test to see if this works on Safari?

Both games work fine for me now.
Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 12


Game Engineer


« Reply #12 - Posted 2010-12-03 23:34:16 »

Both games work fine for me now.
They still don't work for me, unfortunately. I wonder if Java version 1.6 has issues?

See my work:
OTC Software
Offline pjt33
« Reply #13 - Posted 2010-12-03 23:39:09 »

What's already been done? It's definitely not to spec, because it sends me a pack200-gzip even if I don't send an Accept-Encoding header (or if I send Accept-Encoding: none).
On second thoughts that's probably because the .jar doesn't exist. If the server is going to do things properly then I think you need either the upload page or a cron job to take uploaded .pack.gzs and convert them back into normal jars. Sigh. It's never simple, is it?
Offline michael bliem

Senior Newbie





« Reply #14 - Posted 2010-12-14 19:59:19 »

same problem here, almost all games dont work on my mac...

core2duo
3gb ram
snow leopard
java 1.6
firefox and safari


Offline kappa
« League of Dukes »

JGO Kernel


Medals: 70
Projects: 15


★★★★★


« Reply #15 - Posted 2010-12-14 20:14:23 »

you could try enabling/disabling out of process applets to see if it helps.

Do this by clicking Applications -> Utilities -> Java Preference -> select Out of Process or Within Browser Process, settings to see if it helps.
Offline DzzD
« Reply #16 - Posted 2010-12-14 22:04:18 »

[size=8pt]Once again Java compatibility seems to moving forward....[/size]

 Undecided

Offline michael bliem

Senior Newbie





« Reply #17 - Posted 2010-12-14 22:05:43 »

you could try enabling/disabling out of process applets to see if it helps.

does not help...

there are working applets, maybe the coders of these applets could tell about how they make their apps mac-compatible!!?

working on my mac
4Kanabalt (what went wrong in firefox?)
CraftCraft
Mage Wars
Oh My Glob!
Before Z
ShrinCube
Graveyard 4k

error
Shift4k
Castlevania 4K
Super Mario Land 4K
Demon Attack 4K
Keystone Kapers 4K
Gradius 4K
Out Run 4K (please make it work on mac!!!)
Wolfenstein 4K
Jackal 4K

Offline Groboclown
« Reply #18 - Posted 2010-12-16 20:07:15 »

kevglass et al, can you enlighten us as to what you did differently than what's in the Applet Template post?

Offline Eli Delventhal

JGO Kernel


Medals: 42
Projects: 12


Game Engineer


« Reply #19 - Posted 2010-12-17 01:12:25 »

I think maybe they just draw directly to the graphics context instead of swapping from another context?

See my work:
OTC Software
Offline Damocles
« Reply #20 - Posted 2010-12-17 03:36:06 »

As for CaftCraft, I used a normal Jar.

Maybe you have a problem loading the pack200.gz format

Offline Groboclown
« Reply #21 - Posted 2010-12-17 16:22:39 »

I think maybe they just draw directly to the graphics context instead of swapping from another context?

I just tried this out on Before Z, with the test at:

http://groboclown.net/games/beforez-4k.html

Can someone who was having issues with the version out at java4k.com check if this version works?

Offline Groboclown
« Reply #22 - Posted 2010-12-18 06:13:08 »

I also have 3 different versions of the Graveyard, which use slightly different methods for attempting to render an int-array backed image to the screen:

http://groboclown.net/games/gr/graveyard-test0.html

(the links at the top select between the 3 tests)

Offline michael bliem

Senior Newbie





« Reply #23 - Posted 2010-12-18 11:20:18 »

still white only
Offline Groboclown
« Reply #24 - Posted 2010-12-19 04:24:12 »

I think I found the problem - I wasn't waiting for the applet to become active before starting the run() method.  I hope these are working on Mac now:

Before Z
ShrinCube
Graveyard 4k

Thanks to everyone who's helping me work through these issues.

Offline michael bliem

Senior Newbie





« Reply #25 - Posted 2010-12-19 12:54:27 »

works now on my mac Smiley
Offline zeroone
« Reply #26 - Posted 2010-12-20 17:40:38 »

Quote
Just write a PHP script that does something like this

Riven,

I have very little knowledge of PHP, but if you combine your code snippet with something like this http://www.finalwebsites.com/forums/topic/php-file-download it may provide a solution for OS X users.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 605
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #27 - Posted 2010-12-20 17:55:53 »

Quote
Just write a PHP script that does something like this

Riven,

I have very little knowledge of PHP, but if you combine your code snippet with something like this http://www.finalwebsites.com/forums/topic/php-file-download it may provide a solution for OS X users.
I think appel should do that, not me.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Mike

JGO Wizard


Medals: 69
Projects: 2
Exp: 5 years


Java guru wanabee


« Reply #28 - Posted 2010-12-20 19:20:01 »

Quote
Just write a PHP script that does something like this

Riven,

I have very little knowledge of PHP, but if you combine your code snippet with something like this http://www.finalwebsites.com/forums/topic/php-file-download it may provide a solution for OS X users.
I think appel should do that, not me.

"You" doesn't necessarily mean you Wink The lovely English language is to thank for that... Tip: Use "one" instead zeroone and you'll not get confusions

(Or zeroone actually meant you in which case you're right about pointing to appel Wink)

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 605
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #29 - Posted 2010-12-20 20:24:05 »

Offtopic:

Riven,

I have very little knowledge of PHP, but if you combine your code snippet
"You" doesn't necessarily mean you Wink

English isn't that hard after all eh? It boils down to logic.





Besides, the problem has been identified and solved:
works now on my mac Smiley

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Pages: [1] 2
  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.

xsi3rr4x (18 views)
2014-04-15 18:08:23

BurntPizza (15 views)
2014-04-15 03:46:01

UprightPath (28 views)
2014-04-14 17:39:50

UprightPath (13 views)
2014-04-14 17:35:47

Porlus (29 views)
2014-04-14 15:48:38

tom_mai78101 (54 views)
2014-04-10 04:04:31

BurntPizza (111 views)
2014-04-08 23:06:04

tom_mai78101 (212 views)
2014-04-05 13:34:39

trollwarrior1 (181 views)
2014-04-04 12:06:45

CJLetsGame (187 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
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!