wood burning stoves 2.0*
The moose likes Ant, Maven and Other Build Tools and the fly likes java.lang.VerifyError: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply locked New topic
Author

java.lang.VerifyError:

Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
hi all,
Im very new to ANT..i just downloaded Ant 1.5.4 and im trying to run it somehow, i went thru the newsletter by Mr.Thmoas Paul of Javaranch, but i could not grab the things he has expalined there...
shld i have to creat a build.xml file for running ant ??
i have downloaded the zip file of ant from apache . when i tried
d:\ant>Ant
Buildfile: build.xml does not exist!
Build failed
later i created a build.xml file its like

i really dont know if im following the right way or not..
when i run
D:\ant>ant jar
i got this error


could anyone help me with this, an example build.xml file wil be verymuch helpful for me..
thanks
raj
Sun Certified Java Programmer
Sun Certified Web Component Developer


SCJP, SCWCD, SCBCD, Oracle Certified Professional (SQL n PL/SQL)
Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
hi all,
i didnt get any reply from ranchers . I still couldnt find the cause of VerifyError..But when I tried to build the same using Win 98 it worked..First it was showing some errors regardign the syntax of my build.xml file, i cleared it and it worked..I still wonder wat is wrong with my Win NT Professional..
Thanks
Raj
Pablo Krause
Greenhorn

Joined: Feb 02, 2004
Posts: 1
I had a similar problem an found two ways to fix it:
1.- Change jdk version. Apparently some code you are using needs a different jdk. In my case if I used jdk 1.3.1_01 it worked fine. If I used 1.3.1_10 it didn't.
2.- use the -noverify when invoking java
Jyotsna Pai
Greenhorn

Joined: Aug 07, 2009
Posts: 18
Hi there,

Can anyone help me with this as I am new to Ant build.
I am getting the java.lang.VerifyError when I try to run my build with a target environment.


I looked at a similar question earlier, and tried changing the JDK to a version 1.3.1_10, it did not work. The build.xml is as follows -


Thanks. Any help much appreciated.

Cheers,
Jyotsna
SCJP (73%)
SCWCD (85%)
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9937
    
159

Jyotsna,

Please do not add questions to a 5 year old thread. Please create a new topic in this forum to discuss your question.

[My Blog] [JavaRanch Journal]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java.lang.VerifyError:
 
Similar Threads
Web App Deployment using Ant
What is the problem with this build file?
JAVA DOC
build.xml ... what am I doing wrong?
help in setting classpath in ant