Has anyone got an application working on a Mac? (Not via a browser - but a normal fullscreen application with no 3rd party extensions).
Printable View
Has anyone got an application working on a Mac? (Not via a browser - but a normal fullscreen application with no 3rd party extensions).
It should work without any transparency problem (this was corrected in this build).
Thanks Francois :D
I haven't tested on a Mac yet (I will soon), but on my Windows XP, SP2 the full screen on and off, fade (both frame or active)and ink effect aren't working when I compile using Java Standalone... is this correct with the update or not 100% implemented yet?
Fades are not yet implemented.
Ink effects are impossible (they are just not present in the API).
Oh, I see... and the full screen? Thanks François!
Full screen is implemented.
Hmm it doesn't start in full screen (when the box is checked) here and doesn't accept the command fullscreen/windowed here. I can PM more info if needed.. I'll test on a Mac today and see what happens.
mmmm.. Java standalone didn't work on a Mac too. I'll see the info I can get.
What OS and version number should the Mac be running? Do Macs come with Java pre-installed?
You should update Java to the latest version on the Mac.
Switch from full screen to normal and vice versa cannot work in Java.
You should update Java to the latest version on the Mac.
Switch from full screen to normal and vice versa cannot work in Java.
Actually there was a bug in the runtime preventing the full screen if the application had a menu. It is corrected. In your case, to go fullscreen, untick the Display menu property in the application display page.
All version of OSX come with java, the software update tool in OSX always delivers the current stable builds of Java thereafter...
Great, thanks Isaac. That should make life a whole lot simpler :D
But Java 6 will only work on Intel Macs, on Leopard.
I've just downloaded the Java JRE from Sun, but it doesn't say anywhere which version it is.... Anyone know?
It should have told you when you downloaded it, or had a filename like jre1.6.0_05 or similar... if not, open a command prompt and type "java -version" to find out which one your computer is using.
Right, it's version 6. So no dice on OSX below Leopard (10.5) then :(
It does seem to be possible to download Java 5, but I'm not sure
1) if b248 Java apps will work with Java 5
2) what happens if you already have Java 6 on your PC - will it be overwritten and how will MMF know which one to choose.
3) what happens if someone running OSX Leopard tries running your Java 5 app.
I updated to the latest version here 1.6.0.06 and the full screen isn't working.. should I switch back to Java 1.5?Quote:
Originally Posted by Sarah
You can have multiple versions of Java installed at one time, but the one your computer uses is determined by the contents of the PATH and JAVA_HOME environment variables. (They're in Control Panel > System > Advanced, and using them you can switch the folder in which Java is looked for.)
Running a Java 5 application on lower JRE versions will either work or crash admirably with an exception saying that the program is incompatible, depending on its contents. However, Java 5 and 6 should (in theory) be fairly backwards-forwards compatible.
Francois, what version of Java are you expecting us to use to create MMF Java applications with?
I've just tried to run a java application on a G4, a dual processor G4, G5, and a 32-bit intel macbook. They ALL didn't work.
Java 6 (mac) is ONLY compatible with 64-bit Intel Macs (Not 32-bit!). This means that only the machines that cost £1000+ are compatible!
Francois needs to consider this as we would like to create applications that the mac community can benefit from too. No MAc user would spend £1000-2000 on a games machine. Those Macs are aimed at creative professionals and so represent a market not necessarily related to the games industry.
A version of Java that any G4 (for the last 10 years) can run is:
Java Version 1.5.0_13 (via Leopard).
We should target this version because as of the next mac os update next year (Snow Leopard) , apple is going to kill off support for a massive percentage of it's users by making the operating system Intel-Only.
To fully support mac systems of the last 10 years Clickteam must make sure that the Java runtime is compatible with version 1.5.0_13.
-Mel
Ah..
Actually, I just found an older Mac System and got it to work!
I used Mac OS X Server 10.4.11 which had Java version 1.5.0_13 ..
I think the other system I tested on had BETA versions of Java 6 which might have messed it up! Odd that 2 machines with Leopard didn't work though .. Will look into it more later! ;)
MAC BUGS:
- Background object doesn't display background (it does in Windows)
- Runs very Slooooowly! ;)
I can confirm (as Francois previously asked me) that the menu is inside of the window (as opposed to the mac menu on top of the screen).
JUST TO UPDATE:
I couldn't get the application to run in 10.5.2 Leopard (the new mac version). It does has Java 1.5.0_13 but I noticed it is an earler build than the same Java version on Mac OS 10.4.11 (Tiger).
Looks like Francois is going to run into some problems!
What's that famous Java phrase..? Build once, debug everywhere! LOL
-Mel ;)
Mel - what version of Java do you have on the machine you use to build your MMF Java apps? (I've been asked to get my stuff working on 80 macs running 10.4)
Did full screen work on OSX 10.4?
Almost - lol. Clicking the Green (Grow) button just makes the window grow to the size of the screen (minus the mac menu on top).
If that's what you're after then you're in luck.
Personally, I wouldn't even consider porting your apps to the mac yet. The Java runtime on the MAC is very slow (Even on relatively fast machines), and most extensions don't work.
I made a test app that has a character (Active object)and a background object that holds the background (though it's a large 1024x1024 image).
On the mac all that displays is the character. I can move him, and the events seem to be working such as follow the camera, etc.
but the background object's do not work, so it is very limited right now. I've also not managed to get WAV sounds to play.
But I was using Java 1.5.0_13 on Mac OS X Server 10.4.11. Hopefully it should be the same on 10.4.11 Client. Make sure you use software update to get all the latest Java Patches.
I found that the java files don't even run on Java 6. I suspect Francois has written them for Java 5 (which I believe is the default vesion of 10.4).
Go to your mac's Application Folder, then Utilities, then open Terminal.
in terminal, type the following command:
java -version
Paste what your terminal outputs here and I'll tell you if we're on the same page! ;)
-Mel
Well, I might be almost in luck. The app I'm experimenting on is 256 colours with one character and a few backdrops. Lots of wave samples though and some midi music.
Did you have Java 1.5.0_13 on your build machine too?
(I don't have a mac myself - those machines are in the States).
Ahh.. I havn't been able to get sounds to work yet.
Yes I have that version of Java on all my macs (We have 6! LOL) Though it only works on 10.4.11, not 10.5+.
Not sure why? It's either something clickteam is missing or Apple being very, very bad at supporting Java.. Probably a mix of both!
-Mel
The java runtime is compiled to run on Java 5 (source code compilance 1.5).
I did not expect it to work on PowerPC macs actually.
Slow: well I cant do anything about it. The Java runtime is a complex piece of code that does a lot of things at once.
On nowadays mac it runs fast with no problem.
Honestly, I do not know what I can do to make it run on the mac on which it does not. I have no macs, no mean of debugging. I am a bit stuck here.
A mini mac convention perhaps? :D Mel has loads of macs.
And thanks about the Java 1.5 info. That should be a sticky - if you go to the Sun site, you get version 6 by default.
But it shoudl work also on Java 1.6!!! 1.5 is the minimal version you need.
About the speed.
An application without menu, and without controls will run a lot faster than an application with a menu or controls.
I have done some modifications this morning that should accelerate greatly the speed of the runtime with menu and controls. But yet, it should stay slower than without.
I have not been able to get the java runtime to work AT ALL on my intel mac or a newer PowerPC on leopard .. The CRuntime app opens, but just hangs at the start until I force quit it.
It's strange .. I've only been able to get it to work on an older mac system but there are VISUAL bugs.
The Active Object seems to be fine (yet slower).
The Background object doesn't display at all but with the same .jar file on Windows it does.
To Sarah:
No worries! The problem (and the good thing) on the mac is that Sun doesn't control the runtime. Apple does. They've apparantly linked it to core componants in the operating system to make it run better... In our case it's not such a great thing!
I will investigate this next week. Seems strange, it used to work. What kind of application are you running?
May I suggest to Clickteam to invest in some (used) Mac machines? That's what I'll have to do when I'll release games for Mac.Quote:
Originally Posted by Francois
ebay! :P
Hehe, yes of course we'll do that Olivier. ;)
To Francois:
A simple app with:
-An active object (Standing and walking animations). Using default 8 directions. ( I think it had PNG transparency if that makes a difference?)
-A Background object displaying the backdrop.
(No events)
BTW:
I think I figured out why it was running so slowly on the mac! I think it has enabled anti-aliasing on the active object. (It wasn't set in my MMF project and works correctly in Windows). I took a screenshot and zoomed into the object with photoshop and confirmed that it had blended pixels around it.
Hopefully that will help you debug the slow-down problem on the mac side.. We still need to figure out what's going on with background object not displaying at all, as well as no leopard (MAC OS X 10.5) compatibility.
-Mel ;)
UPDATE:
The Java Web Applet's Work!
It's the Standalone Java .jar files that don't! Francois, have a look for any inconsistencies with your java standalone exporter and the web applet exporter!
-Mel ;)
I've also tried running a simple standalone java app on a recent intel mac running leopard, and I get the same CRuntime and have to force-quit that MelliGeorgiou mentionedd.
Arr, it feels so close!
Also, can't Ink effects in java be supported with Java's Graphics2D and AlphaComposite classes?
Thanks for working on a Mac solution, guys!
Build 248 Java crashes on Mac leopard. THis is corrected and will be made public in the next Java build.