Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Can I run a Java game from Mala  (Read 2765 times)

0 Members and 1 Guest are viewing this topic.

mike_bike_kite

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 101
  • Last login:January 07, 2023, 05:16:39 am
Can I run a Java game from Mala
« on: January 06, 2010, 09:53:48 am »
I'm very happy with my mame cab 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 as it stands.

Bobulus

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 165
  • Last login:July 11, 2014, 10:42:28 am
Re: Can I run a Java game from Mala
« Reply #1 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).

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Can I run a Java game from Mala
« Reply #2 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.

Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

mike_bike_kite

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 101
  • Last login:January 07, 2023, 05:16:39 am
Re: Can I run a Java game from Mala
« Reply #3 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

Bobulus

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 165
  • Last login:July 11, 2014, 10:42:28 am
Re: Can I run a Java game from Mala
« Reply #4 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

Windows 98 shouldn't matter.

SGT

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1146
  • Last login:May 31, 2025, 10:10:32 pm
Re: Can I run a Java game from Mala
« Reply #5 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.

mike_bike_kite

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 101
  • Last login:January 07, 2023, 05:16:39 am
Re: Can I run a Java game from Mala
« Reply #6 on: January 08, 2010, 03:44:54 am »
Cheers folks - I'll try these suggestions out this weekend.

Mike