[tcljava-dev] Re: [tcljava-user] Swank 1.0 (bugs)
Brought to you by:
mdejong
|
From: Bruce J. <nm...@ma...> - 2002-05-17 12:16:50
|
I just tried your examples on my Mac (MacOS X) and they all worked=20 without any problems. I'll try to run them on Linux soon and see what=20= the difference is. Bruce On Friday, May 17, 2002, at 07:32 AM, Maurice DIAMANTINI wrote: > Bruce Johnson said : >> Swank 1.0 is now available at http://www.nmrview.com/swank.html. > > I've done these tests an a linuxppc box with jdk1.3.1. > > > > ------------------------------------------------------------ >> ... I'd appreciate any feedback on getting it running. > > > I had made a custom "wisk" script which ends by the lines > > # ... > # ... skip some auto-follow feature code I'll post when the > # tcljava/swank packages organisations are stables > # ... > > > # the -Xm... options replace OBSOLETE java VM options > JAVA_FLAGS=3D" -Xms5m -Xmx32m" > > # Run java with the args passed in from the calling environment > # We must set the CLASSPATH env var instead of using the = -classpath > # argument because jacl might want to exec a program that also > # depends on the CLASSPATH setting and Java can not export env = vars > # > CLASSPATH=3D${SWANK_CLASSPATH}:${JACL_CLASSPATH}:${CLASSPATH} > # CLASSPATH=3D${JACL_CLASSPATH}:${CLASSPATH} > export CLASSPATH > > # java executable should be in the user path > # > # # exec ${JAVA} ${JAVA_FLAGS} tcl.lang.Shell ${1+"$@"} > exec java ${JAVA_FLAGS} tcl.lang.SwkShell ${1+"$@"} > > > Now when I lauch wisk, there is a "wish like" window > > > With standard wish > wish > % button .b1 -text "B1 =3D> Coucou" -command [list puts "Coucou!"] > .b1 > % button .b2 -text "B2 =3D> exit" -command exit > .b2 > % pack .b1 > % pack .b2 > > It works as expected. > > Now when I lauch wisk, there is a "wish like" window so OK, > wisk > % button .b1 -text "B1 =3D> Coucou" -command [list puts "Coucou!"] > .b1 > % button .b2 -text "B2 =3D> exit" -command exit > .b2 > % pack .b1 > % pack .b2 > > The main wisk windows is not adjusted (ok pack not yet implemented) > But the .b1 button doesn't puts anything (puts stdout neither). > The .b2 button does exit as expected > > > > ------------------------------------------------------------ >> (use "console show"), preliminary support for JInternalPane and >> JDesktopPane, > > Now I test the console command :-) > > wisk > % console show > > After diplaying a debug message > "wm protocol . WM_DELETE_WINDOW { wm withdraw . }" > A new __very little__ windows appears. > I resize the window and enter > > set a 1 > > At each caracter I hit the message is : > > Exception occurred during event dispatching: > java.lang.IllegalAccessError: try to access method=20 > tcl/lang/Interp.allowExceptions()V from class swank/BindCmd > at swank.BindCmd.doCmd(BindCmd.java:435) > at swank.SwkKeyListener.processKey(SwkKeyListener.java:125) > at swank.SwkKeyListener.keyPressed(SwkKeyListener.java:68) > at java.awt.Component.processKeyEvent(Component.java:3677) > at = javax.swing.JComponent.processKeyEvent(JComponent.java:2014) > at=20 > javax.swing.JEditorPane.processKeyEvent(JEditorPane.java:1159) > at java.awt.Component.processEvent(Component.java:3553) > at java.awt.Container.processEvent(Container.java:1164) > at java.awt.Component.dispatchEventImpl(Component.java:2593) > at java.awt.Container.dispatchEventImpl(Container.java:1213) > at java.awt.Component.dispatchEvent(Component.java:2497) > at=20 > java.awt.LightweightDispatcher.processKeyEvent(Container.java:2155) > at=20 > java.awt.LightweightDispatcher.dispatchEvent(Container.java:2135) > at java.awt.Container.dispatchEventImpl(Container.java:1200) > at java.awt.Window.dispatchEventImpl(Window.java:926) > at java.awt.Component.dispatchEvent(Component.java:2497) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:339) > at=20 > java.awt.EventDispatchThread.pumpOneEventForHierarchy > (EventDispatchThread.java:131) > at=20 > = java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.ja= va: > 98) > at=20 > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) > at = java.awt.EventDispatchThread.run(EventDispatchThread.java:85) > > > > ------------------------------------------------------------ >> Within the week I'll post a notice >> to comp.lang.tcl. > > Peharps the basic install/use features should work every-where > > Apart the fact that java is slow, I'm realy impressed by the work > you have done ! > And I hope your wish of creating a sourceforge entry for swank > will be involve that more poeple will use/developp swank > > >> Bruce > > -- > Mau...@en... - ENSTA/LMA > =C9cole Nationale Sup=E9rieure de Techniques Avanc=E9es > Laboratoire de Math=E9matiques Appliqu=E9es > http://www.ensta.fr/~diam |