Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Reflection, class not found [SOLVED]
Reflection, class not found [SOLVED] [message #1248785] Mon, 17 February 2014 17:00 Go to next message
Peter Johnsen is currently offline Peter JohnsenFriend
Messages: 60
Registered: January 2012
Member
Hi,

I have this code:

Method m = c.getMethod( "m", EObject.class );
m.invoke( c, EcoreFactory.eINSTANCE.createEObject() );


And get this error:

java.lang.ClassNotFoundException: EObject
	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)


Any tips? the c.getMethod call would induce an exception as well if EObject was not on the class path, right?

[Updated on: Mon, 17 February 2014 18:40]

Report message to a moderator

Re: Reflection, class not found [SOLVED] [message #1248860 is a reply to message #1248785] Mon, 17 February 2014 18:38 Go to previous message
Peter Johnsen is currently offline Peter JohnsenFriend
Messages: 60
Registered: January 2012
Member
Never mind...it seems like the trace is not that accurately shown.
Previous Topic:etypes.ecore Model in CDO Source
Next Topic:Serialization of EType Parameter
Goto Forum:
  


Current Time: Thu Apr 25 07:08:39 GMT 2024

Powered by FUDForum. Page generated in 0.03042 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top