• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 41860
908
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:
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic