eclipse doesn't start:

Hi,

There is something wrong with java on my iMacG5 on which I installed Leopard: I fetched the last tarball 3.3.1.1 which runs nicely on my MacBookPro intel Core 2 Duo.

And I get:

bash-3.2$ /Applications/eclipse/eclipse
Exception in thread "main" java.lang.SecurityException: cannot verify signature block file META-INF/ECLIPSE
at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java: 202)
at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:176)
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:276)
at java.util.jar.JarVerifier.update(JarVerifier.java:188)
at java.util.jar.JarFile.initializeVerifier(JarFile.java:325)
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)

I tried several times to no avail. Do you have an idea to help me out?

Other (related) thing: protege (which is using eclipse library) doesn't work either. So, although Duke is dancing alright http://www.java.com/en/download/help/testvm.xml (java 1.5.0_13), it's definitely a java related problem imho.

Thanks, Christian

iMac G5, Mac OS X (10.5.1)

Posted on Dec 5, 2007 8:35 AM

Reply
9 replies

Dec 7, 2007 1:09 AM in response to Mr.Lobotomy

1. double clicking /Applications/eclipse/Eclipse.app in Finder

JVM terminated Exit code = -1 and the console states
07/12/07 10:05:25 [0x0-0x3d03d0].org.eclipse.eclipse[34285] Exception in thread "main" java.lang.SecurityException: cannot verify signature block file META-INF/ECLIPSE
07/12/07 10:05:25 [0x0-0x3d03d0].org.eclipse.eclipse[34285] at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java: 202)

2. open /Applications/eclipse/Eclipse.app

Same thing.

3. /Applications/eclipse/Eclipse.app/Contents/MacOS/eclipse

Same thing but error message in a terminal.

Can it be that stuffit expanded wrongly something?

Dec 7, 2007 6:17 AM in response to kristion

More questions:

Did you download eclipse 3.3.1.1 onto your iMac or did you use the same tgz that installed properly on the MacBook Pro? If it was a new download, you might check that it downloaded correctly, for example, by checking the md5 hash ( md5 filename in Terminal). Compare to the one at http://download.eclipse.org/eclipse/downloads/drops/R-3.3.1.1-200710231652/index .php For example, for
eclipse-SDK-3.3.1.1-macosx-carbon.tar.gz (is that what you installed?) the MD5 should be 66deca5411648105134db084d4a95aa9.

Are you using the same user to try to run Eclipse as installed it? If stuffit didn't set permissions correctly, that might be an issue. You could try
sudo chmod go+Xr /Applications/eclipse
just to be sure.

Finally, looking at your stack trace more closely again, I realize that what may be happening is that one or more of the jar files which contain the eclipse code is "sealed" securely. The Exception you are receiving may be saying that Java is unable to confirm the authenticity of the code, and so Java is refusing to run it. Unfortunately, Java is also refusing to tell us which jar file is the problem. Hopefully this is just a download issue, but you might need to install key certificates or something horrible like that. You might try editing /Applications/eclipse/eclipse.ini by appending one or more of the lines
-verbose
-verbose:class
-verbose:jni
which, if I'm not mistaken, will hopefully give more diagnostic information when you try /Applications/eclipse/eclipse. Other possibly useful flags (one per line) which I'm less optimistic about being helpful here are -ea and -esa to enable assertions and system assertions. None of these will solve the problem, but one or more might make it more obvious what the problem is.

I hope the problem isn't missing system key certificates. I would try confirming the original tar.gz. Unpack it, and copy it into /Applications, overwriting the /Applications/eclipse which is already there (or delete that one first). Run it by double clicking /Applications/eclipse/Eclipse.app, and not by using a Terminal command. Cross your fingers...

Dec 17, 2007 5:57 AM in response to kristion

It seems it is a java problem, not an eclipse problem: the md5 is correct. And whether I unpack with stuffit or with tar xvzf, both behave the same. Moreover, I had the same SecurityException with other java applications, for example the very standard Journal Officiel of the French ministry:

http://www.journal-officiel.gouv.fr/publication/2007/1214/joe20071214_0290sx00.html?verifBaseDir=/verifier&verifMod=load.php&ficBaseDir=../publication/200 7/1214#test1

fails.

I tried changing user, it doesn't work. I tried to put different -verbose options in the eclipse.ini but I didn't notice any change in the console message.

So I guess I should reinstall java on my G5. I have no idea how to do that... I tried to install Java for Mac OS X 10.4, Release 6 http://www.apple.com/downloads/macosx/apple/macosx_updates/javaformacosx104relea se6.html but it is not designed for Leopard. Should I try to reinstall the one which is on the install DVD?

Best regards, Ch. M.

null

Dec 17, 2007 8:17 PM in response to kristion

First, I didn't notice any Java in the link you quoted. Perhaps I'm blind. But before you try to reinstall Java, please humour me with the following. Go to, say, http://jeremy.smallinfinity.net/games/react/ Does the applet work? (You said the dancing Duke works; I chose this link because there is a standalone version of it that we are getting to in a minute.) If it doesn't work, then I'm satisfied that there is something wrong with your Java. If it does work, then download the "application" version and launch it. If that reproduces the error, then again I'm satisfied that there is something wrong with your Java. If not, then I have to find a signed Java app to test... 🙂

