Difficulties to launch jedit
Submitted by Wednesday, 10 August, 2005 - 10:38
on
I would like to launch jedit from my application using something like
org.gjt.sp.jedit.jEdit.main(new String[]{f.getAbsolutePath()});
What I get is
AWT-EventQueue-0: Exception in thread "AWT-EventQueue-0"
[error] AWT-EventQueue-0: java.lang.NullPointerException
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.Buffer.markTokens(Buffer.java:2165)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.ChunkCache.lineToChunkList(ChunkCache.java:760)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.ChunkCache.updateChunksUpTo(ChunkCache.java:635)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.ChunkCache.getLineInfo(ChunkCache.java:244)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.ChunkCache.getScreenLineOfOffset(ChunkCache.java:70)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.JEditTextArea._finishCaretUpdate(JEditTextArea.java:5187)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.JEditTextArea.finishCaretUpdate(JEditTextArea.java:5377)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.JEditTextArea.setSelection(JEditTextArea.java:1629)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.JEditTextArea.selectNone(JEditTextArea.java:1600)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.JEditTextArea.setBuffer(JEditTextArea.java:318)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:105)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.View.setBuffer(View.java:995)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.jEdit$5.run(jEdit.java:3454)
[error] AWT-EventQueue-0: at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
[error] AWT-EventQueue-0: at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
A jedit frame is opened but does not work properly
My current work around is to start java via Runtime.exec. It which works but
is a wast of resources because a new virtuel java machine is created.
Can somebody please help me solving this problem,
Many thanks
Christoph
org.gjt.sp.jedit.jEdit.main(new String[]{f.getAbsolutePath()});
What I get is
AWT-EventQueue-0: Exception in thread "AWT-EventQueue-0"
[error] AWT-EventQueue-0: java.lang.NullPointerException
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.Buffer.markTokens(Buffer.java:2165)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.ChunkCache.lineToChunkList(ChunkCache.java:760)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.ChunkCache.updateChunksUpTo(ChunkCache.java:635)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.ChunkCache.getLineInfo(ChunkCache.java:244)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.ChunkCache.getScreenLineOfOffset(ChunkCache.java:70)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.JEditTextArea._finishCaretUpdate(JEditTextArea.java:5187)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.JEditTextArea.finishCaretUpdate(JEditTextArea.java:5377)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.JEditTextArea.setSelection(JEditTextArea.java:1629)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.JEditTextArea.selectNone(JEditTextArea.java:1600)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.textarea.JEditTextArea.setBuffer(JEditTextArea.java:318)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.EditPane.setBuffer(EditPane.java:105)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.View.setBuffer(View.java:995)
[error] AWT-EventQueue-0: at org.gjt.sp.jedit.jEdit$5.run(jEdit.java:3454)
[error] AWT-EventQueue-0: at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
[error] AWT-EventQueue-0: at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
[error] AWT-EventQueue-0: at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
A jedit frame is opened but does not work properly
My current work around is to start java via Runtime.exec. It which works but
is a wast of resources because a new virtuel java machine is created.
Can somebody please help me solving this problem,
Many thanks
Christoph