26

I got warn message

Could not get package info. Failed to connect to https://packagist.org/packages/list.json: java.lang.RuntimeException: Could not generate DH keypair Please check your internet connection. 

when opening Composer Dependency on WebStorm.. after a bit search, some say maybe it's caused by java SDK. But the problem persist even after I update Java to the latest version java 8u45.

enter image description here

1
  • Please show "Help | About" screen. Commented May 14, 2015 at 14:19

6 Answers 6

31
+100

/Applications/PhpStorm.app/Contents/Info.plist

<key>JVMVersion</key> <string>1.6*</string>

change↓

<key>JVMVersion</key> <string>1.8*</string>

Sign up to request clarification or add additional context in comments.

7 Comments

I upgraded Java to 1.8.0_45 and then did this with PhpStorm 8.0.3 and OS X 10.10.4. PhpStorm will no longer launch. Actually, OS X kinda locks up in a very weird way when I try to launch PhpStorm after changing the above to the given value. I changed it back and it will launch again.
It works, but now another problem regarding to font rendering and color arise. youtrack.jetbrains.com/issue/WI-27354#comment=27-1000130
@jlbang Did you find a resolution to this problem? I am running into the exact same issue as you described.
@CutRateGamer I didn't! I downgraded back to the version I was previously using just to get PhpStorm working again. :-/ Had to move on to other more urgent things.
This worked for me on IntelliJ IDEA 14.x. I changed the value from 1.6*,1.7+ to 1.8*
|
8

In /Applications/PhpStorm.app/Contents/Info.plist change

<key>JVMVersion</key> <string>1.6*</string> 

to

<key>JVMVersion</key> <string>1.8*</string> 

Works for me! Use PrefSetter App for OS X, open plist and change value.

Comments

3

https://youtrack.jetbrains.com/issue/WI-27354 -- watch this ticket (star/vote/comment) to get notified on progress.

In that ticket devs say: "Workaround: install JDK 1.8".


From https://youtrack.jetbrains.com/issue/WI-27354#comment=27-999854

Here's result of the investigation: the issue is reproducible only on MacOsX.
It definitely does not happen on bundled JDK.

Also I failed to reproduce it on java 1.8.0_45

4 Comments

confluence.atlassian.com/display/STASHKB/… says "there are reports coming in that upgrading to latest JDK version does not resolve the issue". Which is certainly my own experience.
@thesunneversets Your OS? Same question -- Please show "Help | About" screen
Mac 10.10.3 with Java SE Development Kit 8u45 installed... already try PhpStorm version 9.0 EAP 141.1000, May 6.. The problem still exist..
@TekYin I still need Help | About screenshot. Accordingly to the comments in the ticket the PhpStorm with bundled JDK works just fine and it also works with Java 8.45. The fact that you have java installed does not necessarily mean that PhpStorm actually uses it.
0

Is there a solution to this problem? I could not find a workaround in any of the suggested issue trackers. I have

  • phpStrom 9.0
  • OS X Yosemite 10.10.4
  • Java Runtime Version 1.8.0_51

If I modify the Info.plist from 1.6*,1.7 to 1.8* then phpStorm would not launch anymore. With the initial setting I get exactly the same error message as Tek Yin

UPDATE

Tried lots of things but could not get it working, so my workaround was installing all necessary packages manually through the console...

1 Comment

I did this same thing and gt the same results.
0

I found the solution:

Go to JetBrains' download page, and donwload the bundled version of PHPStorm.

PHPStorm Bundled version link for MacOSX

Comments

0

Not only I was required to update Java, edit /Applications/PhpStorm.app/Contents/Info.plist as shuusetu suggested but I had to install Java SE Development Kit. Remember, there are Java install and JDK (java development kit) install, they are different and have to be installed both.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.