The NEW Build Your Own Arcade Controls

Front End Support => MaLa Frontend => Topic started by: mike_bike_kite on January 06, 2010, 09:53:48 am

Title: Can I run a Java game from Mala
Post by: mike_bike_kite on January 06, 2010, 09:53:48 am
I'm very happy with my mame cab (http://www.bikesandkites.com/mame2.html) and very happy with the Mala front end but just wondered whether I can get it to run a java game applet I recently wrote. I quite fancied having a go at writing a retro style shoot them up and it plays fine in a browser but I just wasn't sure whether I could run it from Mala.

I packaged it as a jar file so all the sounds and images are in one file. I wasn't sure what resolution to go for as I was half thinking of trying to get it to run on a phone/pda as well. Could I run it from a DOS command in Mala? Any suggestions welcome :)

Mike

PS Not sure if it helps but this is the game (http://www.checkmypages.com/swarm/) as it stands.
Title: Re: Can I run a Java game from Mala
Post by: Bobulus on January 07, 2010, 12:48:15 am
It's been a while since I messed with java apps (and I'm at work, so I can't test it myself), but you can launch a windows shortcut in Mala, so if you can get a shortcut working for your app, that should work.

Double-clicking a .jar file launches it, right? (assuming you've got your PATH set up right to point to the java executable).
Title: Re: Can I run a Java game from Mala
Post by: Space Fractal on January 07, 2010, 05:22:35 am
I think propenty a wrapper in Purebasic could do that, so its change resoulution to the lowest possible, create some sort of html code and then start the applet and also let the wrapper auto click on that applet?

I have done some java games years ago as well, but not 100% arcadecab friendly.

Title: Re: Can I run a Java game from Mala
Post by: mike_bike_kite on January 07, 2010, 07:35:26 am
Space Fractal : Afraid I don't really know PureBasic so that might be difficult. Truth be told I'm not an expert Java programmer either - I'm still trying to get the Java Jar file to work!

Bobulus : How do you launch a windows shortcut from Mala? My cab is running Win98 - what might I need to install to get this to work.

Any idea of what resolution and screen size mame games need to be?

Cheers for input.

Mike
Title: Re: Can I run a Java game from Mala
Post by: Bobulus on January 07, 2010, 10:12:56 am
Bobulus : How do you launch a windows shortcut from Mala? My cab is running Win98 - what might I need to install to get this to work.

I just read this thread yesterday, so it's fresh in my mind. :)
http://forum.arcadecontrols.com/index.php?topic=82972.0 (http://forum.arcadecontrols.com/index.php?topic=82972.0)

Windows 98 shouldn't matter.
Title: Re: Can I run a Java game from Mala
Post by: SGT on January 07, 2010, 10:38:36 pm
Just browse out and set the executable to javaw.  Mine was here:
Code: [Select]
C:\Program Files\Java\jre6\bin\javaw.exe
Set your rom extension to jar

Set your command line to:
Code: [Select]
-jar "%path%\%rom%.%ext%"
Make sure you refresh the main game list after all settings changes.

Tested and it works for me for all jar files.
Title: Re: Can I run a Java game from Mala
Post by: mike_bike_kite on January 08, 2010, 03:44:54 am
Cheers folks - I'll try these suggestions out this weekend.

Mike