Kvm For Gp32


loki666

rtems gp32 bsp maintainer
Joined
Dec 27, 2003
Messages
288
Age
44
Location
Belgium
Website
loki666-gp32.blogspot.com
ok iv ported i very first version of kvm for the gp32
the output is still very experimental... (it display one character then push 'start'... second charcter push 'start'... etc)
put the .fxe and kvm directory in your gp:\gpmm

the two java are the sample class executed in the test.jar
as you can see, the kvm search for a Two.class with a main method in the test.jar
so you can recompile you class, put them in a test.jar file and test it with the kvm

thanx for debug (test threading and events pleaz)
and thanx to Torlus who did Java4gba and released the source code

EDIT SEE LAST POST FOR LASTEST RELEASE
 
What is kvm, if I may ask. Seems like some sort of java thing from your post, but I don't have my gp32 back yet and would like to know what it does. Thanks!
 
kvm is a Java Virtual Machine for embed system like the gp32
it allow you to execute .class files like with a java.exe with only System.out as output (no gfx no sound)
i sould support threadings, events and timers but i have to check my code (its a very first release)

!!! now you can program the gp32 with java !!!
 
Nicely done - I'll look forward to this, especially once its slightly less preliminary :)

Will it work with j2me code, out of interest? I doubt it, but its always worth asking :)
 
it should work with j2me but not with midp (java games for gsm)
didnt have time to test many java program...

i ask any one who want to support this help me by trying some smalls java progy with the kvm
all you have to do is put a Two.class with a main() method in a jar file test.jar and run the kvm

thanx for reports
 
loki666 posted on Feb 16 2004 at 08:25 AM said:
kvm is a Java Virtual Machine for embed system like the gp32
it allow you to execute .class files like with a java.exe with only System.out as output (no gfx no sound)
i sould support threadings, events and timers but i have to check my code (its a very first release)

!!! now you can program the gp32 with java !!!
Hang on, am I reading this right, it does not display graphics or sound?
So you can't run game applets on it?
 
Last edited by a moderator:
TO ALL JAVA DEVELOPPERS

anyone tested it??? or u just d/l to archive?

please... i cant test this alone, make small stupid progs, test and give me feedback
thats why i posted the beta here...

if we want an midp 2.0 imlplematation (wich would allow java games on gp32) we need a strong/stable kvm implementation wich mean a full-debug... tell me whats working and whats not
 
loki666 posted on Feb 16 2004 at 03:36 PM said:
TO ALL JAVA DEVELOPPERS

anyone tested it??? or u just d/l to archive?

please... i cant test this alone, make small stupid progs, test and give me feedback
thats why i posted the beta here...

if we want an midp 2.0 imlplematation (wich would allow java games on gp32) we need a strong/stable kvm implementation wich mean a full-debug... tell me whats working and whats not
Hi,
I'm the author of the GBA port of KVM.

Loki666, I didn't test your archive (I'll do it soon) but here are some things you could test : on GBA version, "double" support didn't work on the release I did, but I think it might be fixed with a couple of gcc flags. So I think you can already test basic types :) Other stuff (Exceptions,Thread) should work as there's nothing platform-specific in their implementation.

I ordered a GP32 and it's expected to be delivered in the next days. So I could get back to work on the KVM port, for GP32 this time :)
I think I will focus on language & VM at first (ensure the full compatibility/compliance), then begin work on the MIDP classes.
The big part of the project is to write all the MIDP classes. Anyone interested in helping us ?

Regards
 
Last edited by a moderator:
From Lazy deano:

Will this jave emu play any Jad and jar files??? is the a limit on the file size (Like mobiles)?
If not then I will check this out with a few BIG jad/jar to see what happens....

quick post would be appreciated as my eyes are burning arrrghhhh :eek:)

Deano
 
Also, If you need a full bug report (Free of course)

just post or mail me the structer and areas you need cained by me!

dean
 
Great work, I'm a student and have been programming in java for about 6 months now, can't wait to test this.
 
what can i use on this?...
and are ther any link's to download's.....



i do like the sound off this....but as i don't programme at all...
i'll have to relie on other-people's skill's....
i hope it will play java game...as some off the one's i've seen look cool....
cheer's.
 
frolik posted on Feb 16 2004 at 10:33 AM said:
I thought kvm stood for Keyboard Video Mouse....

nice work, look forward to seeing what can be done with this
I think that KVM stands for Kaffe Virtual Machine as Kaffe is a GNU java runtime and compilation environment.
 
Last edited by a moderator:
damaki posted on Feb 16 2004 at 09:05 PM said:
I think that KVM stands for Kaffe Virtual Machine as Kaffe is a GNU java runtime and compilation environment.
No, KVM is Sun's Java Virtual Machine implementation.
Have a look at "CLDC" topics at java.sun.com
The "K" here stands for "Kilobytes", as the goal of the project is to have a memory footprint that you could express in Kilobytes instead of Megabytes :)
 
Last edited by a moderator:
okay new build with a better console output

i have to tell im a bit disapointed by this beta forum... :( i was hoping a little more feedback... i know the first release was very experimental and i hope this one will attract more java developper to test and report what they try

i'm not sure how pepole realise what could bring the kvm to GP32...

THIS IS FOR ALL JAVA DEVELOPERS

well... as before... put a simple test.jar in gp:\gpmm\kvm\ with a main class (the class with the static main()) called Two
run the kvm and push 'start'

move your asses and give me feedbacks
 
I wonder if it would be worth posting on any Java development forums, since who knows - maybe there is a developer or two there who might be interested in getting a handheld, and be willing, in the meantime, to mess about with some basic code in GeePee32 and see what happens. Just a thought.

I'd test it myself, it being half term, but I can't program in Java. Sorry about that :(
 
hi,

i have made this very simple prog to test if i could made a java program to work with gp

public class Two {

public static void main( java.lang.String [] args ) {
int a, b;
a = 2;
b = 10;
System.out.println( "a, b = " + a + ", " + b );
a = a + b;
System.out.println( "a + b = " + a );
a *= b;
System.out.println( "Test: " + a );
System.out.println( "Test: " + (a>b?a:b) );
}

}


and well, it works... but, what classes of the standard api can i use? are all the types implemented? (byte, int, double...) and the language? i mean exceptions, asserts and things like that. And by the moment, we can only output text to stdout isn't it? can't we input text or read/write files?

when i have more time i'll try more complicated programs

Xavi

PD: sorry for the bad english
 
Back
Top