|
|
|
|
| Re: Working with Java Types [message #1022580 is a reply to message #1021820] |
Fri, 22 March 2013 03:00   |
Harsha G Messages: 11 Registered: February 2013 |
Junior Member |
|
|
Oh okay okay !
But what are my options if i dont have to deal with JDT Type API and to go ahead with Reflection ?
Also, I have problems loading any class file using class.forName(clsName). Its not resolving . Tried it with the 3 parameters forName, it ain't working.
Do you think the problem also lies with the class loaders since the launched Eclipse RCP app points its classpath to somewhere inside the Eclipse / Plugins directory and not to the project specific workspace where i intend it to be !
For examples, If i search the classpath it is pointing to C:/Eclipse%20Plugin%20DE/eclipse-rcp-juno-SR1-win32/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar,
whereas the classes which i need to select are under
C:/MyLocalPC/TestProject/Workspace/NewCodeGenerator/bin/
Obviously my class.forName is failing, i dont know how to come out of this.
[Updated on: Fri, 22 March 2013 05:19] Report message to a moderator
|
|
|
| Re: Working with Java Types [message #1022825 is a reply to message #1022580] |
Fri, 22 March 2013 11:49  |
Konstantin Komissarchik Messages: 769 Registered: July 2009 |
Senior Member |
|
|
There is no class loader with your project's classes when in development, as such you cannot use Java Reflection and have to use JDT's API if you need to inspect the types. Your project classes are only in a class loader when you are running it.
- Konstantin
|
|
|
Powered by
FUDForum. Page generated in 0.01652 seconds