Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » ant build files not working in M7
ant build files not working in M7 [message #204975] Thu, 26 May 2005 12:37 Go to next message
Eclipse UserFriend
M7 seems to be completely screwed up!

My ant files wont work now. I do a build on them and the console just
shows a '<terminate>" message.
I created a new workspace and copied my project there and the build file
started working. But as soon as I closed eclipse and restarted my
workbench, now again the build files won't work!!!!

It seems if I have to use my build files I will have to create a new
workspace every time!
And yes, I did try selecting the option 'Run in the same JRE' but then I
get an error dialog saying - couldn’t find one or more classes -
"org.apache.tools.ant.BuildException"

I even tried to uncheck the 'set an input handler' option but nothing
happened.


Seriously how do u guys manage to screw up builds so badly and that too
a RC release. It seems that things that worked fine in previous builds
have been completly screwed in M7.

Paste multiple lines and the indenting of first one screws up.
Pressing Ctrl+Space after typing 'new' doesn't do anything.
Now ant files also won't work.

M7 is so screwed up, I have to now switch back to M6!!!


PRASHANT
Re: ant build files not working in M7 [message #204982 is a reply to message #204975] Thu, 26 May 2005 15:34 Go to previous messageGo to next message
Eclipse UserFriend
I just ran into the same Ant problem. I get a dialog:

title : "Java Virtual Machine Launcher"
message : "Could not find the main class. Program will exit."
Re: ant build files not working in M7 [message #204990 is a reply to message #204975] Thu, 26 May 2005 15:44 Go to previous messageGo to next message
Eclipse UserFriend
From bug 95611:

To workaround this problem in M7, you can turn off "Set an Input Handler" on
the Main page of the Ant launch configuration.

This worked for me.
Re: ant build files not working in M7 [message #204996 is a reply to message #204990] Thu, 26 May 2005 21:40 Go to previous messageGo to next message
Eclipse UserFriend
Barry Kaplan wrote:
> From bug 95611:
>
> To workaround this problem in M7, you can turn off "Set an Input
> Handler" on the Main page of the Ant launch configuration.
>
> This worked for me.
I tried that. nothing happened :(

PRASHANT
Re: ant build files not working in M7 - works for me now... [message #205211 is a reply to message #204982] Mon, 30 May 2005 05:24 Go to previous messageGo to next message
Eclipse UserFriend
I just ran into the same and was able to fix it:

It appears that eclipse had copied over the preferences from my previous
workspace (I switched directly from 3.0.2 to 3.1M7) and did not adapt
certain pathes:

In Preferences => Ant => Runtime => Classpath tab I had to redefine the
Ant-Home to now point to "C:\eclipse\plugins\org.apache.ant_1.6.3" in my
case. it was still pointing to "C:\eclipse\plugins\org.apache.ant_1.6.2"
which was the location in 3.0.2, but which had disappeared with my
switch to 3.1M7. Maybe it's possible to use some classpath variable
here, to make this adaptation automagically, but this solved my problem
for now...

Hope that helps...
Michael


"Barry Kaplan" <groups1@memelet.com> wrote in message
news:d758i5$nv4$1@news.eclipse.org...
>I just ran into the same Ant problem. I get a dialog:
>
> title : "Java Virtual Machine Launcher"
> message : "Could not find the main class. Program will exit."
Re: ant build files not working in M7 - works for me now... [message #205406 is a reply to message #205211] Wed, 01 June 2005 11:13 Go to previous message
Eclipse UserFriend
Thanks a lot Miachel :)
That worked fine

PRASHANT

Michael Moser wrote:
> I just ran into the same and was able to fix it:
>
> It appears that eclipse had copied over the preferences from my previous
> workspace (I switched directly from 3.0.2 to 3.1M7) and did not adapt
> certain pathes:
>
> In Preferences => Ant => Runtime => Classpath tab I had to redefine the
> Ant-Home to now point to "C:\eclipse\plugins\org.apache.ant_1.6.3" in my
> case. it was still pointing to "C:\eclipse\plugins\org.apache.ant_1.6.2"
> which was the location in 3.0.2, but which had disappeared with my
> switch to 3.1M7. Maybe it's possible to use some classpath variable
> here, to make this adaptation automagically, but this solved my problem
> for now...
>
> Hope that helps...
> Michael
>
>
> "Barry Kaplan" <groups1@memelet.com> wrote in message
> news:d758i5$nv4$1@news.eclipse.org...
>
>> I just ran into the same Ant problem. I get a dialog:
>>
>> title : "Java Virtual Machine Launcher"
>> message : "Could not find the main class. Program will exit."
>
>
Previous Topic:how to make a query with HSQL
Next Topic:Saveing java-command (+ Classpath) into a shell scipt
Goto Forum:
  


Current Time: Fri May 16 15:52:06 EDT 2025

Powered by FUDForum. Page generated in 0.05966 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top