aspose file tools*
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
Bookmark "java.lang.VerifyError" Watch "java.lang.VerifyError" New topic
Author

java.lang.VerifyError

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 -




I am using Oracle JDeveloper. The JDK version is 1.4.2_03 and the classpath is set to:
C:\jdev9051\jdk\jre\lib\rt.jar;C:\jdev9051\jdk\jre\lib\i18n.jar;C:\jdev9051\jdk\jre\lib\sunrsasign.jar;C:\jdev9051\jdk\jre\lib\jsse.jar;C:\jdev9051\jdk\jre\lib\jce.jar;C:\jdev9051\jdk\jre\lib\charsets.jar;C:\jdev9051\jdk\jre\classes

Thanks. Any help much appreciated.

Cheers,
Jyotsna
SCJP (73%)
SCWCD (85%)
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

What version of Ant?
Jyotsna Pai
Greenhorn

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

Thanks for your reply!
I was using ant.jar of a version 1.3 on Windows XP and WinCVS 1.2 for source control.
The IDE used is Oracle JDeveloper version 9.0.5.1

I was trying to resolve this error and in the process changed my ant.jar to version 1.5.1.
Now instead of VerifyError, I am getting "Unable to execute Ant" with the following error details -



My Path, Classpath and JAVA_HOME details are -


Incidentally which ever version of ant.jar I use, whether version 1.3 or version 1.5.1 , I am getting the same error - Cannot execute Ant - CreateProcess Exception as above.

Thanks again.

Cheers,
Jyotsna Pai
Jyotsna Pai
Greenhorn

Joined: Aug 07, 2009
Posts: 18
I landed up resolving the CreateProcess exception.
It seems it was in relation to the classpath and path.

But somehow its reverted back to the VerifyError exception.
My Path is -


and my classpath is


The ant.jar has to be the same as used in production, which is of version 1.3
Platform - Windows XP
Source control - WinCVS 1.2
IDE - JDeveloper version 9.0.5.1
Build.xml is same as in my first email.

Please advise me on resolving this error. I have to use ant.jar of version 1.3.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: java.lang.VerifyError