#1911 [Patiialy solved ] Deployment and SWT questions

tinulac Thu 14 Jun 2012

Hi,

New to fantom, I have many things to discover but just 3 questions

1) are there plans to allow deployment ro IOS or androïd or blacberry (10) ?

2) -SOLVED- I have a issue with Fwt that I can't resolve. To be more concise as possible, this is what I get with fan -version:

Java Runtime:

java.version:    1.6.0_24
java.vm.name:    OpenJDK 64-Bit Server VM
java.vm.vendor:  Sun Microsystems Inc.
java.vm.version: 20.0-b12
java.home:       /usr/lib/jvm/java-6-openjdk-amd64/jre
fan.platform:    linux-x86_64
fan.version:     1.0.62
fan.env:         sys::BootEnv
fan.home:        /home/daniel/applications/fantom-1.0.62

and Flux end with this error :

sys::Err: java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Widget

fwt::Desktop.appName (Desktop.fan)

I have make symbolic link like explaned on the doc for swt.jar but I have the same issue after.

If anybody can help ....

3)-Solved- there is a 3) Regarding the issue in 2, can you explain why the java Fwt sample does'nt works and the "js" works fine : isnt'it also with fwt ?

many thanks,

Regards,

Daniel

SlimerDude Thu 14 Jun 2012

1). Dunno - it probably depends on what pods you want to use.

2). Have you downloaded the 64 bit linux SWT jar from http://www.eclipse.org/swt/ and stuck it in Setup#SWT Support ?

3). Because FWT on straight Java uses SWT and FWT on JavaScript uses, well, JavaScript!

Steve.

tinulac Thu 14 Jun 2012

Thanks Steve,

For the question 2 I solve it... In my {home}/lib/java/ext/{platform}/swt.jar htere was no directory cooresponding to the "fan_platform" indicated by "fan -version" (linux-x86_64), so I create it and then put in the swt.jar... all is ok now. ;)

Login or Signup to reply.