|API change for IVMConnector in Eclipse 4.2 [message #912615]
||Thu, 13 September 2012 17:22
| Kathy Chan
Registered: July 2009
When migrating to Eclipse 4.2, I got an error in the class that use IVMConnector:|
The project was not built since its build path is incomplete. Cannot find the class file for com.sun.jdi.connect.Connector$Argument. Fix the build path then try building this project
The type com.sun.jdi.connect.Connector$Argument cannot be resolved. It is indirectly referenced from required .class files
I then found out that in Eclipse 3.6, org.eclipse.jdk.launching.IVMConnector.getDefaultArguments() returns Map. In Eclipse 4.2, it returns Map<string, com.sun.jdk.connect.Connector.Argument>.
I wonder what is the recommended way to fix this error. I know that com.sun.jdk.connect.Conector.Argument is tools.jar in the JDK/lib directory. Are we supposed to have to manually add it to the build path of the project now?
Powered by FUDForum
. Page generated in 0.01655 seconds