• 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

replace java used in WSAD's ant plug-in

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, all.
I have set WSAD to use j2sdk1.4.2_02 (Window-Preferences-Java-Installed JREs -j2sdk1.4.2_02).
So WSAD uses java 1.4 for compile, debug and run command, but ant's "java" task still throws error:

I think WSAD's ant still uses WSAD's "default" java version-jdk 1.3($WSAD_HOME$\eclipse\jre),
no uses the java version what I set in WSAD - jdk 1.4.
How can I change java version used in WSAD's ant-plug-in?
Thank U for reply.
dajac.
[ April 05, 2004: Message edited by: dajac chison ]
[ April 05, 2004: Message edited by: dajac chison ]
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have the same problem... Have you found a solution?

Thanks,
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"celine celine" and "dar",

There aren't may rules that have been put into place here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


How can I change java version used in WSAD's ant-plug-in?


You could just run Ant outside WSAD.
 
celine celine
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Paul Sturrock !
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can run ANT using jdk 1.4 from within WSAD if your java ANT task
has parameters: fork="true" jvm="${javaVM}"

Property javaVM needs to point to your jdk 1.4 location
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by C Wagner:
You can run ANT using jdk 1.4 from within WSAD if your java ANT task
has parameters: fork="true" jvm="${javaVM}"

Property javaVM needs to point to your jdk 1.4 location




Where exactly do these settings need to be set?. I've tried setting these properties in several places but they're not working. Is it in the build.xml or within WSAD?

Thanks!
 
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think another approach is to open WSAD, then:

Windows->Preferences->Java->Installed JREs

and add any JRE you want, make it the default.

Guy
 
C Wagner
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Figment OfYourImagination:



Where exactly do these settings need to be set?. I've tried setting these properties in several places but they're not working. Is it in the build.xml or within WSAD?

Thanks!




In the build.xml - fork and jvm are optional parameters for ANT task Java.
[ July 08, 2005: Message edited by: C Wagner ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic