Win a copy of Design for the Mind this week in the Design forum!
    Bookmark Topic Watch Topic
  • New Topic

java.lang.VerifyError:

 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 18
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Jyotsna,

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