How to set Google Chrome as default browser in NetBeans? - google-chrome

Chrome executable is located in user's profile folder. I don't want to use explicit username in setup.
Unfortunately, neither
C:\Users{User}\AppData\Local\Google\Chrome\Application\chrome.exe
nor
C:\Users\{User}\AppData\Local\Google\Chrome\Application\chrome.exe
from this answer changing my web browser on netbans 6.9.1 worked for me.
NetBeans says "Cannot create process. Check the browser configuration".
Explicit username works.

You can follow these steps as mentioned here, it worked for me (I restarted my NetBeans after changing web browser):
From "Tools" menu, select "Options". IDE will open options dialog box as displayed below
Choose the browser from "Web browser" drop down. All the browsers installed on your machine will appear on this drop down. The default option is "Default system browser"

Try using C:\Program Files\Google\Chrome\Application\chrome.exe.
In addition, consider stating the NetBeans version and the operating system you are using.

Related

Chrome not Firefox are not dumping to SSLKEYLOGFILE variable

I'm trying to decrypt SSL packages with Wireshark as described here. I have already created a SSLKEYLOGFILE System and User variable and the log file. I have restarted my computer (running Windows 10), and opened https urls with Chrome and Firefox, but none write to the ssl log file. My Chrome version is 56.0.2924.87 (64-bit) and my Firefox version is 51.0.1 (32-bit). Any idea how can I make any of the two browsers write to that file? Or is there any way to get the SSL key to be able to decrypt SSL packages in Wireshark?
You are doing something wrong. Tested on version 58 & you do not need to reboot. To activate either:
set environment variable e.g. SSLKEYLOGFILE to %USERPROFILE%\sslkeysENV.pms
run chrome with argument e.g.:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --ssl-key-log-file=%USERPROFILE%\sslkeysARG.pms
With Firefox the features seems to be disabled by default and is only available in debug builds. With Chrome this might have been vanished by switching the underlying SSL engine from NSS (which implemented this feature and is also used in Firefox) to BoringSSL (which maybe does not have this feature).
Update: according to #Lekensteyn (see comment) the feature is again available in current Firefox and Chrome builds.
I have solved it!
You MUST be sure chrome totally be closed. And then reopen a fresh new chrome instance.
Chrome has a default options let chrome run in background enabled.
Double check your taskbar of windows or processes lists to make sure there's no chrome instance exists.
That's why --ssl-key-log-file don't working, chrome stills alive after you click exit button.
Try Firefox Developer edition, the above mentioned feature is turned on by default. I tested yesterday only.
Some antiviruses (like Avast) inject the SSLKEYLOGFILE environment variable into well-known processes like firefox.exe and chrome.exe. If you rename the browser executable file and launch that, then the environment variable won't be overridden.
Try to close your current browsing session, it behave like you just add a new path to PATH, only work from the new session and so on.
Besides what they have already pointed out, I want to show three points that may help. These are tips for Linux (CentOS)
Make sure the file that related to SSLKEYLOGFILE can be written and read, to make sure you can use:
chmod -R 777 sslkey.txt
Make sure your Firefox or Chrome is opened under the same user with the file mentioned, for example under root.
Find some useful comments here

External chrome extension can not enable

I install chrome extension using registry key in window and its working good when I start chrome it automatically install that extension. And that it is disable by default but problem is that when I try to enable it from chrome://extensions its not working the box is checked but it couldn't enable like it not show the icon in omni bar.
At the bottom of enable button this is written Not From Chrome Store.
I try to install this extension by drop and drag system it install successfully and enable by default but if I disable it and try to enable it does not work.
What is the problem ?
It seems the problem is in the installation. There are possible reasons this is happening as listed in
common mistakes when installing with the registry:
-Not specifying the same id/version as the one listed in the Chrome Web Store
-Key created in the wrong location in the registry
-Registry entry points to the wrong path to the .crx file in the Chrome Web Store
-Permissions problems on a network share

PhpStorm 8 Live Edit and Chrome Extension don't update external CSS

After googling for answers and trying everything that was suggested, I still can't resolve this issue.
What I tried:
Downloaded/installed/enabled Live Edit plugin
Configured a JavaScript Debug configuration
Changed Update to Auto in (ms) and checked Restart if hotswap fails
Specified the same port I use in JetBrains IDE Support in Debugger and checked Can accept external connections
Tried Updating Application (CTRL+F10)
Now the thing is, after I save the CSS file and open the Development tools panel in Chrome, I can see the change applied in Styles tab, but the browser doesn't render it. I tried checking Enable continuous page repainting, but it didn't change anything.
HTML, PHP and inline CSS changes do update.
Software versions:
PhpStorm 8.0.3
Chrome 42.0.2311.135
JetBrains IDE Support 2.0.8

