Problem with Java?

Discussion in 'Mac Apps and Mac App Store' started by Sven11, Oct 28, 2010.

  1. Sven11 macrumors 6502a

    Joined:
    Sep 25, 2010
    #1
    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...
     
  2. MisterMe macrumors G4

    MisterMe

    Joined:
    Jul 17, 2002
    Location:
    USA
    #2
    What application would that be?
     
  3. solaris macrumors 6502a

    solaris

    Joined:
    Apr 19, 2004
    Location:
    Oslo, Norway
    #3
    Yes, seems like you have a Java problem.
     
  4. Sven11 thread starter macrumors 6502a

    Joined:
    Sep 25, 2010
    #4
    Okay, how can I fix it now? By reinstalling Snow Leopard? If yes, how can I do it without losing data?
     
  5. MisterMe macrumors G4

    MisterMe

    Joined:
    Jul 17, 2002
    Location:
    USA
    #5
    You have yet to demonstrate that you actually have a technical problem.
     
  6. plinden macrumors 68040

    plinden

    Joined:
    Apr 8, 2004
    #6
    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
     
  7. Sven11 thread starter macrumors 6502a

    Joined:
    Sep 25, 2010
    #7
    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:
     
  8. robert05au macrumors regular

    robert05au

    Joined:
    May 19, 2005
    Location:
    Dubbo, NSW
    #8
    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.
     
  9. Sven11 thread starter macrumors 6502a

    Joined:
    Sep 25, 2010
    #9
    It's not there.
     
  10. robert05au macrumors regular

    robert05au

    Joined:
    May 19, 2005
    Location:
    Dubbo, NSW
    #10
    Can you try searching with spotlight for the Java Console.log to see if it shows anything up.
     
  11. Sven11 thread starter macrumors 6502a

    Joined:
    Sep 25, 2010
  12. robert05au macrumors regular

    robert05au

    Joined:
    May 19, 2005
    Location:
    Dubbo, NSW
    #12
    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
     
  13. Sven11 thread starter macrumors 6502a

    Joined:
    Sep 25, 2010
    #13
    Yes I think so... :(

    I don't know exactly, but I think it was update 3.
     
  14. plinden macrumors 68040

    plinden

    Joined:
    Apr 8, 2004
    #14
    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.
     
  15. Sven11 thread starter macrumors 6502a

    Joined:
    Sep 25, 2010
    #15
    It shows me: 'Unable to locate a Java Runtime to invoke.'

    The update is now installed, but I have still this problem.
     
  16. plinden macrumors 68040

    plinden

    Joined:
    Apr 8, 2004
    #16
    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
    
     
  17. Sven11 thread starter macrumors 6502a

    Joined:
    Sep 25, 2010
    #17
    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
    
     

Share This Page