My slides from Oracle Openworld

Several folks have asked for copies of my slides from Oracle Openworld. Unfortunately, there's no printable form of them, since I did them as a JavaFX app. You'll find them at http://fxslideshowtest.kenai.com which will launch the app (with all it's rather large images) via JNLP. If you're curious about the sources, they're on kenai. The code is pretty ugly: I just slapped it together. I'm not proud :-) The code for the map browsing component is in there too. It uses the tile server from openstreetmap.org (Click and drag with the mouse to move, scroll wheel to zoom). I kinda like the map browsing component, so I'm cleaning up the source and I'll push it out to kenai as a separate project sometime soon.

I would have published it earlier in the week, except that there's a bug on Snow Leopard where webstarted apps that use fullscreen get a bus error :-( Works fine in fullscreen as a regular desktop app, but something weird happens when webstarting. Works fine on all other platforms. I gave up trying to figure out what was going on and just dropped the fullscreen startup.

Comments:

I'm unable to launch the app on Ubuntu 9.04 (64-bit version). I get a NoClassDefFoundError on com/sun/javafx/runtime/Main. Is JavaFX available only on Windows/Mac? http://java.sun.com/javafx/downloads/

Here's the complete stack trace:

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.javaws.Launcher.executeApplication(Launcher.java:1468)
at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1414)
at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1225)
at com.sun.javaws.Launcher.run(Launcher.java:114)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NoClassDefFoundError: com/sun/javafx/runtime/Main
at com.sun.javafx.runtime.main.Main.main(Main.java:35)
... 9 more
Caused by: java.lang.ClassNotFoundException: com.sun.javafx.runtime.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at com.sun.jnlp.JNLPClassLoader.findClass(JNLPClassLoader.java:257)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 10 more

Posted by Arun on October 16, 2009 at 04:24 AM PDT #

I can confirm that it works on Ubuntu 9.04 (32-bit) - nice slides

Posted by Julien on October 16, 2009 at 05:27 AM PDT #

Throws similar exception on opensuse 11.1 64bit, java plugin is:
java-1_6_0-sun-plugin-1.6.0.u15-0.1.1

Posted by converging on October 16, 2009 at 05:47 AM PDT #

You need a 32-bit JRE for JavaFX, on Ubuntu install ia32-java-6-sun and run /usr/lib/jvm/ia32-java-6-sun-1.6.0.16/bin/javaws http://fxslideshowtest.kenai.com/SlideShow.jnlp

Posted by Dave on October 16, 2009 at 11:20 AM PDT #

The Ubuntu package is actually called ia32-sun-java6-bin.

Posted by Harri on October 16, 2009 at 03:16 PM PDT #

Hi, I'm using snow leopard ( macbook-proo17"#2008.3) but nothing happened weird things when webstarting at one hour ago. Is it weird?

Posted by Shingo on October 16, 2009 at 09:26 PM PDT #

Very nice presentation. I hope the show went well and that the Oracle guys were impressed.

Posted by guest on October 17, 2009 at 03:51 AM PDT #

Hi James. You might want to check http://kenai.com/projects/bluebill-mobile, whose package it/tidalwave/geo/mapfx contains a pluggable map component (with support for different map providers) and some preliminary support for overlayingf stuff. Unfortunately, I wasn't able to spin it off as a library, as it is used in a Mobile JavaFX app and NetBeans still doesn't support JavaFX libraries in this context.

Posted by Fabrizio Giudici on October 18, 2009 at 09:05 PM PDT #

Running /usr/lib/jvm/ia32-java-6-sun-1.6.0.16/bin/javaws http://fxslideshowtest.kenai.com/SlideShow.jnlp

Doesn't work, I for one won't shed a tear when java dies like it's currently headed...

Even thought java byte code might be produced, there is plenty of front ends emerging to make cross platform code on mobile phones that doesn't require the person to know java.

Posted by John on October 18, 2009 at 09:46 PM PDT #

What did Oracle say about the future of NetBeans at this conference?

Posted by Frank on October 19, 2009 at 11:27 PM PDT #

Post a Comment:
Comments are closed for this entry.
About

jag

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today