[tcljava-dev] Re: [tcljava-user] Swank 1.0 (bugs)
Brought to you by:
mdejong
|
From: Maurice D. <di...@en...> - 2002-05-17 11:33:24
|
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=" -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=${SWANK_CLASSPATH}:${JACL_CLASSPATH}:${CLASSPATH} # CLASSPATH=${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 => Coucou" -command [list puts "Coucou!"] .b1 % button .b2 -text "B2 => 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 => Coucou" -command [list puts "Coucou!"] .b1 % button .b2 -text "B2 => 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 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 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 java.awt.LightweightDispatcher.processKeyEvent(Container.java:2155) at 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 java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98) at 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 École Nationale Supérieure de Techniques Avancées Laboratoire de Mathématiques Appliquées http://www.ensta.fr/~diam |