Datastax DevCenter freezes on startup
Asked Answered
H

4

11

Just installed (copied over the app from the downloaded dmg) DevCenter 1.6 on my mac, running macOs Sierra 10.12.6 with jdk 8u152 installed. The application loads a UI (splash screen then a couple of checkboxes in a window for getting started) but the UI is frozen (with the splash screen still there). No response to mouse clicks or keyboard. Also can't click on the app name in the menu bar. The app however is not labeled "Not responding" by activity monitor.

So far I've tried -

  1. Looking at the logs both in the app folder and in ~/.devcenter. Nothing fishy there
  2. Running the app from a different user account - same issue there
  3. Deleting all datastax and devcenter related files (searched by name) on my machine and fresh start - still the same issue

any ideas what I could do here?

I was running DevCenter on a previous mac with the same config / os version but a slightly older JDK, never had issues then.

Horace answered 30/11, 2017 at 9:44 Comment(0)
S
22

On OSX, you can specify which version of Java DevCenter uses so that you do not need to downgrade your global Java version.

  • Right-click on Devcenter.app
  • Click "show package contents"
  • Open Contents/info.plist
  • At the bottom of the file, there's an Eclipse key with lines commented out explaining how to specify the version of Java. Uncomment the line and specify the version of Java that you want DevCenter to use.
  • Save & Re-launch DevCenter

The updated info.plist file should look something like this:

<key>Eclipse</key>

    <array>
            <string>-vm</string><string>/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java</string>
    </array>
Salter answered 2/4, 2018 at 19:26 Comment(1)
As of this writing, you can find the JDK 8u151 download here: oracle.com/technetwork/java/javase/downloads/…Entrails
H
15

I reached out to someone at Datastax and learnt that complaints have surfaced about this behavior when using DevCenter with jdk 8u152.

For now, I've downgraded to jdk 8u151 and that fixes the issue.

Horace answered 30/11, 2017 at 20:50 Comment(0)
B
14

Without downgrade the Java version

Scenario

I couldn't create any connection and press buttons and everything was frozen; Changing the swt plugin in the DevCenter plugin folder worked. This was my configuration:

  • DevCenter version DevCenter-1.6.0-macosx-x86_64
  • Mac OSX version 10.14.6
  • JDK Version jdk1.8.0_231.jdk

Steps to fix it

  1. From here download the version 3.108.0. (This version works for me)
  2. Rename the file downloaded as swt.jar (short name)
  3. [Optionally] create a backup of the current swt plugin jar of the DevCenter
cp DevCenter/DevCenter.app/plugins/org.eclipse.swt.cocoa.macosx.x86_64_3.103.2.v20150203-1351.jar ~/Desktop
  1. Replace the plugin with the swt.jar downloaded
mv swt.jar DevCenter/DevCenter.app/plugins/org.eclipse.swt.cocoa.macosx.x86_64_3.103.2.v20150203-1351.jar
  1. Startup DevCenter

Finally it worked

Evidence

Brno answered 26/12, 2019 at 21:15 Comment(3)
Worked for me. Thanks.Isidoro
worked for me too, MacOS Catalina 10.15.3. pd: in my mac the app open normally but gets stuck and no response to click or keyboard, but changing the jar worked like a charm.Conlon
Works very fine. Thank you!Faints
H
0

actually, 2 solutions here helped me

  1. updated the java version in Contents/info.plist so I did not need to set java_home after this dev center started open but it froze I could not perform anything.
  2. Copying the jar version 3.108.0. to DevCenter/DevCenter.app/plugins/ resolved the freeze problem.
Headwards answered 13/9, 2023 at 23:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.