Next I should warn you that I failed to help someone else reinstall Java in another thread. So before I give you similar instructions that are surely doomed to failure, let me ask: How did you install Leopard? Erase and install? Archive and install? Upgrade? (Is the last even an option?) If you did an upgrade (or even an archive and install) you might consider doing (another) archive and install. That may fix things, and is probably the easiest way to "reinstall" Java. Hopefully it won't break anything...I'm willing to assume that an erase and install should have worked, so we should proceed...

I notice that the Leopard install DVD contains the files System/Installation/Packages/Java.pkg and System/Installation/Packages/JavaTools.pkg. System is a hidden directory on the DVD, so you will either have to access them via Finder and the "Go > Go To Folder" menu item (or its French equivalent), via Terminal, or by making hidden files visible in Finder through
defaults write com.apple.finder AppleShowAllFiles -bool true; killall Finder
I don't know in which order you should install them. I suspect that if you try to install them, the installation will fail with the message that they are already installed. To eliminate that message and force the installation, delete all files in /Library/Receipts that appear to be Java related. I seem to have
/Library/Receipts/boms/com.apple.pkg.Java.bom
/Library/Receipts/boms/com.apple.pkg.JavaSDKLeo.bom
/Library/Receipts/boms/com.apple.pkg.JavaToolsLeo.bom

Your results may vary. Then double-clicking the two pkg's (if you could access them in Finder) or open /Volumes/Mac\ Os\ X\ Install\ DVD/System/Installation/Packages/Java.pkg and similarly for JavaTools.pkg (not necessarily in that order) will hopefully install Java for you. If we are lucky, it will even do so correctly.

Backup first! Bon chance! Feel free to ignore these suggestions!

Dec 18, 2007 8:48 AM in response to Mr.Lobotomy

Hi Mr Lobotomy, thanks.

The java is behind the download of a given issue of the journal, the problem appears when checking the integrity of the issue.

Another example:

Here is an applet I proudly signed: http://ens.math.univ-montp2.fr/SPIP/-Deformer-par-une-application-
you choose a picture (640x480 looks best) from your hard disk and you choose a conformal map. Anyway, it is signed and here is what java says:

java.lang.SecurityException: cannot verify signature block file META-INF/MERCAT
at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java: 202)
at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:176)

Of course, unsigned applets and even applications (like your reflex test, I am no top gun!) do work.

I located the install packages you told about, reinstalled them (without deleting), rebooted my browsers but not my computer, and nothing changed. I am going to reboot (once in a trimester, can't hurt) and see if it's better.

Regards, Ch. M.

Dec 18, 2007 3:00 PM in response to kristion

Cool applet!

One more idea from me; sorry I'm striking out.

<pre style="line-height:50%">
$ ls -al /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/
total 56784
drwxr-xr-x 11 root wheel 374 Nov 6 02:14 .
drwxr-xr-x 8 root wheel 272 Nov 15 10:00 ..
drwxr-xr-x 3 root wheel 102 Nov 6 02:14 .compatibility
-rw-r--r-- 1 root wheel 4630797 Nov 6 01:58 charsets.jar
-rw-r--r-- 1 root wheel 22528437 Nov 6 02:05 classes.jar
-rw-r--r-- 1 root wheel 136636 Nov 6 02:05 dt.jar
-rw-r--r-- 1 root wheel 82642 Nov 6 01:45 jce.jar
-rw-r--r-- 1 root wheel 232629 Nov 6 01:59 jconsole.jar
-rw-r--r-- 1 root wheel 278473 Nov 6 01:45 jsse.jar
-rw-r--r-- 1 root wheel 852316 Nov 6 02:14 laf.jar
-rw-r--r-- 1 root wheel 312273 Nov 6 02:07 ui.jar
</pre>
In particular, it is classes.jar which contains the sun.security.util.SignatureFileVerifier.processImpl method which is throwing the exception. To be more precise
<pre style="line-height:50%">
$ jar -tvf /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar | egrep '(SignatureFileVerifier.class|JarVerifier.class|JarFile.class|URLClassPath.clas s|/Resource.class|java/net/URLClassLoader.class|java/security/AccessController.c lass)'
10817 Mon Nov 05 22:48:00 EST 2007 sun/security/util/SignatureFileVerifier.class
4274 Mon Nov 05 22:47:52 EST 2007 sun/net/www/protocol/jar/URLJarFile.class
1625 Mon Nov 05 22:48:00 EST 2007 sun/misc/Resource.class
6208 Mon Nov 05 22:48:00 EST 2007 java/util/jar/JarVerifier.class
6637 Mon Nov 05 22:48:00 EST 2007 java/util/jar/JarFile.class
6252 Mon Nov 05 22:47:58 EST 2007 sun/misc/URLClassPath.class
8285 Mon Nov 05 22:48:00 EST 2007 java/net/URLClassLoader.class
2200 Mon Nov 05 22:48:00 EST 2007 java/security/AccessController.class
</pre>
Do your jar files match mine and/or those of your MBP on which eclipse works? If not assuming (but when you assume...) that the jar files contain only java byte code, not native code, I suspect you could copy the jar files from your MBP to your G5 and see if that solves the problem.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

eclipse doesn't start:

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.