• 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

Compile error with ANT in eclipse...

 
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First, I wasn't sure where to post this but I'll try here. here is the result of running my ant file...


here is the ant file...


Here is some other possibly useful/useless information. My JAVA_HOME points to c:/jdk1.3.1_01 but my java -version is 1.4.1. I am getting no compile errors when I build clean in eclipse (just some warnings about deprecated calls).
Please help-that "class file version" is driving me crazy...and use small words when talking, i'm new with ant..hehe

Thanks
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like it's trying to compile your jsps using jdk 1.3 but it is finding jdk 1.4 jar.

(47 refers to jdk 1.3 compiled classes, 48 refers to jdk 1.4 compiled classes)

Try changing your java_home to 1.4. Or if you really wanted 1.3, then change so path and java_home to point to 1.3.
 
Pat Peg
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm pointing to 1.3
In fact, I can't find a 1.4 jdk folder anywhere (however I do get 1.4.1 when I do java -version)
JAVA_HOME and everything else I can think of is pointing to the folder jdk1.3.1_01
 
Carol Enderlin
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, let's see if we can find the stealth java reference.

1. Check your PATH, look specifically for something like c:\h\COTS\J2JRE_1.4.1. If you find that and change and it doesn't help (re-start eclipse) or don't find it in path, continue...

2. What version of eclipse are you using?

3. Not sure if true for all versions of eclipse, but I read that 2.1 used the same java for ant that's used to start eclipse. So, check how you're starting eclipse...

If you're using a shortcut, the java version may be specified using -vm. Otherwise eclipse uses the first java it finds in the path.

e.g., my eclipse 3.1 shortcut includes -vm ( right click on the shortcut - Properties: command to start eclipse is the value in "Target" field):

C:\_tools\eclipse-3.1M5a\eclipse\eclipse.exe -vm C:\_tools\jdk1.5.0_01\bin\javaw
 
Pat Peg
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Fixed-Thanks
 
Carol Enderlin
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic