You say the classpath is fine but it looks to be that 'MyClass' isn't
in the classpath, which is defined with variable jde-global-classpath.
When you go to the *JDEE bsh* buffer and type "MyClass.class", what is
the output?
On Jan 9, 2010, at 8:25 AM, James López wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> I'm having troubles with jde-wiz-extend-abstract-class, I don't know
> exactly why, since my last SVN update I can implement an interface
> right
> but this function gives me the following error:
> Target exception: java.lang.NoClassDefFoundError: MyClass
>
> (I'm using emacs 22.3.1 with jde 2.4.0 svn)
>
> notice that the classpath seems ok, and I have no other problems
> building my project and importing/using classes withing the whole
> package...
>
> Full error message:
>
> Expression: {
>
> boolean _prevShowValue = this.interpreter.getShowResults();
>
> Object _retVal = null;
>
> this.interpreter.setShowResults(false);
>
> _jdeCustEvalFn() {
> jde
> .wizards.AbstractClassFactory.makeAbstractClassExpression("MyClass",
> true); };
> try { _retVal = eval("_jdeCustEvalFn();"); }
>
> finally {
>
> this.interpreter.setShowResults(_prevShowValue);
>
> }
>
> if (_retVal != null) print(_retVal);
>
> }
>
> Error: // Error: // Uncaught Exception: Method Invocation
> this.interpreter.eval : at Line: 73 : in file: /bsh/commands/
> eval.bsh :
> this .\
> interpreter .eval ( expression , this .caller .namespace )
>
>
>
> Called from method: eval : at Line: 546 : in file: <unknown file> :
> eval
> ( "_jdeCustEvalFn();" )
> Target exception: Sourced file: inline evaluation of:
> ``_jdeCustEvalFn();'' : Method Invocation
> jde.wizards.AbstractClassFactory.makeAbstr\
> actClassExpression : at Line: 545 : in file: <unknown file> : jde
> .wizards .AbstractClassFactory .makeAbstractClassExpression
> ( "MyClass" ,\
> true )
>
>
>
> Called from method: _jdeCustEvalFn : at Line: 1 : in file: inline
> evaluation of: ``_jdeCustEvalFn();'' : _jdeCustEvalFn ( )
> Target exception: java.lang.NoClassDefFoundError: MyClass (wrong name:
> elele/chan/MyClass)
>
> java.lang.NoClassDefFoundError: MyClass (wrong name: elele/chan/
> MyClass)
>
> at java.lang.ClassLoader.defineClass1(Native Method)
>
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
> 124)
>
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>
> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>
> at java.security.AccessController.doPrivileged(Native Method)
>
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
> 268)
>
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
> 319)
>
> at java.lang.Class.forName0(Native Method)
>
> at java.lang.Class.forName(Class.java:164)
>
> at
> jde.wizards.AbstractClassFactory.process(AbstractClassFactory.java:82)
>
> at
> jde
> .wizards
> .AbstractClassFactory
> .makeAbstractClassExpressionInternal(AbstractClassFactory.java:164)
>
> at
> jde
> .wizards
> .AbstractClassFactory
> .makeAbstractClassExpression(AbstractClassFactory.java:150)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at
> sun
> .reflect
> .NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
> at
> sun
> .reflect
> .DelegatingMethodAccessorImpl
> .invoke(DelegatingMethodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
>
> at bsh.Reflect.invokeMethod(Unknown Source)
>
> at bsh.Reflect.invokeStaticMethod(Unknown Source)
>
> at bsh.Name.invokeMethod(Unknown Source)
>
> at bsh.BSHMethodInvocation.eval(Unknown Source)
> at bsh.BSHPrimaryExpression.eval(Unknown Source)
>
> at bsh.BSHPrimaryExpression.eval(Unknown Source)
>
> at bsh.BSHBlock.evalBlock(Unknown Source)
>
> at bsh.BSHBlock.eval(Unknown Source)
>
> at bsh.BshMethod.invokeImpl(Unknown Source)
>
> at bsh.BshMethod.invoke(Unknown Source)
>
> at bsh.BshMethod.invoke(Unknown Source)
>
> at bsh.Name.invokeLocalMethod(Unknown Source)
>
> at bsh.Name.invokeMethod(Unknown Source)
>
> at bsh.BSHMethodInvocation.eval(Unknown Source)
>
> at bsh.BSHPrimaryExpression.eval(Unknown Source)
>
> at bsh.BSHPrimaryExpression.eval(Unknown Source)
>
> at bsh.Interpreter.eval(Unknown Source)
>
> at bsh.Interpreter.eval(Unknown Source)
>
> at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
> at
> sun
> .reflect
> .DelegatingMethodAccessorImpl
> .invoke(DelegatingMethodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
>
> at bsh.Reflect.invokeMethod(Unknown Source)
>
> at bsh.Reflect.invokeObjectMethod(Unknown Source)
>
> at bsh.Name.invokeMethod(Unknown Source)
>
> at bsh.BSHMethodInvocation.eval(Unknown Source)
>
> at bsh.BSHPrimaryExpression.eval(Unknown Source)
>
> at bsh.BSHPrimaryExpression.eval(Unknown Source)
>
> at bsh.BSHReturnStatement.eval(Unknown Source)
>
> at bsh.BSHBlock.evalBlock(Unknown Source)
>
> at bsh.BSHBlock.eval(Unknown Source)
>
> at bsh.BshMethod.invokeImpl(Unknown Source)
>
> at bsh.BshMethod.invoke(Unknown Source)
>
> at bsh.BshMethod.invoke(Unknown Source)
>
> at bsh.Name.invokeLocalMethod(Unknown Source)
>
> at bsh.Name.invokeMethod(Unknown Source)
>
> at bsh.BSHMethodInvocation.eval(Unknown Source)
>
> at bsh.BSHPrimaryExpression.eval(Unknown Source)
>
> at bsh.BSHPrimaryExpression.eval(Unknown Source)
>
> at bsh.BSHAssignment.eval(Unknown Source)
>
> at bsh.BSHBlock.evalBlock(Unknown Source)
>
> at bsh.BSHBlock.eval(Unknown Source)
>
> at bsh.BSHBlock.eval(Unknown Source)
>
> at bsh.BSHTryStatement.eval(Unknown Source)
>
> at bsh.BSHBlock.evalBlock(Unknown Source)
> at bsh.BSHBlock.eval(Unknown Source) [2 times]
>
> - --
> ______________________________________
> | /\ BLuEGoD (James López)
> | /\ / \/\ /\ /\
> | / \ /\ / \ /\ / \ /
> |____\__________/___wWw.BLuEGoD.NeT
> | \/ \ /
> | bluegod(at)bluegod.net - Public key at keyserver.net
> ----------------------------------------------------------
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (Darwin)
>
> iEYEARECAAYFAktIkdEACgkQACIwOm/T2YK63gCfchrJGDpawuIaa2pr7XYZU8Ks
> 4U0AoIljZ7tgZZV1vd5UjypOa3Cvp2ET
> =YHh2
> -----END PGP SIGNATURE-----
>
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast
> and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev
> _______________________________________________
> jdee-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jdee-users
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
jdee-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jdee-users