You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by aiolos_ <ai...@gmail.com> on 2008/03/31 19:32:14 UTC

Batik and windows mobile

I have an application made for Java SE which I'm trying to port to windows
mobile for use in a PDA. I'm using NSI's Creme Java which as far as I know
is the only java for Win Mobile which supports swing.
My code checks out without errors, but when I get to the point where I need
to open a window that contains a JSVGCanvas I get an error about
java.awt.event.MouseListener (sorry, the code is at work and I don't have
the exact error message with me).

Has anyone successfully run a batik application on windows mobile ? I'm
trying to stick with Batik because otherwise I'm going to have to switch to
another svg toolkit and I'll end up with two totaly different applications
(for pc and PDA).

Thank you.

-- 
View this message in context: http://www.nabble.com/Batik-and-windows-mobile-tp16397429p16397429.html
Sent from the Batik - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


Re: Batik and windows mobile

Posted by aiolos_ <ai...@gmail.com>.


Cameron McCormack-4 wrote:
> 
> I think we will need to see the exact exception to get an idea about
> what’s going on.  
> 

At first it can't find the java.awt.geom.AffineTransform class, so I add it
from Sun's Java SE 1.6. Maybe I should add the classes from Sun's Java ME
but I don't know if it has all the needed classes since I've never used it.
Then it needs Java.awt.event.MouseWheelListener so I add it as well.
And then I get :
java.lang.NoSuchMethodError: org.apache.batik.swing.gvt.JGVTComponent:
method addMouseWheelListener(Ljava/awt/event/MouseWheelListener;)V not found

It's obvious that the MouseWheelListener from java SE doesn't work.
I can think of two things to do. The first is to see if MouseWheelListener
from java ME (if it exists) would work and the second would be to disable
mouse wheel functionality in Batik since I don't need it anyway. Only this
would probably require changes to the Batik source and I'm not very happy
about messing with it.



Cameron McCormack-4 wrote:
> 
> From briefly looking at the NSI website, it looks like
> Creme Java is a Java ME implementation, and thus might not have all the
> classes required to run Batik.
> 

Yes it is. And as far as I know it's the only java for windows mobile that
supports swing. I was very surprised to see that Sun doesn't make a Java SE
for windows mobile. I'm sure the devices have enough resources to support
it, and it's probably a matter of company policy.

-- 
View this message in context: http://www.nabble.com/Batik-and-windows-mobile-tp16397429p16447319.html
Sent from the Batik - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


Re: Batik and windows mobile

Posted by Cameron McCormack <ca...@mcc.id.au>.
aiolos_:
> I have an application made for Java SE which I'm trying to port to windows
> mobile for use in a PDA. I'm using NSI's Creme Java which as far as I know
> is the only java for Win Mobile which supports swing.
> My code checks out without errors, but when I get to the point where I need
> to open a window that contains a JSVGCanvas I get an error about
> java.awt.event.MouseListener (sorry, the code is at work and I don't have
> the exact error message with me).

I think we will need to see the exact exception to get an idea about
what’s going on.  From briefly looking at the NSI website, it looks like
Creme Java is a Java ME implementation, and thus might not have all the
classes required to run Batik.

> Has anyone successfully run a batik application on windows mobile ?

Haven’t tried this myself.

-- 
Cameron McCormack, http://mcc.id.au/
	xmpp:heycam@jabber.org  ▪  ICQ 26955922  ▪  MSN cam@mcc.id.au

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org