forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

java on psp

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
kjeevah



Joined: 31 Mar 2005
Posts: 3

PostPosted: Thu Mar 31, 2005 6:22 am    Post subject: java on psp Reply with quote

hi

i dont really know what im talking about so feel free to flame me if its all a load of arse but anyway..

you can now use a web browser via wipeout pure, right? in that case - can it run java applications? the implications are obvious!

even if it isn't possible, once code can actually be run off the memory stick, would sticking some kind of a java virtual machine on there shortcut having to write alot of emulators?

cheers!

kj

p.s. i cant actually try and find out for myself as im waiting for a proper psp homebrew breakthrough before i bin my gba+flashcart+quirky-CHAOS-remake!
Back to top
View user's profile Send private message
pdc



Joined: 09 Mar 2005
Posts: 107
Location: Rainy Yorkshire, England

PostPosted: Thu Mar 31, 2005 6:46 am    Post subject: Reply with quote

No it does not support Java.
The implications are indeed obvious :P

Having "some kind of Java VM" isn't really an option for the Wipeout/PSP browser, as no one really knows what the browser is - never mind how to integrate some sort of Java VM.

The best bet would be to port a Mozilla browser and a compatible Sun Java VM.
I must say I'm not sure how portable the Java VM is though. Isn't it closed-source?
Back to top
View user's profile Send private message Visit poster's website
mharris



Joined: 25 Jan 2004
Posts: 155
Location: Annapolis, MD, USA

PostPosted: Fri Apr 01, 2005 1:28 am    Post subject: Reply with quote

pdc wrote:
I must say I'm not sure how portable the Java VM is though. Isn't it closed-source?

There are numerous open- and semi-open-source Java VMs. The source for Sun's HotSpot VM is one of the better-supported ones (it falls into the semi-open-source category). This is the VM that you get when you get Java from Sun for the x86 (Windows/Linux/Solaris) and Sparc. Apple has ported it to PPC/OSX -- it's the Java VM that's part of OSX -- but as far as I can tell, they haven't made their source available, which is acceptable under Sun's license.

Porting HotSpot to MIPS/PS2 would be a huge undertaking -- I know, because I tried once ;-) My big problem, which I was unable to resolve, was to separate the VM runtime environment from the JIT stuff. The JIT compiler requires all kinds of definitions about the underlying architecture (registers, stack layout, etc.); although this is not rocket science, it's a lot of grunt work, which I didn't have the stamina to deal with after a while. It would be nice to have just the VM always run in "bytecode-interpretation" mode (i.e., no JIT), even though it would be sluggish... IIRC, this is the way all of the JDK 1.2 and earlier VMs worked. I couldn't find a way to get HotSpot to build in this restricted way, so I gave up :-/

There are other open source JVMs out there -- Kaffe is the one I'm most familiar with, but it hasn't been updated since Feb 2004. There's supposedly a PS2 port for it here, but it's all in Japanese, so I have no idea how complete it is. From what little I can glean from the romanji, it only works on the Linux kit anyhow.

Doubtless there are other open-source VMs out there in various states of usability.
Back to top
View user's profile Send private message AIM Address
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Fri Apr 01, 2005 1:47 am    Post subject: Reply with quote

Moved to the PSP General Discussion.
_________________
"He was warned..."
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group