You are not logged in.
Hi. I'm running Arch 64 and I keep getting this error when trying to run
java -jar TwinkEdit-0.6.9.jar (from twinkle.sourceforge.net -- a flashcard program for palm. This .jar is the desktop editor for the flashcards. It's worked before on Linux ... but that was almost 2 years ago.)
Exception in thread "AWT-EventQueue-0" java.util.NoSuchElementException
at java.util.Vector.firstElement(Vector.java:442)
at org.ekimd.twinkedit.TwinkUI.getJapFont(TwinkUI.java:979)
at org.ekimd.twinkedit.TwinkUI$DynamicView.<init>(TwinkUI.java:589)
at org.ekimd.twinkedit.TwinkUI.getDynamicView(TwinkUI.java:815)
at org.ekimd.twinkedit.TwinkUI.access$1300(TwinkUI.java:88)
at org.ekimd.twinkedit.TwinkUI$NewAction.actionPerformed(TwinkUI.java:1101)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6041)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
It happens in both 32 bit (arch32 chroot) and 64 bit jre's exactly the same.
java -version gives:
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)
(It also doesn't work on Windows, either .... I think it must be a Java version compatibility problem ??)
Any ideas?
Thanks,
Scott
Last edited by firecat53 (2008-09-27 14:07:04)
Offline
Update . . . found an old computer running Ubuntu 7.10 and it worked great. That computer still had java 1.6 so what the heck??? It will won't work on Arch or on XP or Vista. I don't know anything about Java, and I really need to get this program running. Can anyone else test it? It will start, but when you click or select New, it gives the errors I mentioned above and does nothing.
Thanks, Scott
Offline
I gave it a try and got the same error. Then I started looking at the code:
When you create a new file, the program starts looking for a font which supports japanes (don't ask me why). If it doesn't find any it throws the error you posted above. I was able to create a new file after I installed ttf-bitstream-cyberbit from AUR (first font supporting japanese I could find).
You should contact the author and submit a bug report. Even if the program really needs japanese fonts, which I doubt, failing like this is just bad.
Last edited by Garns (2008-09-27 13:26:05)
Offline
Dude, thank you SO much!!! I've been beating my head on this for three weeks now! I think it's a dead project . . . I had emailed the sourceforge maintainer before, but got no response to that or a posting on the forum there. Go figure . . . I depend on it for my studying! It's the only free alternative (and better, too IMO) alternative to Supermemo (which is NOT free) for the Palm.
Thanks again!
Scott
Offline