Re: help needed for sablevm arm

"Grzegorz B. Prokopski" <[email protected]>
Newsgroups gmane.comp.java.vm.sablevm.general
Organization Debian GNU/Linux http://www.debian.org
Message-ID <[email protected]>
W liście z wto, 20-07-2004, godz. 09:08, asutosh gopinath pisze: 
> Hi,
> First i want to port sablevm on ARM. My board has 64M RAM and 32M Flash. It 
> uses Intel Xscale PXA255 processor. It has got xwindows, serial port, usb, 
> audio interfaces. 

ok

> I want to port sablevm and sable-classpath so that i can use it to develop GUI, 
> access serial, USB do audio using java.

As for GUI - sablevm-classpath uses GTK-peers to implement AWT (and
there's improvement in Swing support every few weeks).  

The support for serial ports, USB and others depends on the extra
libraries you will use.  IIRC these are not part of our classpath.

For example in http://people.debian.org/~tora/java/packagelist.html
I see lib-rxtx-java - native interface to serial ports in java

At http://jusb.sourceforge.net/ is "jUSB: Java USB"

You should be able to simply use these libraries with SableVM.


> I wanted to know whether sable-classpath can be built to use my xserver? If 
> yes, then what is the configure option? My Application will not take inputs 
> from touchscreen if X is not used.

sablevm-classpath doesn't talk directly to an X server as it uses GTK
(via peers mechanism) to implement AWT (and Swing upon AWT). It should
also be possible to use other windowing toolkits altough we didn't try
them yet (but this is something on our todo list, like trying SwingWT).

> Also as the size of entire port is around 27 MB I am not able to copy and 
> extract it on my board. I have to do it partwise and create all the links 
> manually. I dont know if this might cause the hanging problem.

I don't know yet so we should assume that if you've done something wrong
it might be the cause.  I don't fully understand what do you mean by
"links"? symlinks? where/why?

> I tried using "switch" but it has same problem. I will now try "direct" and see 
> what happens.

If switch doesn't work, then switching to direct will not help.
Am I right assuming that you've tried --with-debugging-features version
and you didn't get any failed assertions or any other unusal behaviour?

Could you run "strace sablevm ...." and show us some 500 last lines of
the output?  It doesn't look like a problem with bootstrap though, which
is good. Could you sun something like "sablevm NonExistantClass" and
whether it hangs? (it should not, it should simply print ClassNotFound
exception w/ stracktrace)

> After sablevm hangs i did ctrl \ and the output is as follows:

Oh, I see.  We'll be back to that but first please do the tests
I suggested/asked for above.

It's strange that it happens with simple HelloWorld, but I think I have
some clues who/what to blame and where to fix it.  We'll be back to that
next time.

HTH

				Grzegorz B. Prokopski

-- 
Grzegorz B. Prokopski      <[email protected]>
Debian GNU/Linux           http://www.debian.org
SableVM - LGPL'ed Java VM  http://www.sablevm.org
Why SableVM ?!?            http://devel.sablevm.org/wiki/Features
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.