Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Ant Terminated Problem
Ant Terminated Problem [message #211574] Tue, 22 May 2007 03:48 Go to next message
Eclipse UserFriend
Originally posted by: cockiest.hotmail.com

hi techies,
i am a newbie in eclipse & have problem to run my first ant script. The
script only have one target to echo message "hello world" but the console
output nothing.
this is what i found in the debug screen:
/home/so/_lab_java/eclipse_space/Lesson0/build.xml
<terminated, exit value: 1> /usr/_programming/jdk1.6.0_01/bin/java

fyi eclipse_space is my workspace of eclipse. i am using eclipse 3.2.2
under debian linux 4.0.
can anyone kindly advise the steps to troubleshoot this problem?
thank you.
Re: Ant Terminated Problem [message #211633 is a reply to message #211574] Tue, 22 May 2007 14:29 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
If you insert a sleep http://ant.apache.org/manual/CoreTasks/sleep.html into
the ant buildfile before the echo does the output show up?

For "toy" or very fast running Ant builds, the implementation has bug where
it can miss the output

HTH
Darins

"coc" <cockiest@hotmail.com> wrote in message
news:236d3d27efbd91eab9b4e6ef70a4e9e3$1@www.eclipse.org...
> hi techies,
> i am a newbie in eclipse & have problem to run my first ant script. The
> script only have one target to echo message "hello world" but the console
> output nothing. this is what i found in the debug screen:
> /home/so/_lab_java/eclipse_space/Lesson0/build.xml
> <terminated, exit value: 1> /usr/_programming/jdk1.6.0_01/bin/java
>
> fyi eclipse_space is my workspace of eclipse. i am using eclipse 3.2.2
> under debian linux 4.0.
> can anyone kindly advise the steps to troubleshoot this problem? thank
> you.
>
>
Re: Ant Terminated Problem [message #211849 is a reply to message #211633] Thu, 24 May 2007 01:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cockiest.hotmail.com

thanks darins,
i have tried both ways inserting sleep (just before the echo or create a
new dependance target) but still the same problem.
i also debug by setting breakpoint at the project tag but it didn't pause
into the debug mode.
is this eclipse or debian or jdk problem?
any clue?
Re: Ant Terminated Problem [message #211924 is a reply to message #211849] Thu, 24 May 2007 14:28 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
Anything in your .log file?


"coc" <cockiest@hotmail.com> wrote in message
news:5f8d50ed5f7696c4394f56682b51a25f$1@www.eclipse.org...
> thanks darins,
> i have tried both ways inserting sleep (just before the echo or create a
> new dependance target) but still the same problem.
> i also debug by setting breakpoint at the project tag but it didn't pause
> into the debug mode.
> is this eclipse or debian or jdk problem?
> any clue?
>
Re: Ant Terminated Problem [message #212792 is a reply to message #211924] Wed, 30 May 2007 02:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cockiest.hotmail.com

i can't find the .log file. however in the log error screen there are many
errors.

1) these errors showed when open the build.xml with ant editor:


SESSION 2007-05-26 01:21:54.458
-----------------------------------------------
eclipse.buildId=M20070212-1330
java.version=1.6.0_01
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86

!ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.362
!MESSAGE The library "ant_tasks/helpbase-ant.jar" specified from
"org.eclipse.help.base" for the antTasks or antTypes extension does not
exist

!ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.504
!MESSAGE The library "ant_tasks/resources-ant.jar" specified from
"org.eclipse.core.resources" for the antTasks or antTypes extension does
not exist

!ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.506
!MESSAGE The library "ant_tasks/resources-ant.jar" specified from
"org.eclipse.core.resources" for the antTasks or antTypes extension does
not exist

!ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.507
!MESSAGE The library "ant_tasks/resources-ant.jar" specified from
"org.eclipse.core.resources" for the antTasks or antTypes extension does
not exist

!ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.509
!MESSAGE The library "jdtCompilerAdapter.jar" specified from
"org.eclipse.jdt.core" for the antTasks or antTypes extension does not
exist

!ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.510
!MESSAGE The library "ant_tasks/pde-ant.jar" specified from
"org.eclipse.pde.core" for the antTasks or antTypes extension does not
exist

!ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.512
!MESSAGE The library "ant_tasks/pde-ant.jar" specified from
"org.eclipse.pde.core" for the antTasks or antTypes extension does not
exist

!ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.525
!MESSAGE The library "ant_tasks/pde-ant.jar" specified from
"org.eclipse.pde.core" for the antTasks or antTypes extension does not
exist

!ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.526
!MESSAGE The library "ant_tasks/helpbase-ant.jar" specified from
"org.eclipse.help.base" for the extraClasspathEntries extension does not
exist

!ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.528
!MESSAGE The library "lib/antrunner.jar" specified from
"org.eclipse.ant.ui" for the extraClasspathEntries extension does not exist

!ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.529
!MESSAGE The library "lib/remoteAnt.jar" specified from
"org.eclipse.ant.ui" for the extraClasspathEntries extension does not exist

!ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.530
!MESSAGE The library "lib/antsupportlib.jar" specified from
"org.eclipse.ant.core" for the extraClasspathEntries extension does not
exist

!ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.531
!MESSAGE The library "ant_tasks/resources-ant.jar" specified from
"org.eclipse.core.resources" for the extraClasspathEntries extension does
not exist

!ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.533
!MESSAGE The library "jdtCompilerAdapter.jar" specified from
"org.eclipse.jdt.core" for the extraClasspathEntries extension does not
exist

!ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.534
!MESSAGE The library "ant_tasks/pde-ant.jar" specified from
"org.eclipse.pde.core" for the extraClasspathEntries extension does not
exist


2) these errors when run the script:

!ENTRY org.eclipse.ant.ui 4 120 2007-05-26 01:29:50.385
!MESSAGE Error logged from Ant UI:
!STACK 0
java.net.SocketTimeoutException: Accept timed out
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
at java.net.ServerSocket.implAccept(ServerSocket.java:450)
at java.net.ServerSocket.accept(ServerSocket.java:421)
at
org.eclipse.ant.internal.ui.launchConfigurations.RemoteAntBu ildListener$ServerConnection.run(RemoteAntBuildListener.java :95)


could it be the linux permission problem?
Re: Ant Terminated Problem [message #212800 is a reply to message #212792] Wed, 30 May 2007 03:57 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
You are essentially missing all the helper JARs that make the functionality
of the Ant integration work in Eclipse.
I am unsure of how or what would have caused this.

I would start with first restoring to Default the Ant runtime classpath
HTH
Darins


"coc" <cockiest@hotmail.com> wrote in message
news:198357c04192e9b994fd9f98225269c8$1@www.eclipse.org...
>
> i can't find the .log file. however in the log error screen there are many
> errors.
>
> 1) these errors showed when open the build.xml with ant editor:
>
>
> SESSION 2007-05-26
> 01:21:54.458 -----------------------------------------------
> eclipse.buildId=M20070212-1330
> java.version=1.6.0_01
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
> Command-line arguments: -os linux -ws gtk -arch x86
>
> !ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.362
> !MESSAGE The library "ant_tasks/helpbase-ant.jar" specified from
> "org.eclipse.help.base" for the antTasks or antTypes extension does not
> exist
>
> !ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.504
> !MESSAGE The library "ant_tasks/resources-ant.jar" specified from
> "org.eclipse.core.resources" for the antTasks or antTypes extension does
> not exist
>
> !ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.506
> !MESSAGE The library "ant_tasks/resources-ant.jar" specified from
> "org.eclipse.core.resources" for the antTasks or antTypes extension does
> not exist
>
> !ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.507
> !MESSAGE The library "ant_tasks/resources-ant.jar" specified from
> "org.eclipse.core.resources" for the antTasks or antTypes extension does
> not exist
>
> !ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.509
> !MESSAGE The library "jdtCompilerAdapter.jar" specified from
> "org.eclipse.jdt.core" for the antTasks or antTypes extension does not
> exist
>
> !ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.510
> !MESSAGE The library "ant_tasks/pde-ant.jar" specified from
> "org.eclipse.pde.core" for the antTasks or antTypes extension does not
> exist
>
> !ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.512
> !MESSAGE The library "ant_tasks/pde-ant.jar" specified from
> "org.eclipse.pde.core" for the antTasks or antTypes extension does not
> exist
>
> !ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.525
> !MESSAGE The library "ant_tasks/pde-ant.jar" specified from
> "org.eclipse.pde.core" for the antTasks or antTypes extension does not
> exist
>
> !ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.526
> !MESSAGE The library "ant_tasks/helpbase-ant.jar" specified from
> "org.eclipse.help.base" for the extraClasspathEntries extension does not
> exist
>
> !ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.528
> !MESSAGE The library "lib/antrunner.jar" specified from
> "org.eclipse.ant.ui" for the extraClasspathEntries extension does not
> exist
>
> !ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.529
> !MESSAGE The library "lib/remoteAnt.jar" specified from
> "org.eclipse.ant.ui" for the extraClasspathEntries extension does not
> exist
>
> !ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.530
> !MESSAGE The library "lib/antsupportlib.jar" specified from
> "org.eclipse.ant.core" for the extraClasspathEntries extension does not
> exist
>
> !ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.531
> !MESSAGE The library "ant_tasks/resources-ant.jar" specified from
> "org.eclipse.core.resources" for the extraClasspathEntries extension does
> not exist
>
> !ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.533
> !MESSAGE The library "jdtCompilerAdapter.jar" specified from
> "org.eclipse.jdt.core" for the extraClasspathEntries extension does not
> exist
>
> !ENTRY org.eclipse.ant.core 4 3 2007-05-26 01:22:37.534
> !MESSAGE The library "ant_tasks/pde-ant.jar" specified from
> "org.eclipse.pde.core" for the extraClasspathEntries extension does not
> exist
>
>
> 2) these errors when run the script:
>
> !ENTRY org.eclipse.ant.ui 4 120 2007-05-26 01:29:50.385
> !MESSAGE Error logged from Ant UI: !STACK 0
> java.net.SocketTimeoutException: Accept timed out
> at java.net.PlainSocketImpl.socketAccept(Native Method)
> at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
> at java.net.ServerSocket.implAccept(ServerSocket.java:450)
> at java.net.ServerSocket.accept(ServerSocket.java:421)
> at
> org.eclipse.ant.internal.ui.launchConfigurations.RemoteAntBu ildListener$ServerConnection.run(RemoteAntBuildListener.java :95)
>
>
> could it be the linux permission problem?
>
>
>
Re: Ant Terminated Problem [message #212963 is a reply to message #212800] Thu, 31 May 2007 01:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cockiest.hotmail.com

i have double checked the original eclipse-SDK-3.2.2-linux-gtk.tar.gz
downloaded from eclipse website. jar files for ant are inside
plugins/org.apache.ant_1.6.5/ only. indeed it doesn't contain the required
files (helpbase-ant.jar, resources-ant.jar, jdtCompilerAdapter.jar, etc)
that in the log.
where can i get these files? additional plugin?
Re: Ant Terminated Problem [message #213143 is a reply to message #212963] Thu, 31 May 2007 17:09 Go to previous messageGo to next message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
These JARs are "fluffed" up at runtime from other JARs provided in the
download.
For example the remoteAnt.jar comes from the org.eclipse.ant.ui plugin.

I would suggest clearing your configuration data by deleting all the files
in the eclipse configuration folder EXCEPT the config.ini folder.
Note that you may lose some of your preference settings

HTH
Darins

"coc" <cockiest@hotmail.com> wrote in message
news:614b5993a4a7867f3e2f35ffe1966aba$1@www.eclipse.org...
>i have double checked the original eclipse-SDK-3.2.2-linux-gtk.tar.gz
>downloaded from eclipse website. jar files for ant are inside
>plugins/org.apache.ant_1.6.5/ only. indeed it doesn't contain the required
>files (helpbase-ant.jar, resources-ant.jar, jdtCompilerAdapter.jar, etc)
>that in the log.
> where can i get these files? additional plugin?
>
>
>
>
Re: Ant Terminated Problem [message #213588 is a reply to message #213143] Mon, 04 June 2007 05:28 Go to previous message
Eclipse UserFriend
Originally posted by: cockiest.hotmail.com

i think i have found the cause.
i moved the eclipse workspace from _java_lab to java_lab, problem solved!
thank you very much.
Previous Topic:getting the full path of the class currently opend in eclipse editor
Next Topic:how to create executable file
Goto Forum:
  


Current Time: Fri Apr 26 03:39:02 GMT 2024

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

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

Back to the top