XpdWiki

FrontPage
RecentChanges
XtC
FindPage
PageIndex
XpApprentices

Set your name in
UserPreferences

Edit this page

Referenced by
IbmEclipse




JSPWiki v2.0.52


IbmEclipseQandA



I've got ant working from eclipse, but I still can't get the java classes compiled. I tried to define "build.compiler" based on the above. I set it up in build.xml like this: <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>

The "...classic compiler not available blabla JAVA_HOME..." message is gone, but now I get this:

BuildException?: D:\ExportContracts\build.xml:31: org.eclipse.jdt.core.JDTCompilerAdapter can't be found..

Line 31 of build.xml looks like this:

28 <javac srcdir="${src}" 29 destdir="${src}" 30 classpath="${junitjar}" 31 />

I'm using release 1.0 of Eclipse. --DafyddRees

Release 1.0 is your problem. The JDTCompiler adapter has moved packages recently. -- OliBye.

  • Either: Search the eclipse plugins directories for a file containing JDTCompilerAdapter, and use that fully qualified name. (It will appear in a plugin.xml)
  • Or: Upgrade! Since this wiki doesn't have a revision history this page only reflects the latest version of Eclipse. I really recommend upgrading, Release 1.0 is very old now, and many of the tips on this page have been updated to explain the new way of doing things.

Thanks! -- DafyddRees


Does anyone know of any no-assumptions-made documentation, tutorials, user groups, bulletin boards, wikis etc. for this? The included docs don't seem to cover any of the features listed at the bottom of the page. I've never used an incremental, repository-based system like this and frankly, I'm boggled.
  • All the forums are on the http://www.eclipse.org site
    • you'll find newsgroups, mailing lists and an FAQ search all listed on the main page.

In particular: How do I get it to load/parse/whatever an existing Java project from a filesystem? How do I get it to run my Ant targets to filter/style/build/test/deploy my system? How do I actually set it up to work with CVS? How do I tell it which VM to use?

  • Re: imports, make a new project then try the file import wizard.
  • Re: ant, right click the build.xml and use the Run Ant... option
  • Re: CVS
    • Add a repository browser perspective with Window->Open Perspective->CVS Repository Browser
      • Add the repository you want to use
      • browse the project to find what you want to import
      • Use "Checkout As..." if it's not an existing eclipse java project.
      • Note that this is a new feature in FC2
  • Re: JVM, Windows->Perferences->Java->Installed JRE's
    • Add any you have, set a eclipse wide default.

All help appreciated -- FrankCarver


Do we need to wait for the good people at OTI to release a plugin for Ant 1.5? (I've got the plugin org.apache.ant_1.4.1 installed at the moment.) --DafyddRees³host³³date³September 15, 2002³agent³Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; Q312461; .NET CLR 1.0.2914)³IbmEclipseQandA


Edit this page   More info...   Attach file...
This page last changed on 15-Sep-2002 16:18:21 BST by unknown.