• 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

[ant][eclipse][junit] fails to build

 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
re: [ant][eclipse][junit] fails to build

Hi,

I made a sample set of classes and test classes, using old junit 3.8.1, on wsad 5.x.

Has anyone any idea on this?

 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you read the error message?

"A common solution is to set the environment variable JAVA_HOME to your jdk directory."

Not a testing question, moving...
 
Jesus Angeles
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I forgot to mention - JAVA_HOME is currently set to my JDK when I ran it.
 
Bartender
Posts: 2661
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jesus Angeles:
I forgot to mention - JAVA_HOME is currently set to my JDK when I ran it.



Does JAVA_HOME have blanks in it? It might help to replace c:\Program Files by c:\progra~1.

Regards, Jan
 
Jesus Angeles
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, it doesnt have any spaces. Any idea?
 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jesus,

A little bit of googling the error description says that this could occur when tools.jar is not available on the classpath. When you invoke ant using ant.bat it automatically loads tools.jar and no need to manually include that in classpath.

Perhaps you could try and echo classpath and check.


Let us know how it works.

Cnu.
 
Jesus Angeles
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got

 
Jan Cumps
Bartender
Posts: 2661
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I hope this link to David Van den Brande's Weblog can help you.

Regards, Jan
 
Jesus Angeles
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jan Cumps:
I hope this link to David Van den Brande's Weblog can help you.

Regards, Jan



Thanks. It worked, using the tips in that webpage.



The error now is on the formatter for xml. For plain output, it is ok.
 
Jan Cumps
Bartender
Posts: 2661
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://dev.eclipse.org/newslists/news.eclipse.tools/msg08430.html has a solution.

Are you using a non-standard ant version, or an older jdk?
These things seem to work out of the box when using standard ant download with 1.4+ JDKs.

Regards, Jan
 
reply
    Bookmark Topic Watch Topic
  • New Topic