[NTLK] Anyone developing in Waba from OS X ?

From: Wes <wes.frazier_at_gmail.com>
Date: Tue Mar 06 2007 - 22:31:19 EST

Ive messed around a bit with the Waba libraries for java this
evening. I have some experience with simple java coding, from within
linux and mac os x.

Ive had to deviate quite far from the directions on the official web-
page ( http://cs.gmu.edu/~sean/projects/newton/waba/docs/osx.html )
on setting the classpath and whatnot. [The instructions were in tcsh
shell, which has not been the default in OS X for some time.]

I have successfully compiled the WabaHelloWorld program. As I
understand it, I should be able to run it from within mac os x, by
executing "java waba.applet.Applet WabaHelloWorld" from the command-
line. And this indeed does start to work but crashes after creating
the window... with this output in the console :

java.lang.ClassNotFoundException: WabaHelloWorld
         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 java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:164)
         at waba.applet.Applet.init(Applet.java:62)
         at waba.applet.Applet.main(Applet.java:153)
Exception in thread "main" java.lang.NullPointerException
         at waba.applet.Applet.init(Applet.java:68)
         at waba.applet.Applet.main(Applet.java:153)

My version of Java is :

java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)

Do I need to roll back to an older JVM ? I suspect uploading the
built pkg to the newton would probably work alright, however having
to upload the binary every time to test a program would be quite a
pain in developement.

Does anyone have any hints for creating a working dev environment for
waba in parallel with my existing javaVM and classpath ? (I need Java
1.5 for coursework I am doing now).

I tried subscribing to the waba mailing list at wabanewtdev-
subscribe@yahoogroups.com but the group seems to no longer exist.

-- 
This is the NewtonTalk list - http://www.newtontalk.net/ for all inquiries
Official Newton FAQ: http://www.chuma.org/newton/faq/
WikiWikiNewt for all kinds of articles: http://tools.unna.org/wikiwikinewt/
Received on Tue Mar 6 22:31:20 2007

This archive was generated by hypermail 2.1.8 : Wed Mar 07 2007 - 17:30:00 EST