This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

compiling Java  RSS feed

 
Sean McManus
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've found this great Java emulator for the Amstrad computer of the 80s:
http://jemu.emuunlim.com/

I'd like to be able to include it in my site so people can play the games I wrote then on my site. To be able to do that, I need to get a version of the applet downloaded which I can integrate in my site. I can't get it by just saving the page with the emulator on.

The source code is available for download, but I can't compile it. I rather gamely had a go by downloading the Java SDK from Sun and following their instructions for compilation, but there were problems that I think were related to the version of the SDK I was using.

This strikes me as the kind of thing that's probably a 15 minute job for someone who knows what they're doing but something which would take me a very long time to work out.

I was wondering whether anyone here can help me out with this.

Thanks in advance for any help on offer.

Sean
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sean,

Welcome to JavaRanch!

This looked pretty interesting. I downloaded the thing and compiled it easy enough; the web page says the code is in the public domain, so I posted a JAR file containing the classes at http://users.starpower.net/ejfried/JEMU.jar .

But when I ran it, it errored out because the source doesn't include the ROM image for the computer being emulated; those are copyrighted, of course. You're on your own, there.

Now, having gotten to this point, I went back to the web site and noticed that it hasn't been updated since 2002; but there are links to here which looks very much alive. It looks like the author abandonded JEMU and started over with this "WinApe" emulator, which isn't in Java.
 
Sean McManus
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ernest

Thanks for your posting. You're right that the author effectively stopped developing the Java emulator further, although it should still work. I'm particularly keen on the Java emulator because it can be integrated with my website without needing any downloads.

Amstrad has given permission for the Amstrad and Sinclair Spectrum ROMS to be freely copied for emulators, so it should be possible for me to track these down somewhere fairly easily. Having had a look at the source code again, it appears the ROMs are in the file downloaded at:
jemu\src\jape\cpc - for the CPC Roms

There is a set of files there with the .java extension which I would imagine would be the ROMs.

Now I've got the JAR file you've kindly compiled for me, what are the next steps for me in integrating this with my website? What additional files do I need to track down for example?

Thank you for your help! Much appreciated!

Sean
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!