gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS Misc > java to nds

#79471 - SickNalzic - Thu Apr 13, 2006 10:10 pm

Hi! This is my first post so don't be too hard :P

I wanted to know if its possible to convert a game I made in java into a nds rom. Even if the ds isn't powerful enough to play a java game I was thinking maby a small one? Or a program to convert the java code into nds code?

Im not too sure if this is possible, I just thought it would be cool to play a game I made on my ds.

Thanks!

#79473 - Linkiboy - Thu Apr 13, 2006 10:19 pm

Let me take a guess... G-java?

But to answer your question: I don't think so. I think the dev kits only work with ASM and C/C++.

Correct me if I'm wrong...

#79474 - Sausage Boy - Thu Apr 13, 2006 10:22 pm

With a lot of work, perhaps, but it would be easier to rewrite it for the DS anyways.
_________________
"no offense, but this is the gayest game ever"

#79481 - SickNalzic - Thu Apr 13, 2006 11:27 pm

Oh well... Maby someday...

Thanks for your help

#79622 - Sappharad - Fri Apr 14, 2006 5:21 pm

What's stopping the ARM version of GCJ from generating native code for the DS? A lack of common linux libraries?

It's obvious that a Java VM is out of the question, but it seems to me that if someone can cross-compile gcc for DS, I dont see why GCJ wouldn't be feasble without a little work. (Although I've never gotten GCJ to work on my own PC, so I'm probably not in a good position to question this)

#79666 - tepples - Sat Apr 15, 2006 3:13 am

Sappharad wrote:
What's stopping the ARM version of GCJ from generating native code for the DS? A lack of common linux libraries?

If Classpath depends on POSIX and X11 functionality that is not implemented in newlib, then yes. Such a dependency is likely.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#79732 - Ant6n - Sat Apr 15, 2006 5:40 pm

welll i am not so sure it would never work
i tried to search into it, but it is pretty hairy (the wikipedia entry for virtual machines is a good start)... so ill stick to c
- even though java is a pretty nice language