Udun's Labs

Eclipz

Notes to zelf
  • Red exclamation mark - project won’t build - would not say why. Renamed the mains to main1 still no joy. Finally went to Build Path > Order and Export and ticked export on the JRE

        <?xml version="1.0" encoding="UTF-8"?>
        <classpath>
           <classpathentry excluding="gr/uoa/di/mde515/engine/HeapFile.java" kind="src" path="src"/>
       -   <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
       +   <classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
           <classpathentry kind="output" path="bin"/>
        </classpath>
    

    Lo and behold -> red ! became red x.
    Maybe a bug in caching ? (noted this after the Stack Overflows). I then unticked the JRE and still builds ok. See. Clean did not work and I had no missing libs either.

  • Server update sites:

      <?xml version="1.0" encoding="UTF-8"?>
      <bookmarks>
         <site url="http://download.jboss.org/jbosstools/updates/development/luna/" selected="true" name="_jboss_tools"/>
         <site url="http://download.oracle.com/otn_software/oepe/luna/" selected="true" name="_oracle_glassfish"/>
      </bookmarks>
    

    Unneeded are the maven ones (m2e-wtp had some uninstalled items though) :

      <site url="http://download.eclipse.org/m2e-wtp/milestones/luna/1.1.0" selected="true" name="_m2e-wtp"/>
      <site url="http://download.eclipse.org/technology/m2e/releases" selected="true" name="_m2eclipse"/>
    
  • Clean eclipse OSGi cache: Add -clean to eclipse.ini - first line, on its own - cleans mainly folder {eclipse}\configuration\org.eclipse.osgi. See How to run eclipse in clean mode? and what happens if we do so?. For workspace leaning see Clean out Eclipse workspace metadata - apparently -clean cleans the workspace too (?)

  • How to make xml file always be opened in text editor rather than xml editor

You might want to visit my sponsors:

Comments