Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (525)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (594)
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  
  Distribution on Mac  (Read 1246 times)
0 Members and 1 Guest are viewing this topic.
Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Posted 2004-02-27 06:30:38 »

Not knowing much about Mac, say I want to create a downloadable version of my game for mac. What would be the way?
Can I just create an executable jar? Where do I put the native library: Just next to the jar like on windows, or can I also put it in the jar?

Erik

Offline princec

« JGO Spiffy Duke »


Medals: 422
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #1 - Posted 2004-02-27 10:02:18 »

I'd love to help but I don't really know Tongue I got a friend to do it. Have a look in http://www.puppygames.net/downloads/alienflux.sit and see how it works. (Needs stuffit 8.02 or later)

Cas Smiley

Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #2 - Posted 2004-02-27 11:45:21 »

Don't go by that AlienFlux example - I'm going to make a better package for him Smiley.  (waiting for the newer LWJGL).  It works but isn't the best way.

There are articles on packaging for the Mac here:
http://java.sun.com/developer/technicalArticles/JavaLP/JavaToMac3/

You put the native libs in the Resources/Java folder of you application package.

Send me the files (include mac native code) and I can package it for you. (scott dot palmer at 2connected dot org)
Make a nice 32-bit 128x128 icon (PNG, TIFF, whatever) and I can have a nice app ready with simple drag-n-drop install.

I've managed to do this for AlienFlux and a Xith3D app that is in beta and it isn't very hard at once you know how OS X expects things.

All you need is the icons file, any native libs, and the java stub launcher that apple provides and you can make a Mac application package on Windows and just zip it up.  But usually applications are distributed as Mac OS X disk images (.dmg).

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

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #3 - Posted 2004-02-27 12:41:13 »

Thanks  Cheesy

Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #4 - Posted 2004-03-01 05:29:41 »

So swpalmer has been very helpful in trying to get a mac distro of CT running.
But.... it doesn't work! The webstart version 'kinda' works (no input).  The offline version simply hangs.
The problem seems resource loading.

For example:

1  
2  
URL url = this.getClass().getClassLoader().getResource("music.wav");
music= Applet.newAudioClip(url);


This hangs on the last line. No exceptions, no errors: the JRE just locks up  Embarrassed. We tried to simply disable the music to see how for it gets. Then it hangs in loading the 1st texture. Also with getResource().
I think there is a general problem with using getResource() here to load resources which is platform dependant (it all works on windows).

Anybody else stumbled across such a problem?

Erik

Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #5 - Posted 2004-03-01 10:57:30 »

Just to clarify.  The code segment above worked fine on it's own in a test case.  But as part of Cosmic Trip it locks up...  Very odd.   This happens when I launch from the command line, or from an app bundle.  The WebStart version doesn't have problems loading resources.  I can't think of any reason for WebStart to be successful and the other two methods to fail.  Specially when a simple test case to play the audio clip (which loads from the exact same jar as when it is in CT) works fine from both the command line and the app bundle.. with the exact same project - I just changed the main class within CT to test it.

There is a try/catch surrounding the code - but it dumps the exception info to the console, and no such info is printed.  The application does not exit - it must be forced to terminate.  The code is still single threaded at the point in which it fails, so threading deadlocks (caused by CT code) should not be an issue.

I'm running out of ideas.

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.

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

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

toopeicgaming1999 (14 views)
2014-11-26 15:20:08

SHC (27 views)
2014-11-25 12:00:59

SHC (25 views)
2014-11-25 11:53:45

Norakomi (31 views)
2014-11-25 11:26:43

Gibbo3771 (25 views)
2014-11-24 19:59:16

trollwarrior1 (38 views)
2014-11-22 12:13:56

xFryIx (77 views)
2014-11-13 12:34:49

digdugdiggy (55 views)
2014-11-12 21:11:50
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!