Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

497902

Suspended
Original poster
Sep 25, 2010
905
230
I have a little problem with one of my applications. The application is very important for me and I need it nearly every day. But now it shows my an error message. 'JVM terminated. Exit code=-1' [...]

I'm using Mac OS X 10.6.4 and my system is up to date. I need help, please...
 
Open Console (Applications -> Utilities -> Console) and click on system.log.

Run your program and see if anything shows up.

Also look in ~/Library/Logs/Java Console.log and /Library/Logs/Java
 
Result:

Oct 29 03:44:14 macbook-pro [0x0-0x12012].org.eclipse.eclipse[218]: JavaVM: requested Java version ((null)) not available. Using Java at "" instead.
Oct 29 03:44:14 macbook-pro [0x0-0x12012].org.eclipse.eclipse[218]: JavaVM: Failed to load JVM: /bundle/Libraries/libserver.dylib
Oct 29 03:44:14 macbook-pro [0x0-0x12012].org.eclipse.eclipse[218]: JavaVM FATAL: Failed to load the jvm library.

I can't find Java and Java Console.log in this folder. :eek:
 
Try this it should help show up the java log you are missing.

Open Console.app (in Applications/Utilities

Select ~/Library/Java Console.log

It should show the java log required simply copy it and paste it in another post if it is to big make two posts.

I am interested to see what the cause is.
 
There is a possibility that your java install is corrupted. Which version or update have you installed? eg: update 2 or update 3 for 10.6.4
 
Try downloading the installer - http://support.apple.com/kb/DL972 - and running it. That might help.

Edit: Actually, before you do that - you're running Eclipse? First check if java is ok. Open a Terminal and type: java -version

You should see something like:
Code:
$ java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)

If that works, it's likely a problem with Eclipse. It would be easier to completely remove and reinstall that first.
 
It shows me: 'Unable to locate a Java Runtime to invoke.'

The update is now installed, but I have still this problem.
 
Ok, what do you get if you type:
ls -la /System/Library/Frameworks/JavaVM.framework/Versions

It should look like:
Code:
$ ls -la /System/Library/Frameworks/JavaVM.framework/Versions
total 72
drwxr-xr-x  13 root  wheel  442 Oct 20 15:40 .
drwxr-xr-x  12 root  wheel  408 Oct 20 15:40 ..
lrwxr-xr-x   1 root  wheel    5 Oct 20 15:40 1.3 -> 1.3.1
drwxr-xr-x   3 root  wheel  102 Feb 11  2010 1.3.1
lrwxr-xr-x   1 root  wheel   10 Oct 20 15:40 1.4 -> CurrentJDK
lrwxr-xr-x   1 root  wheel   10 Oct 20 15:40 1.4.2 -> CurrentJDK
lrwxr-xr-x   1 root  wheel   10 Oct 20 15:40 1.5 -> CurrentJDK
lrwxr-xr-x   1 root  wheel   10 Oct 20 15:40 1.5.0 -> CurrentJDK
lrwxr-xr-x   1 root  wheel   10 Oct 20 15:40 1.6 -> CurrentJDK
lrwxr-xr-x   1 root  wheel   10 Oct 20 15:40 1.6.0 -> CurrentJDK
drwxr-xr-x  10 root  wheel  340 Oct 20 15:40 A
lrwxr-xr-x   1 root  wheel    1 Oct 20 15:40 Current -> A
lrwxr-xr-x   1 root  wheel   59 Oct 20 15:40 CurrentJDK -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents
 
Code:
total 72
drwxr-xr-x  13 root  wheel  442 Oct 29 09:19 .
drwxr-xr-x  12 root  wheel  408 Oct 29 09:19 ..
lrwxr-xr-x   1 root  wheel    5 Oct 29 09:19 1.3 -> 1.3.1
drwxr-xr-x   3 root  wheel  102 Jul 20  2009 1.3.1
lrwxr-xr-x   1 root  wheel   10 Oct 29 09:19 1.4 -> CurrentJDK
lrwxr-xr-x   1 root  wheel   10 Oct 29 09:19 1.4.2 -> CurrentJDK
lrwxr-xr-x   1 root  wheel   10 Oct 29 09:19 1.5 -> CurrentJDK
lrwxr-xr-x   1 root  wheel   10 Oct 29 09:19 1.5.0 -> CurrentJDK
lrwxr-xr-x   1 root  wheel   10 Oct 29 09:19 1.6 -> CurrentJDK
lrwxr-xr-x   1 root  wheel   10 Oct 29 09:19 1.6.0 -> CurrentJDK
drwxr-xr-x  10 root  wheel  340 Oct 29 09:19 A
lrwxr-xr-x   1 root  wheel    1 Oct 29 09:19 Current -> A
lrwxr-xr-x   1 root  wheel   59 Oct 29 09:19 CurrentJDK -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.