jEdit Community - Resources for users of the jEdit Text Editor
Difficulties to launch jedit
Submitted by christophGille on Wednesday, 10 August, 2005 - 10:38
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
User login
Browse archives
« November 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300