|
|
Re: Access restriction: The type 'String' is not API (restriction on required library '/opt/jdk1.7.0 [message #1767155 is a reply to message #1767150] |
Sun, 02 July 2017 15:22 |
David Wynter Messages: 4624 Registered: July 2009 |
Senior Member |
|
|
Hi,
Firstly, you'd think you would not have to go outside the Eclipse IDE (.classpath is hidden in the IDE) to manage these things.
Here is the content of .classpath
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="ext"/>
<classpathentry exported="true" kind="lib" path="lib/relaxngDatatype.jar" sourcepath="lib/src/relaxngDatatype-1.0.zip"/>
<classpathentry exported="true" kind="lib" path="lib/xsom-20110101-SNAPSHOT.jar" sourcepath="lib/src/xsom-20110101-SNAPSHOT-sources.jar"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>
I did a comparison with one of the other .classpath files in one of my other projects. I never manually edit these normally, but I noticed the order was different. So I changed the one above to have the same order shown below. This solved the issue, Eclipse, flaky, it seemed to have changed the order for some reason...
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="ext"/>
<classpathentry kind="src" path="test"/>
<classpathentry exported="true" kind="lib" path="lib/relaxngDatatype.jar" sourcepath="lib/src/relaxngDatatype-1.0.zip"/>
<classpathentry exported="true" kind="lib" path="lib/xsom-20110101-SNAPSHOT.jar" sourcepath="lib/src/xsom-20110101-SNAPSHOT-sources.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="output" path="bin"/>
</classpath>
[Updated on: Mon, 03 July 2017 07:35] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02846 seconds