Win a copy of React Cookbook: Recipes for Mastering the React Framework this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

getting ant javac to see the Eclipse jdtCompilerAdapter.jar -- JDTCompiler

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi everybody good afternoon,

I can't get my ant javac task to find the org.eclipse.jdt.core.JDTCompilerAdapter class inside of the jdtCompilerAdapter.jar I looked inside the jar -- the class is definitely their. I'm definitely specifying the correct package and class name.

I would like to have the javac task use the Eclipse compiler instead of the Sun Microsystems one that I have set in my JAVA_HOME environment variable

I've tried setting <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>

I've tried setting the javac compiler attribute

I am NOT calling the javac fork attribute

I've tried pasting the jdtCompilerAdapter.jar into my ant/lib folder and my SunMic/jdk/lib and bin folders

I tried putting the jar file as the first entry in my %PATH% windows env variable

I'm using eclipse Ganymede, ant 1.7.1, jdk 5 update 16 and Windows xp

A guy on my team wrote some <g> generics code that won't compile with the Sun compiler because of a Sun bug, -- but the code does compile with the eclipse compiler.

Could anybody save the day!?
Thanks take care
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Chris, looks like you posted twice (which can happen if your are hyper from eating too much Halloween candy ), so I deleted the other one.
 
author & internet detective
Posts: 40722
827
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Chris,
Are you setting the executable attribute?

The following example from the Ant manual shows how to use a custom compiler:
 
I just had the craziest dream. This tiny ad was in it.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic