jEdit Community - Resources for users of the jEdit Text Editor
Can't run some macros: "Class: gnu.regexp.RE not found in namespace"
Submitted by sempliciotto on Sunday, 20 April, 2008 - 12:32
Hi,
I have a problem running some macros, like Text_Squeezer. I'm on an Ubuntu hardy; I have downloaded jEdit 4.3pre13 from ubuntu repository; I have installed sun-java6-jdk.

$ which java
/usr/bin/java
$ java -version
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)


If I run Text_Squeezer macro I got this error:

Sourced file: /home/gius/.jedit/macros/Text_Squeezer.bsh : Class: gnu.regexp.RE not found in namespace : at Line: 32 : in file: /home/gius/.jedit/macros/Text_Squeezer.bsh : gnu .regexp .RE

at org.gjt.sp.jedit.bsh.BSHAmbiguousName.toClass(BSHAmbiguousName.java:74)
at org.gjt.sp.jedit.bsh.BSHType.getType(BSHType.java:154)
at org.gjt.sp.jedit.bsh.BSHFormalParameter.eval(BSHFormalParameter.java:67)
at org.gjt.sp.jedit.bsh.BSHFormalParameters.eval(BSHFormalParameters.java:107)
at org.gjt.sp.jedit.bsh.BSHMethodDeclaration.evalNodes(BSHMethodDeclaration.java:153)
at org.gjt.sp.jedit.bsh.BSHMethodDeclaration.eval(BSHMethodDeclaration.java:122)
at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:644)
at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:336)
at org.gjt.sp.jedit.BeanShell._runScript(BeanShell.java:281)
at org.gjt.sp.jedit.BeanShell.runScript(BeanShell.java:207)
at org.gjt.sp.jedit.Macros$BeanShellHandler.runMacro(Macros.java:1020)
at org.gjt.sp.jedit.Macros$Macro.invoke(Macros.java:441)
at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:383)
at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:3000)
at org.gjt.sp.jedit.jEdit$3.invokeAction(jEdit.java:2983)
at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:220)
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.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1220)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1261)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
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)

What's wrong? Is required some other package or ubuntu's jedit is bugged?

Thanks
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
deprecated
by drefty on Mon, 21/04/2008 - 23:48
If I remember correctly, please note that gnu.regexp.RE is deprecated in favor of java.util.regex in jEdit. I seem to remember seeing this in the realease notes somewhere.
I think you need the GnuRegex
by elberry on Mon, 21/04/2008 - 06:29
I think you need the GnuRegexp plugin.

Learn from the past. Live in the present. Plan for the future.
11101000
 
Your tip is right! Thanks
by sempliciotto on Tue, 22/04/2008 - 07:57
Your tip is right!
Thanks
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