Solved

java error

Posted on 2004-09-24
4
209 Views
Last Modified: 2010-04-17
I have getting used to the Ant deployment tool and in the process something went wrong.  I get the following error

C:\dev\AntTest>ant
java.lang.InstantiationException: org.apache.tools.ant.Main
      at java.lang.Class.newInstance0(Class.java:293)
      at java.lang.Class.newInstance(Class.java:261)
      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:195)
      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
C:\dev\AndTest>

I never used to get this error, what is goin on here.  I tried reinstalling and still get the error.
0
Comment
Question by:benk-master-flash
4 Comments
 
LVL 5

Expert Comment

by:rsriprac
ID: 12147943
Hello,

There might be some path setting issues, have you read:

http://forum.java.sun.com/thread.jsp?forum=7&thread=485924&tstart=30&trange=15
0
 

Author Comment

by:benk-master-flash
ID: 12148492
I haven't read it.  if the path is to a directory or traverses a directory with spaces in the name is that ok?  In otherwords should it be a problem if ANT is in C:\Program Files\Apache Software Foundation\apache-ant-1.6.2
and that is part of the path, or does the path then need to be in quotations?
0
 
LVL 21

Accepted Solution

by:
MogalManic earned 125 total points
ID: 12150451
I've had problems using ant with spaces in the name.  You will have to quote all your paths.  I finally gave up and just moved ALL of my java stuff out of c:\program files into c:\java
0
 
LVL 4

Expert Comment

by:aratani
ID: 12157336
Yeah, I would just put ant into a directory like,

c:\ant

And put java into a directory like,

c:\java

take care and beset of luck

aj
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I know it’s not a new topic to discuss and it has lots of online contents already available over the net. But Then I thought it would be useful to this site’s visitors and can have online repository on vim most commonly used commands. This post h…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now