jEdit Community - Resources for users of the jEdit Text Editor
QuickNotepad-Plugin written in Scala - java.lang.NoClassDefFoundError: QuickNotepadActions
Submitted by gadei on Wednesday, 6 October, 2010 - 06:34
Hallo!

I've tried to rewrite the simple QuickNotepad plugin in scala. I'm using Netbeans 6.8 for this.

Inside the IDE everthing works really fine, but if I copy my 'QuickNotepad.jar'-file in the .jedit/jar directory and then run jEdit, I get following Error-Message:

(Note: This error occurs when I try to open my plugin => Plugins/QuickNotepad->QuickNotepad)

> java.lang.NoClassDefFoundError: QuickNotepadActions
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:466)
> at org.gjt.sp.jedit.JARClassLoader._loadClass(JARClassLoader.java:456)
> at org.gjt.sp.jedit.JARClassLoader.loadClass(JARClassLoader.java:109)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> at org.gjt.sp.jedit.bsh.classpath.ClassManagerImpl.classForName(ClassManagerImpl.java:203)
> at org.gjt.sp.jedit.bsh.NameSpace.classForName(NameSpace.java:1318)
> at org.gjt.sp.jedit.bsh.NameSpace.getClassImpl(NameSpace.java:1218)
> at org.gjt.sp.jedit.bsh.NameSpace.getClass(NameSpace.java:1159)
> at org.gjt.sp.jedit.bsh.Name.consumeNextObjectField(Name.java:298)
> at org.gjt.sp.jedit.bsh.Name.toObject(Name.java:199)
> at org.gjt.sp.jedit.bsh.BSHAmbiguousName.toObject(BSHAmbiguousName.java:59)
> at org.gjt.sp.jedit.bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:86)
> at org.gjt.sp.jedit.bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:62)
> at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
> at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
> at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:644)
> at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:738)
> at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:727)
> at org.gjt.sp.jedit.BeanShellFacade._eval(BeanShellFacade.java:148)
> at org.gjt.sp.jedit.BeanShellFacade.eval(BeanShellFacade.java:113)
> at org.gjt.sp.jedit.BeanShell.eval(BeanShell.java:369)
> at org.gjt.sp.jedit.gui.DockableWindowFactory$Window.createDockableWindow(DockableWindowFactory.java:467)
> at org.gjt.sp.jedit.gui.DockableWindowManagerImpl.showDockableWindow(DockableWindowManagerImpl.java:349)
> at org.gjt.sp.jedit.gui.DockableWindowFactory$Window$OpenAction.invoke(DockableWindowFactory.java:491)
> at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:352)
> at org.gjt.sp.jedit.jEdit$4.invokeAction(jEdit.java:3255)
> at org.gjt.sp.jedit.jEdit$4.invokeAction(jEdit.java:3237)
> at org.gjt.sp.jedit.EditAction$Wrapper.actionPerformed(EditAction.java:221)
QuickNotepadActions is just a "triat" (=Scala) [Interfac (=Java)] -> so this error message don't really make sens to me

Do you have an idea what could be wrong here?

Marco


Ps
I'm using:
jdk1.6
scala 2.8.0 final
netbeans6.8
jEdit 4.3.1
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Mailing List
by Robert Schwenn on Wed, 06/10/2010 - 17:43
If You've paid attention to http://www.jedit.org/users-guide/writing-plugins-part.html, You should ask this question in the mailing list ( https://lists.sourceforge.net/lists/listinfo/jedit-devel ), where the developers will see it...
User login
Browse archives
« April 2025  
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   107462
Context Free Art (*.cfdg)   0.31   46065
BBEdit scheme   1.0   18604
JBuilder scheme   .001   18505
ColdFusion scheme   1.0   18035
R Edit Mode - extensive version   0.1   17485
Advanced HTML edit mode   1.0   16216
Matlab Edit Mode   1.0   16080
jEdit XP icons   1.0   15239
XP icons for jEdit   1.1   14303