• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

'ant' not recognized...

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have used ant before quite a few times, and I just got a new machine, so I was setting up my environment variables, and for some reason, ant isn't recognized. I have version 1.6.5, and my variables are as follows:

PATH is: PATH=;%PATH%;%JAVA_HOME%\bin;'%ANT_HOME%\bin

JAVA_HOME: C:\Program Files\Java\jdk1.6.0_07

ANT_HOME: C:\Ant\ant-1.6.5

I did not set my CLASSPATH, the only path in there is the jre1.6.0 Everytime I try to run either 'ant' or 'ant -help' or anything else that has to do with ant for that matter, it gives me that error.

Someone please help me out.

-Heather
 
Marshal
Posts: 67279
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Inspect your PATH. See the issue?
 
Heather Rose
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I did see that. I took out the "'". Guess I just needed another pair of eyes.

But now I can't get my server to run. It compiles, but it doesn't deploy. It used to display an error message, but now, it just doesn't do anything. It gets hung up. I checked to see if anything was on the same port, and nothing was running on the port I am using for JBoss. It says the normal start up log, but then nothing else.
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Heather Rose:
Yes, I did see that. I took out the "'". Guess I just needed another pair of eyes.

But now I can't get my server to run. It compiles, but it doesn't deploy. It used to display an error message, but now, it just doesn't do anything. It gets hung up. I checked to see if anything was on the same port, and nothing was running on the port I am using for JBoss. It says the normal start up log, but then nothing else.



Often there can be problems with having a 'space' in your JAVA_HOME path, try double quoting it.
 
Heather Rose
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm, that didn't do anything. Nothing changed, nor good or bad.

As of right now, I can build my ant script files and they compile successfully and build all the jars, ears, and wars. I've installed jboss 4.2.2.GA with a clean install. That didn't work, or nothing changed. I have replaced that clean install with the one we have on our server and just copied that one. It works on the rest of my team's machine, so I know it's not those files. I'm either missing some libraries, or something on my machine (environmental variables, etc) is not set up right.

I've been working on this issue all morning, and it seems that I'm missing something. I copied the environmental variables' paths from someone else's machine (which works fine), so I know they are correct.

Am I missing any libraries for Eclipse to run? I changed the JDK to the same one I was using (stupid mistake), as well. I honestly cannot think of anything else.

Any ideas?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Heather Rose:

But now I can't get my server to run. It compiles, but it doesn't deploy. It used to display an error message, but now, it just doesn't do anything. It gets hung up. I checked to see if anything was on the same port, and nothing was running on the port I am using for JBoss. It says the normal start up log, but then nothing else.



Can you give us a little more details about how and which folder, you are deploying the application in JBoss? Also, post the console logs of JBoss. And what is your application? Is it a EAR or WAR?
[ August 26, 2008: Message edited by: Jaikiran Pai ]
 
Martijn Verburg
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, please post the contents from your boot.log and server.log, hopefully there's a clue in there.
 
Heather Rose
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If anyone was interested, I found out the problem. This was a problem with my explode.launch file. I needed to delete it and redeploy. For some reason, it was conflicting with the one in SVN.

Thanks all for your help.

I am getting a new machine next week (my 3rd one in the past 2 weeks), so hopefully I won't have any more of these types of issues.
[ September 04, 2008: Message edited by: Heather Rose ]
 
author & internet detective
Posts: 39435
768
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Heather Rose:
If anyone was interested, I found out the problem. This was a problem with...


Thanks for sharing the solution for others who encounter this problem in the future.
 
Attractive, successful people love this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!