How to modify Chrome ExtensionInstallWhitelist?

I am trying to install extensions on Chrome but it seems to "decide" for me what I should and should not install, which is very frustrating. I have navigated to the "chrome://policy/" and the ExtensionInstallBlacklist is set to "*", how can I change this or add my extensions ID's to the ExtensionInstallWhitelist array? I cannot find this file anywhere on my machine (MAC) and I have looked everywhere including as I found in other threads as a /Library/Managed Preferences/username/. How can I modify the policy settings?
Then I would suggest contacting your administrator. This setting is put into your machine by a workgroup policy.
Even if you were able to change the value locally, it's in place for a reason, and you may get in trouble for that.
Note that you would need a local administrator to access the file. According to the docs, it should indeed be in /Library/Managed Preferences/<username>. And modifying it will not help in the long term.
Here's how I resolve mine:
Find the extension that you want to install and try to install it
0.5 Copy the extension from the pop-up
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\ExtensionInstallWhiteList
Add a new REG_SZ with the next sequence number and paste the data
Restart Chrome and try to install the extension again
Only for MacOS
Google Chrome restricts installing 3rd-party extensions for better security. The official method to bypass such limitation is to add custom policy. In current version (60) of Chrome, there is a policy entry for whitelisting extension called ExtensionInstallWhitelist. On macOS, one can easily add such policy by running the following command in Terminal:
defaults write com.google.Chrome ExtensionInstallWhitelist -array id
Replace id with your actual extension ID correspondingly. The ID can be found in chrome://extensions by clicking the “Developer mode” box. If you want to add multiple IDs, put id1 id2 id3, etc. after -array. Restart Chrome to take effect. To check if the policy works, visit chrome://policy. To remove the policy, simply run:
defaults delete com.google.Chrome ExtensionInstallWhitelist
This could help install open-source Chrome extensions such as BaiduExporter without warning.
Original source
If you want to remove it:
Win+R
regedit
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome
Select the folder containing ExtensionInstallWhiteList
Right click delete

Apps, Extensions and scripts cannot be added from this website

I'm trying to add the Rapid Interface Builder extension to chrome using the rib.crx file I downloaded from https://01.org/rapid-interface-builder/downloads/2012/rib-preview-1-chrome-extension
Unfortunately, every time I open the crx file with chrome I get the following error:
Apps, Extensions and scripts cannot be added from this website.
Any ideas on how to fix this?
Instead of opening the file, you have to: extract it (crx are zip files), then visit chrome://extensions, enable developer mode, and load unpacked extension.
The reason for this is: lots of people try to abuse chrome apps/extensions to install nasty applications to your browser. So Chrome tries to make it impossible to automatically side-load these apps without you making sure that is really what you want to do.
So.. typical caveats of installing software apply when using this approach.
You can now also just drag-and-drop the .crx file onto the chrome://extensions page and it will install, too.
Edit 2019-01-10: Make sure to enable Developer mode for extensions. If this was not enabled, refresh the chrome://extensions page after enabling it.
Edit 2018-08-24: This works on Windows, too.
Edit:
This doesn't work on Windows. Verified on OSX and ChromeOS. From what I've read, this will work on Linux, too.~
(I initially experienced the same problem you described.*)
This solution worked for me in Windows 10 (build th1511) x64:
Open Chrome as you normally would.
Go to the "Extensions" page (chrome://extensions; or click Menu button at top right corner → From 'More tools' drop down menu select 'Extensions').
Drag and drop the .crx file onto the extensions page in Chrome -onto the list of extensions.
You should see a dialog stating "Drop here to install". This must be present. (If you do NOT see this, reposition your mouse - it may be too far to the side of the page.)
It should load successfully and you should see the extension in the list immediately afterward.
*I received the same error you described when attempting to load the .crx file (packed extension) by right-clicking/double-clicking it and selecting "Open With" "Chrome", and by dragging/dropping the file onto a regular webpage in Chrome.
In the Extensions page, just enable Developer mode. From there you can drag and drop any .crx file there and installation prompt will follow suit.
Open Chrome with this parameter --enable-easy-off-store-extension-install, then go to extensions and enable Developer mode. Now you can install .crx files without any problem.
go on extension, and your first step is on developer mode, 2 step update extensions, and last drop IDM extension file on google chrome.