I am trying to install new software within Eclipse the C++ version. Help -> install new software. When I go to install new software, it hangs or takes hours to move a percentage.
I have read that this is a known bug in JRE7, which I am assuming I am using since I have it installed. I changed to JRE6 by changing the eclipse.ini file with the argument -vm XXXX where XXXX is the path to my javaw.exe.
It does not seem to have changed anything.
Ideas?
Thanks.
Finally it worked for me only by unchecking Contact all update sites during install to find required software. From what I'm seeing it might be a Mac issue, on Windows and Linux it worked without any change.
You can get rid of this problem by simply disabling your Firewall software before installing new plugin. If your Antivirus has built-in Firewall, you need to disable it.
Optionally, to reduce the update time, you can uncheck Contact all update sites during install to find required software, see my blog post for details.
I've found it helps by adding this line to the eclipse.ini file:
-Djava.net.preferIPv4Stack=true
To install new plugin into eclipse, you can download plugin installer or go market place to install.
Make sure what SDK you are using and fill the correct path.
Wish you success
To get around this issue, I went to Windows->preferences->general->network settings and typed in each repository manually. I also selected manual from the drop down at the top of the window.
It seems it was also useful to get off of my home network and I had to get on another network.
I kept having this issue and resolved it by following Nitin Kale's fix for Eclipse slowness on fresh 16.04 here> https://askubuntu.com/a/788826
open terminal and type following command
export SWT_GTK3=0 add this to your ~/.profile file to make it
persistent across logins (you'll need to logout and log back in to be
able to start eclipse from shortcut)
then go to your eclipse folder and search for eclipse.ini file Right
click anywhere in the folder and choose "open in terminal" and type
following command in terminal
sudo gedit eclipse.ini and add the following line before
--launcher.appendVmargs
--launcher.GTK_version 2 Search in the file for 256 and replace it with 1024
I had to go to Preferences -> General -> Network Connection and set Active provider to 'direct' as it was 'native' by default. Then it worked fine.
None of above methods worked for me in Ubuntu 16.04 LTS and Eclipse Mars. Had to do following
Go to "Preferences"->"Install/Update"->"Available Software Sites" and uncheck all except "Mars".
After this install worked in a jiffy.
I solved my issue by following all steps in above answers
Window -> Prefrerences -> Install/Update -> Available Software Sites and then uncheck all except Your package name ( neon, mars ).
Window -> Prefrerences -> General -> Network Connections and set Active provider to "manual".
Help -> Install new Software -> uncheck "contact all update sites during install".
If anyone is still having this issue simply go to windows defender and add the installation app as an exception.
Related
I have VS Code version 1.37.1 and I want to update to the current available version 1.43. My OS is Windows 10.
How can I update the current version to the latest?. Like in Eclipse, check for updates is not updating the installation, rather it gives me a zip.
VS Code will automatically update itself on windows 10. If you'd like to force an update check there's an option available for that under 'Help > Check for Updates'.
If the update still doesn't complete, you can run the installer from here as described in the official Visual Studio Code Documentation under Docs » Supporting » Howtoupdate, found here.
If Update:Mode in VS Code's setting is on 'none' , 'Check for Updates ...' option will disappear from Help. Just be sure it's not on 'none' then you can check for updates.
2021-12-15, if you don't see Check for Updates... then Settings
Make sure it's not none
Then Help, Check for updates..., it won't auto-install. Once it downloads the update, either Help, Install update, or
Normally you don't need to do anything. The default configuration auto-updates and tells you it needs a restart.
If you experience different behaviour then either someone has interfered with settings in VS Code or the platform (Win/Lin/Osx) is misconfigured.
Type Ctrl+, or your platform equivalent and then filter for "update", then inspect your settings to see what may be mucked up. You can also force an update in the Help menu, and if this results in the download of a zip file it's not VS Code that's messed up, it's your platform.
Running this from the command prompt seemed to work for me:
winget upgrade --id Microsoft.VisualStudioCode
I think because I was running vscode as administrator I did not see the Help->Check for updates menu item.
My problem was that I had VS Code open as Administrator. After closing it and opening it normally I got the update to appear once again under the settings icon and in the Help menu.
If you cannot do that you can trigger the update with this command written in the terminal:
winget upgrade --id Microsoft.VisualStudioCode
My problem was with a later version, where update options did not appear under the Help menu. This may be because I ran a user install on a Win 2022 VM where I am Administrator user.
The above solutions did not work but I was able to resolve by running the latest user installer over the existing install (turns out the user install of VS Code does not appear in Control Panel, Uninstall program listing.) Currently this can be downloaded from https://code.visualstudio.com/.
If your update settings are OK, then there is one other possibility. Normally, you would have installed this huge piece of bloatware for your own user account only, using the "VSCodeUserSetup-.exe" installer.
But there is also a "system installer" which installs VSCode into "C:\Program Files" (configuration is still kept per-user). If you installed "VSCodeSetup-.exe" (note: no "User" in the installer file name), then you have an administrative install and will not get full auto-updates, AFAIK.
I recently decided to start trying Android app development, so I downloaded the Java SE Development Kit 8 (x86) for Windows (I got Windows 8 64bit, but my guide recommends getting the 32bit one), the Android SDK, and the Eclipse IDE for Java Developers (x86).
However, my Eclipse won't launch when I double click eclipse.exe! Instead, I get the following error message:
I tried adding Java to my Path variable in my Environment variables as suggested in some of the solutions I looked up, but it still doesn't launch properly.
Anyone know what else I can try? Also, if possible, please do not use super-technical vocabulary as I'm new to these kinds of stuff and will not understand you...thank you haha :D
I had the same issue and was trying to install different versions of JDK: 1.6, 1.7, 1.8.
It didn't help much.
The problem was resolved when I changed PATH variable by removing
C:\ProgramData\Oracle\Java\javapath;
In command prompt I also ran following commands:
set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_25
set PATH=C:\Program Files\Java\jdk1.8.0_25\bin;%PATH%
But I think the most important was to remove C:\ProgramData\Oracle\Java\javapath; from the PATH.
I know exactly how to solve your problem. Go to search and put in environment, a prompt will come up and ask you to "Edit environmental variables for your account" click that and a window will pop up. There will be the current paths which are running on the top (you should have your JDK version running, mine is 1.8) and on the bottom part there will be paths to choose from. Select (on the bottom part) the java path and delete it, then click okay. This should work.
If it didn't work, You may also add a new path to the java bin folder which worked for me.
Here is an alternative:
As described here, make sure that you have the -vm option set in your eclipse.ini file.
It must be an absolute path and on 2 separate lines:
-vm
<Absolute Path>\javaw.exe
Save your .ini and relaunch Eclipse
One line answer, remove 'C:\ProgramData\Oracle\Java\javapath;' from your path variable. It will start to work.
Most errors with starting eclipse happen due to multiple JRE or JDK version which makes the installer go nuts.
Solution: Go to Control Panel -> Uninstall Programs
If you're running 64-bit java, then uninstall all Java without the 64bit indicator. If 32-bit, then uninstall all that have 64-bit
It works like magic!
What worked for me was having installed adoptopenjdk11 using Chocolatey package manager:
choco install adoptopenjdk11
I'm running Eclipse under a Windows 7, 64-bit installation on which I have administrator privileges.
Since I first installed Eclipse many months ago, I've been able to keep it up to date with the Help > Check for Updates function—but starting a couple of weeks ago, it gave the message
Insufficient access privileges to apply this update.
Even when I ran Eclipse as an administrator, I continued to get this message. How can I fix it?
For anyone using Linux: I had this problem in Ubuntu because I had installed Eclipse in /opt, which was owned by root.
To get the updates, simply run Eclipse as root and then select the Help -> Check for Updates again. In general running applications as root is not a good idea, but if it's just to do an update... well that's what the root account is for :)
cd /opt/eclipse
sudo ./eclipse
Another (simpler?) approach which worked for me is to simply give the group "Users" write permission on C:\Program Files (x86)\eclipse.
Now, this is a security consideration, but you're NOT granting access to the whole of C:\Program Files (x86), just the eclipse installation.
I found a workaround for this stupid bug in Eclipse. Selecting updates one-by-one is disabled, but if you click Select all and then deselect the ones you do not need, you can proceed.
In Windows another option is to set the "Run as administrator" property on the Eclipse shortcut that you're using to start Eclipse. Right click on the shortcut and choose "Properties" from the dropdown menu. Click on the "Shortcut" tab in the Properties dialog and then click on the "Advanced..." button. In the Advanced Properties dialog set the "Run as administrator" option.
Hit same problem on Macos sierra 10.12.3 after clean install of Eclipse JEE Neon R. A clue was that my mac showed a dialog when I launched the app that asked:
“Eclipse.app” is an application downloaded from the Internet. Are you sure you want to open it?
When the updater dialog box showed "Insufficient access privileges to apply this update" I checked the Eclipse.app directory (I had downloaded & unpacked the .tar.gz file, if that matters) and saw this:
drwxrwxr-x# 3 chris staff 102 Jun 13 2016 Eclipse.app
I examined the extended attribute and saw this:
$ xattr Eclipse.app
com.apple.quarantine
That quarantine attribute seems to block the Eclipse updater! I removed that extended attribute like this:
xattr -d -r Eclipse.app
After that Eclipse updated itself very happily. HTH
For Linux Distros, most personal apps for all users are installed in the /opt/ folder. This folder is owned by root. My solution which has been tested to work is simply to open the opt folder in terminal call 'ls' to make sure you see the 'eclipse' folder in your current directory. It may be inside another folder.
Then simply use this command replacing 'user' with your username.
sudo chown -R user:user eclipse/
and that's it. Of course only you will be able to run updates on eclipse but I imagine you are the primary user of the computer.
Solving the problem was a multi-step process for me:
In a thread on another forum I found the advice that Eclipse should not be installed in C:\Program Files (x86). I had indeed installed (unzipped) it into that folder, so I moved it as advised to C:\Users\....
When I loaded Eclipse in its new location, I got a different message when I attempted to scan for updates: "There are no update sites to search".
I temporarily re-established my installation in C:\Program Files (x86), loaded it, and used Window > Preferences > Install/Update > Available Software Sites > [select all] > Export... to create an .xml file with my software sites.
Back in the C:\Users\... installation, I used the the same menu command (except Import instead of Export) to pull in the contents of that .xml file.
Now Help > Check for Updates is again functioning as it used to.
I fixed this problem (windows) by re-opening eclipse by right-clicking the eclipse.exe and selecting "Run as administrator".
Not sure why this step was needed all of the sudden but it worked. After my upgrade (I upgraded from eclipse sdk 4.3 -> 4.4) it still lets me make updates without running as administrator.
From Powershell, I set permissions on the folder like so:
& icacls "C:\ProgramData\chocolatey\lib\eclipse-java-neon\eclipse" "/grant" "domain\user:(OI)(CI)F" "/T"
Note: I had a different install location, as I used chocolatey to install eclipse
I followed this installation guide:
http://msdn.microsoft.com/en-us/library/hh301122.aspx
On some computers, all went well. But on some, the team explorer window is missing.
I can't find it even in: Window->Show view->Other. In fact there is no trace of TFS anywhere in eclipse (it does not appear at preferences under team). But it's listed in installed software.
All computers have Ubunto 12.04 LTS and eclipse 3.7.2 with eclipse cdt.
Check if you have Version Control (Team).
I recently installed Eclipse 4.20,
and I am thinking that the Team menu name was changed to Version Control (Team)
(Team -> Version Control (Team)).
the solution apparently is to open eclipse with sudo and then start the installation.
some permission problem that wasn't notified by the installation.
it may happen for permissions issue, you did not have enough permissions to the location where eclipse is installed so the installation of TEE failed.
I was experiencing the same issue. MSDN's site states: Team Explorer Everywhere is designed to be run as a non-root user on computers that are running Unix.
I was finally able to fix my issue by running the command below:
sudo chown -R user:user /usr/lib/eclipse/ /usr/share/eclipse/
I'm having a problem with eclipse galileo on ubuntu 64-bit system. when ever i open it the splash scree turns gray but keeps loading and then when eclipse opens it shows the secure storage password request and hangs. I dont know what could be wrong, it used to work fine before, if you have or had the same problem please tell me what to do
I have had this happen on Galileo (3.5) and Helios (3.6).
If you delete .eclipse you will lose all software installed through the Help | Install New Software menu option.
It is enough to delete the file ~/.eclipse/org.eclipse.equinox.security/secure_storage
Try clean $HOME$/.eclipse directory.
Its better to just rename at first.
See what happens
This happens to me whenever I shutdown eclipse with the history tab open.
While not the best solution, to solve it I start eclipse with sudo. I let it finish loading, then select a different tab than history. I Shutdown eclipse, then I recursively change the owner of the files in .metadata back to my main user.
In case you need the command: (in my case I run this from /home/wally/workspace)
sudo chown -R wally:wally .metadata
As far as I can tell, there's some race condition going on.
(also, it's likely that you won't use exactly "wally:wally" but "your username:your group)
Try this:
export GDK_NATIVE_WINDOWS=true
then run eclipse from command line from the same terminal window.
I would suggest removing openjdk from synaptic and install sun java. Once you do that , use "sudo update-java-alternatives --set java-6-sun" to use sun-java as the default JRE.
Eclipse used to work really slow for me, and this method worked. Maybe it helps you too.