Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Crash on MacOS X 64-bit JVM

Help
2009-02-17
2012-09-17
  • Hi,

    I tried to launch jpwsafe using a 64-bit Java JVM and got this message

    2009-feb-17 19:44:57 org.pwsafe.passwordsafeswt.PasswordSafeJFace main
    INFO: PasswordSafe starting...
    2009-feb-17 19:44:57 org.pwsafe.passwordsafeswt.PasswordSafeJFace main
    INFO: java.library.path is: [/Volumes/PasswordSafeSWT-0.7 1/PasswordSafeSWT.app/Contents/Resources/Java:/System/Library/PrivateFrameworks/JavaApplicationLauncher.framework/Resources:.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java]
    2009-feb-17 19:44:57 org.pwsafe.passwordsafeswt.PasswordSafeJFace main
    INFO: log: org.apache.commons.logging.impl.Jdk14Logger
    [LaunchRunner Error] org.pwsafe.passwordsafeswt.PasswordSafeJFace.main(String[]) threw an exception:
    java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM
    at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
    at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
    at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
    at org.eclipse.swt.widgets.Display.createDisplay(Unknown Source)
    at org.eclipse.swt.widgets.Display.create(Unknown Source)
    at org.eclipse.swt.graphics.Device.<init>(Unknown Source)
    at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
    at org.eclipse.swt.widgets.Display.<init>(Unknown Source)
    at org.eclipse.swt.widgets.Display.getDefault(Unknown Source)
    at org.eclipse.swt.widgets.Shell.<init>(Unknown Source)
    at org.eclipse.swt.widgets.Shell.<init>(Unknown Source)
    at org.eclipse.jface.window.Window.createShell(Window.java:487)
    at org.eclipse.jface.window.Window.create(Window.java:430)
    at org.eclipse.jface.window.Window.open(Window.java:790)
    at org.pwsafe.passwordsafeswt.PasswordSafeJFace.main(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at apple.launcher.LaunchRunner.run(LaunchRunner.java:115)
    at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50)
    at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)

    Switching to a 32-bit JVM does the trick.

    I guess I need to recompile the whole lot in order to run in 64-bit mode.

     
    • Mathew Legge
      Mathew Legge
      2009-09-04

      There is a simpler way to fix this. Edit the Info.plist xml file removing the line which states the version. I have just upgraded to snow leopard remove the lines and the OS loader figured it out. Hope this helps..

       
    • David
      David
      2009-03-01

      Hi Jan,

      basically you "only" need to replace swt.jar , as is the case for linux and windows.
      Unfortunately, there seems to be no version of swt for 64bit Mac OS X.

      So, we either have to wait or switch to swing...

      Cheers,
      David

       
    • Doug Carter
      Doug Carter
      2009-06-18

      Is there a work-around for this? I really rely on PWS running on MacOS. I thought there was a way to configure apps to use a particular JVM version.

      And ideas on this?

      TIA,

      Doug

       
    • David
      David
      2009-06-24

      Hi Doug,

      thanks for the workaround!
      This seems to work (me not having a Mac, corvi42 did the test). The "only" problem might be: what happens to users on an older version of Mac OS X? Does the cocoa swt version work for them, too?

      Cheers,
      David

       
    • timmydog
      timmydog
      2009-06-28

      I guess we'll have to add a "deploy.mac-x86_64" target to the build file if this doesn't work on the 32-bit versions, like the linux targets...

      That shouldn't be too much of a problem though, should it?

      Tim

       
    • Rick Slater
      Rick Slater
      2009-07-01

      What is the full pathname for ../Contents/Resources/Java/ please?

       
    • Rick Slater
      Rick Slater
      2009-07-02

      What is the full pathname for ../Contents/Resources/Java/ please?

       
    • Rick Slater
      Rick Slater
      2009-07-02

      Got it, ../Contents/Resources/Java/swt.jar is within PasswordSafeSWT.app