LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 12-19-2008, 10:57 AM   #1
paulstanyer
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
Problems running ant on CentOS release 5.2 (Final)


I'm having some problems getting ant to run, which could well be related to my java installation, but I'm not sure where to start with this one.

For example:

Code:
ant -version
Produces:

Quote:
Exception in thread "main" java.lang.NoClassDefFoundError: java/security/Provider$EngineDescription
at java.security.Provider.addEngine(Provider.java:859)
at java.security.Provider.<clinit>(Provider.java:868)
at sun.security.util.ManifestEntryVerifier.<clinit>(ManifestEntryVerifier.java:27)
at java.util.jar.JarFile.initializeVerifier(JarFile.java:318)
at java.util.jar.JarFile.getInputStream(JarFile.java:390)
at sun.misc.URLClassPath$JarLoader$1.getInputStream(URLClassPath.java:620)
at sun.misc.Resource.cachedInputStream(Resource.java:58)
at sun.misc.Resource.getByteBuffer(Resource.java:113)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:249)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
I've pointed JAVA_HOME and ANT_HOME to the appropraite places.

Here are the versions currently installed:

Linux version 2.6.18-92.1.6.el5PAE (mockbuild@builder16.centos.org) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)) #1 SMP Wed Jun 25 14:21:46 EDT 2008

java version "1.5.0_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
Java HotSpot(TM) Server VM (build 1.5.0_15-b04, mixed mode)

apache-ant-1.7.0


Let me know if I can provide any further details.

Thanks,
Paul
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
install opensuse release candidate upgrade path to final release newbuyer17 Linux - General 2 06-05-2008 08:23 AM
CentOS release 4.6 (Final) - Kernel Oops harry edwards Linux - Server 2 03-17-2008 05:11 PM
How to Install and Config Ant for Centos 4.4 ? newtonviet Linux - Server 1 04-02-2007 08:37 PM
Beta to final release? Ollan Suse/Novell 3 08-30-2005 02:29 PM
FC4 Final Release up! TuxFreak Fedora 22 06-15-2005 02:22 AM


All times are GMT -5. The time now is 06:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration