Skip to main content

Compiling Java source code for use with BD-J

4 replies [Last post]
ps3user0001
Offline
Joined: 2008-07-18

I know of course that it is Java 1.3 that BD-J runs under. I have the source code of Javaboy, the game boy advanced emulator for Java. How would I compile it to be 1.3 Java or BD-J?

Quick answer appreciated. Absolute noob here.

Message was edited by: ps3user0001

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
chihiro_saito
Offline
Joined: 2006-11-08

Hi,

I had to look up the word "noob", out of curiosity. :-)

To answer your question - well, to compile java source to a java bytecode that's compatible with java 1.3, you just have to pass in "-source 1.3 -target 1.3" option to the javac compiler. Note that not all source files can work with this. For example, if the source uses a language feature or APIs introduced after jdk 1.3, then the compiler will error and exit.

However, I suspect there's some misunderstanding about BD-J and PS/3's Java. PS/3 supports Blu-ray Disc playback, and for playing back BD-J content, Java is used. Gaming support on PS/3 is entirely different, and I don't even know that part is using Java. If Javaboy is a game boy emulator, then it's not going to work for a BD playback in any case, and if you want it to emulate PS/3's gaming feature, then it's not BD-J and you don't need to worry about 1.3 Java, I believe. In other words, a gameboy emulator can't just morph into a BD-J emulator.

Best,
Chihiro

ps3user0001
Offline
Joined: 2008-07-18

In the last few days it was found that you could run homebrew games compiled in java language using AVCHD patched for PS3. It was successfully shown playing the java game Blaster Bunny in the bonus section of a BD movie on a USB pen drive.

bddeveloper
Offline
Joined: 2008-01-14

There is a good amount of work to turn the code for JavaBoy if you are a good java developer there is nothing that is there that won't work as it is a 1.3 spec already and the core set of the code will run on a Blu-ray player. If you are a java developer, remove all traces of the AWT Visual components that are used for the applet, and you'll also need to create your own AWT component for the Cartridge object. If you can do this, you can run JavaBoy on the PS3.
Then add the ROM images to the Blu-ray disc and you are all set. If you begin this task let us know!

ps3user0001
Offline
Joined: 2008-07-18

Actually I have no idea how to do this as I said I am an absolute noob. Believe me if you were to do this with a nes, gba, snes and other emulators, post them on the ps3 scene you would be like a god. Somebody here with experience should do it :)