confused about Ant Scripts and java_home [message #5817] |
Mon, 07 July 2003 08:27  |
Eclipse User |
|
|
|
Originally posted by: veith.pixel.de
hi,
I'm using eclipse (version m1) on win xp. I've set java_home to the jdk
installation path. When I open "About Eclpise Platform" dialog ->
"configuration details", I can see that eclipse uses the installed jre.
(??) instead of the jdk.
Now my question: when I start the ant script (imported from some other
IDE, the script is ok) I always get the error message, that no compiler
can be found and I should check the java_home settings.
Looks like eclipse searches the compiler using the wrong java_home
setting or uses the JavaHome entry of the registry that points to the
jre that does not contain any compiler.
Next, I selected "External tools" -> Ant Build -> JRE -> "Run Ant in
separate VM" and selected the jdk under java_home.
Same error :-(
BTW: My project uses the jdk under java_home in "preferences" -> "Java"
-> "Installed JREs".
Gernot
|
|
|
|
Re: confused about Ant Scripts and java_home [message #5904 is a reply to message #5852] |
Tue, 08 July 2003 00:51  |
Eclipse User |
|
|
|
Originally posted by: ed.burnette.REMOVE.THIS.sas.com
This question is better asked on eclipse.platform. But, another way that I
found by searching the Eclipse newsgroups (the new search engine on
eclipse.org is 100x faster than before, by the way) is to specify the -vm
option when starting Eclipse. For example I have a shortcut like this:
"C:\Program Files\eclipse\eclipse.exe" -data D:\workspace -vm
C:\j2sdk1.4.2\bin\javaw.exe -vmargs -Xmx256m
By default the eclipse.exe launcher program will use the JRE even though you
installed the JDK, probably because Sun's JDK install program gives you two
copies of Java (one JRE and one JDK) and points the Windows registry at the
JRE version. Go figure.
Once you get everything set up to use the JDK it will make Ant happy and
you'll also get source code and hover-Javadoc for things like the String
class.
--
Ed Burnette, co-author Eclipse in Action (www.manning.com/gallardo)
"Zabil CM" <zabilcm@hathway.com> wrote in message
news:bec1cd$n57$1@eclipse.org...
> Gernot Veith wrote:
> > Now my question: when I start the ant script (imported from some other
> > IDE, the script is ok) I always get the error message, that no compiler
> > can be found and I should check the java_home settings.
>
> Go to windows->preferences->Ant->Runtime choose "Add jar" and choose
> "tools.jar" of whichever compiler you are using and run ant again.
> This will solve your problem.
|
|
|
Powered by
FUDForum. Page generated in 0.03583 seconds