I really don't know what's going on with Eclipse 3.5 (3.5.0 or 3.5.1, same issues), but it's been now 2 days that I'm struggling with Eclipse to find a way to make the plugins installation work via the "Install New Software screen"!!! I have visited a lot of forums and blogs, tried many solutions but in vain: each time the current problem disappears and a new one appears.
I'm trying to make it work at my office, so behind proxy. The best advice I got so far is the one regarding the known issue with NTLM proxies: http://wiki.eclipse.org/ECF_Filetransfer_Support_for_NTLMv2_Proxies. I put in place the hint, but now I have a new error message: Eclipse cannot find the repositories at all... For instance here is what I get now with the Galileo update site itself:
org.eclipse.equinox.internal.provisional.p2.core.ProvisionException: No repository found at http://download.eclipse.org/releases/galileo.
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.fail(AbstractRepositoryManager.java:380)
at org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:606)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92)
at org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:88)
at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProvisioningUtil.loadMetadataRepository(ProvisioningUtil.java:88)
at org.eclipse.equinox.internal.provisional.p2.ui.QueryableMetadataRepositoryManager.doLoadRepository(QueryableMetadataRepositoryManager.java:55)
at org.eclipse.equinox.internal.provisional.p2.ui.QueryableRepositoryManager.loadRepository(QueryableRepositoryManager.java:195)
at org.eclipse.equinox.internal.provisional.p2.ui.QueryableRepositoryManager.loadAll(QueryableRepositoryManager.java:108)
at org.eclipse.equinox.internal.p2.ui.sdk.PreloadingRepositoryHandler$2.run(PreloadingRepositoryHandler.java:71)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Samething with http://download.eclipse.org/eclipse/updates/3.5, or http://download.eclipse.org/tools/mylyn/update/e3.4/ and whatever the site: no one works.
Please somebody help!
PS: Some more details below:
I have the same issue with third party software too... for instance: http://www.epic-ide.org/updates/testing/site.xml.... same error message.
If I go to Preferences > Install / Updates > Available Software Sites, click on whatever the site and on Test Connection I get a ProvisionException with this error message (when I click on details):
Unable to read repository at http://download.eclipse.org/technology/epp/packages/galileo/site.xml.
Unable to read repository at http://download.eclipse.org/technology/epp/packages/galileo/site.xml.
Server redirected too many times (20)
the solution is:
add following lines to your eclipse.ini file (before -vmargs):
(verified on 3.5 ; 3.5.1; 3.6.2)
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
-Dhttp.proxyPort=8080
-Dhttp.proxyHost=myproxy
-Dhttp.proxyUser=mydomain\myusername
-Dhttp.proxyPassword=mypassword
-Dhttp.nonProxyHosts=localhost|127.0.0.1
Use the following setting and you will be all set.
Go to Window --> Preference --> General --> Network Connection --> select Direct from drop down
Couple of weeks ago I stumbled upon a Problem with Java and a MySQL-Connection. The Problem being that no Connection could be established. Anyway, the fix was to add -Djava.net.preferIPv4Stack=true to the command line.
I just added the same line to eclipse.ini and as it turns out, it also fixes this issue for me. The option name is pretty self-explainitory: It prefers the IPv4 stack over the IPv6 stack. So this solution may not be viable for everyone.
I had a similar problem setting up eclipse in the office.
I had set up the for HTTP, HTTPS and SOCKS in:
Window>pref>general>network connections
Clearing the proxy settings for SOCKS fixed the problem for me.
I had a similar problem setting up eclipse.
I changed: NATIVE connection to MANUAL and cleared the proxy settings for SOCKS in Windows -> Preferences -> General -> Network connection. That fixed the problem for me.
We had tons of issues here, namely with the proxy support.
We ended-up using Pulse: http://www.poweredbypulse.com/
Pulse has built-in support for a few plugin, however, you can add third-party plugin and even local jar file quite easily.
Strangely it does not always use the built-in Eclipse feature, so sometimes when Eclipse become difficult ( like in our case for the proxy business ), you can work-around it with Pulse.
I had similar problem. I changed Direct connection to Native and it worked.
Preferences → General → Network Connections.
Have you read this post?
http://eclipsewebmaster.blogspot.ch/search?q=wow-what-a-painful-release-this-was-is
Maybe it explains, why it was kinda difficult the last days.
I had to turn off my personal firewall and Windows firewall as well, and it worked in the end.
i fought with eclipse 3.5.0 (galileo) for days, i had to use this version because I am doing blackberry development and eclipse comes bundle with blackberry specifics so i need to use
the package they bundled, which was not 3.5.0 (not the 3.5.1) , BUT
SirFabel saved the day, thanks to all who contributed to this post
I used 3.5.0 and did
"Set the following system property in you eclipse.ini file: -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient For more details on this: wiki.eclipse.org/… - Configure only the HTTP and HTTPS proxies. Not SOCKS!! "
and I am able to get through my companies proxy!!!!
Just to add to this as I have had problems with an install of eclipse on my machine.
Specs: Win 7 x64 on macbook pro. The broken eclipse was galileo, and 1 of 4 installations on my machine at the time - the others were all working.
I was not running proxy, so above solution in the question did not work.
I found an answer that said to get updates for eclipse, and that would fix things. I tried this, and eclipse said there were no updates, but then for some reason I can't understand, my plugins could now install.
... more anecdotal evidence of a problem, and a possible solution, however strange ...
Its the Windows OS that make the problem. I got the same problem. Then I tried some other app which use JavaVM to connect the internet, and they fails. Try update JRE, you will notice it. If JRE cannot update itself, then there is some socket inaccessibility that prevent internet access apart from using native windows API.
I reinstall Win7 and it fixed the problem.
finally I got eclipse 3.7 working behind company firewall. I set to true "java.net.useSystemProxies" option on file "net.properties" located on "C:\Program Files\Java\jre6\lib" (this path could be different for your JRE installation). After that,set Active provider to Native on Eclipse preferences. No need to provide any proxy details anywhere, it just pick it up from system default browser settings
I meet the same questions in 3.7 on ubuntu 12.04.
My Os use a proxy 127.0.0.1,and the eclipse use another proxy 192.168.1.1.
I read the .log for info. It says
!MESSAGE System property http.proxyHost is set to 127.0.0.1 but should be 192.168.1.1.
so I change the eclipse net work setting to the same as the system .
At last,it works.
I also faced the same problem while working with eclips Neon. It got fixed after editing the .ini file with following content:
> -Dhttp.proxyPort=8080
> -Dhttp.proxyHost=myproxy
> -Dhttp.proxyUser=mydomain\myusername
> -Dhttp.proxyPassword=mypassword
> -Dhttp.nonProxyHosts=localhost|127.0.0.1
> -Djava.net.preferIPv4Stack=true
Note: Sometime it may also caused due to the issue with your Network configuration and device. So conform first that your windows firewall is allowing to connect your eclips to the outer world (internet). (Turn off the windows firewall for the instance of time that your computer take to install the file).
In my eclipse Luna faced the same issue because of this URL https://sourceforge.net/projects/restfulplugin/files/site/
So i just Disabled the URL that was Shown in the Error From the Available Software Sites.
You may Check the URL or Try with the Updated URL reg to that Exception :)
I was getting the error while trying to connect for updates.
Just did as in the above answer -
Window-> Preferences-> General-> Network
There the default provider was set as Native. I changed it to direct as my laptop didn't need to connect to any proxy.
Applied and it is working fine.
There is no need of doing such hectic stuffs. Find in your system where there is "SDK Manager".(incase of windows). Suppose your sdk manager is in E:\Android-9. Go to that path double click the SDK manager ;it will automatically start to download from
https://dl-ssl.google.com/../..
Initially you will se it is failing. On the window that appears there will be 'settings' menu. Click on that set the proxy and port. and it will start downloading.
The solution in one sentence is "Don't use eclipse for the download;directly use Android sdk manager and your problem is resolved". Let me know if you have any futhur queries on this issue.
Related
I installed Eclipse on my office pc, using this procedure (64 bit): https://portableapps.com/node/53284
But when i want to create a new project, it does not propose me the usual "Java project" with minimal files written.
I don't have the Java Perspective so I'm trying to install the dev tools but when I want check a software site, eclipse keeps telling me it doesn't find it.
What i have done so far:
-Putted Active Provider on "Direct" in network connections
-The Eclipse Internal Web Browser works just fine (including the repositories urls and able to download files)
-I've tryed with an "/" at the end of the urls (http://download.eclipse.org/eclipse/updates/4.13/ and http://download.eclipse.org/mpc/mars/)
-I've tryed to download http://download.eclipse.org/eclipse/updates/4.13/compositeContent.jar and opened it manually. Didn't worked.
-I've added "-Djava.net.preferIPv4Stack=true" after "-vmargs" in my eclipse.ini then restarted. Same.
It keeps searching for http://download.eclipse.org/eclipse/updates/4.13/content.xml and http://download.eclipse.org/mpc/mars/content.xml which do not exist. (Unknown Host... org.eclipse.equinox.p2.core.ProvisionException)
But I don't know how to change that into compositeContent since Eclipse starts to look for compositeContent.[xml/jar]/content.xml instead.
Could you help me?
About my Eclipse
It works! There was indeed a proxy on my company network, with an autoconfig file.
I've putted my network options on "Manual" and followed the instructions there : Is there any way of configuring Eclipse IDE proxy settings via an autoproxy configuration script?
Now it works perfectly! Thanks to howlger for helping me getting in the right direction \o/
Every time I run Android Studio, this loading screen pops up, but Android Studio stays here and doesn't load. It's like this following picture except that the loading bar is loaded all the way but stuck there. I am running Windows 10.
I have tried many things, including setting the system variables JDK_HOME to where my JDK is located and the same for JAVA_HOME. I have also set a path. I ran as admin many times and let AS through a firewall.
I have also restarted and reinstalled countless times.
The version of AS is 2.0, and I am running the latest versions of Java.
Any help?
Open file Android Studio setup directory/bin/idea.properties
Add disable.android.first.run=true to end
Restart Android Studio
PLEASE NOTE: This will break patch updating to the next version. We
now check full binary checksums on the whole installation to prevent
various install corruption bugs as well as to preserve application
signatures. Therefore, make a copy of this file first, and before
updating, put it back.
Please try the following method to fix that issue:
Find the folder of your AndroidStudio: based on the following directory
macOS: ~/Library/Application Support/Google/AndroidStudio[version]
Delete the AndroidStudio folder.
Restart
Ref:https://developer.android.com/studio/known-issues#studio-config-directories
In order to know how to debug the problem, I executed the bin\studio.bat script in the terminal and inspected the actual Idea exceptions in order to fix the problem.
For me, this was the issue:
ERROR - llij.ide.plugins.PluginManager - java.net.BindException: Address already in use: bind
java.util.concurrent.CompletionException: java.net.BindException: Address already in use: bind
This means the plugin manager is trying to listen on a port that is not available. Is something listening on that port? For me, it was the stupid "excluded ports" by Windows, so I simply stopped the service:
net stop winnat (as administrator), and confirmed that Android Studio started to work.
No need to re-install, delete precious configuration (and plugins, etc.). Just read the log provided by the bin\studio.bat script, and I was able to fix the issue.
I use IntelliJ IDEA 15 and have a problem with the auto-saving. For example I make a new configuration, e.g. Show the line number. When I close IntelliJ and reopen my IDE, it doesn't save my configuration and shows me this message:
Unable to save settings : Failed to save settings . Please restart IntelliJ IDEA
I get this too (IntelliJ 15.0.5), but only when the "Markdown support" plugin is used. Once a .md file is visualised the error starts appearing.
For future reference current version: 2016.1.20160405.143
Not a very solution-oriented post, but maybe this can help someone further pinpoint the source of the error.
This workaround allows you continue using "Markdown Support".
Uninstall the latest version of "Markdown Support" and install version "8.0.0.20160127.143.1" from https://plugins.jetbrains.com/plugin/7793?pr=idea. Everything works fine.
I was receiving the error with:
IntelliJ v15.0.6
"Markdown support" plugin version 2016.1.20160405.143
I uninstalled the Markdown support plugin (IntelliJ IDEA > Preferences... > Plugins > Markdown support), restarted IntelliJ, and am now able to save without error.
I have tried everything from this SO thread but it did not work. I solved it by deleting the .idea folder from my project's Windows path and then restarting intellij.
This can also happen when the disk drive where the currently opened project is stored is full (0 bytes left on device). The system tries to write to the .idea folder but cannot, so it gives the same error as if there were no access rights.
This happened to me as there was a process writing to disk in the background until it was full.
I delete this file : .IntelliJIdea
When I launch ./idea I should reconfigure all IntelliJ system (config/ extention/ theme/ licence ...)
So It's okay now but I think is not a good solution ...
Workaround for Windows users.
My installation is located in:
"C:\Program Files\JetBrains\phpstorm"
The location gives it problems with the saving of files. (probably to do with user rights and UAC, not totally figured out what rights the folder needs, but for easy resolving I removed and reinstalled Phpstorm to
"C:\development\phpstorm" and it resolved the issue.
For those who have a simular issue on windows machines:
I have applied the "hidden" property for the .[IntelliJ-Produkt][Version] folder in Users/[Username] folder. This was causing the issue. Don't do that.
I encountered this problem when I open up IDEA for the first time after copying the old config files backed up with my Live CD USB before reinstalling my Ubuntu. I think it is because I copied the files from the old OS and to the new OS as root, so the ownership of the folder is changed. Now when I want to write to it as another user, it blocks me from doing it.
Change the ownership to your user and change permission to add write solves it. You use chown and chmod.
On OSX, I've uninstalled PhpStorm, and then have installed it again, always by using the JetBrains TOOLBOX.
Hope it helps!
Windows Defender was the issue
Windows defender has a protection component called ransomware protection (details: https://www.makeuseof.com/tag/protect-ransomware-windows-defender/)
This restricts folder access (for selected folders) to some programs only.
Add Webstorm to allowed applications
Excerpt is below. Full guide with pictures are here: https://www.windowscentral.com/how-allow-blocked-apps-ransomware-protection-windows-10-october-2018-update
Open Windows Security.
Click on Virus & threat protection.
Under "Ransomware protection," click the Manage ransomware protection option.
Click the Allow an app through Controlled folder access option.
Click the Add an allowed app button.
Click the Recently blocked apps option.
Click the + (plus) button for the app you trust and want to allow.
Click the Close button.
I faced the same issue today and it might help some people if above solutions cant help. I am using dual boot system. Win 8 and Kubuntu. I got this problem with my intellij installed in Kubuntu. I realized my project was in a NTFS partition which was marked as READ ONLY. This happens sometimes when you shutdown windows and start computer into your linux.
Solution is to go back to your windows OS and restart it and switch to linux. Also, you could hold shift and press shutdown button, then choose to turn of your pc in the blue menu.
On windows 10 I had the same problem, I ran PhpStorm as administrator which fixed permission issues it had.
Then I restarted PhpStorm without administrator permissions and everything worked fine.
It was a fresh install so no plugins other then the build in ones.
I've encountered this issue multiple times; rebooting my (windows) computer has always worked for me (while restarting Intellij didn't do anything).
It's because you don't have permission to save settings. On my macOS, I set write permission of my project.
I got same error message for InteliJ WebStrorm saying
Unable to save settings
Failed to save settings. Please restart WebStorm
It happened due to permission issue. if you don't have permission to save this message could pop-up. Please make sure you have write permission to the folder you are saving.
I might be late at answering this but I did not see any accepted answers here.
I got a solution to this on other forum.
They suggested to start IntelliJ IDEA as Administrator.
It worked for me.
Hope it helps people who come here searching for answers.
for my Ubuntu, i fixed it by issuing this command.
sudo chmod 777 /path/to/dir
I've found this, but didn't work in my case.
I'm using eclipse indigo SR1 in a linux Fedora 32 bits. It's virtualized by VMWare Player. All applications in this linux is working when I configure the proxy settings but eclipse. I'm getting this errors that appears to be well known.
I have found This solution that I've tried in my enviroment, but didn't work. When I configure settings in eclipse.ini and launch eclipse, I get errors in the log like this:
!MESSAGE System property http.proxyHost has been set to 8080 by an external resource. This value will be overwritten using the values from preferences.
How can I force eclipse to prefer configurations in eclipse.ini instead of preferences panel?
Have somebody any insight?
Best regards.
You need to specify the following options below the -vmargs option in the .ini file, each on a separate line:
-Dhttp.proxyPort=8080
-Dhttp.proxyHost=myproxy
-Dhttp.proxyUser=mydomain\myusername
-Dhttp.proxyPassword=mypassword
-Dhttp.nonProxyHosts=localhost|127.0.0.1
Btw, are you behind an HTTP proxy or some other proxy? and why doesnt preferences menu work for you?
Try adding this line to .ini file if above arguments dont work:
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient
Ayushman's answer helped me but after that I am still unable to install software from eclipse market place.
I got one link after that I can install software from eclipse marketplace.
Click here
This works fine for unauthenticated HTTP proxy requests. However, if you have a proxy that requires authentication (typical for sites where Kerberos is installed and/or Active Directory, or where network security is paranoid) then this method doesn't work.
If you set the JVM's proxy to use the same settings as IE, the proxy request will automatically pass the security credentials, as long as you've browsed the web with IE first (and thus the security token has already been obtained).
Steps to set JVM proxy:
Open Control Panel
Programs
Java
General tab
"Network Settings" button
Select the radio button for "Use Proxy Server"
Give your proxy address and port number (usually 8080)
Click OK
Hope it will help.
I was facing the same problem, and I tried different solutions mentioned here and in several blogs without having one working to me.
However... one solution I found is that if you have an x32 Eclipse IDE, and an x64 OS, setting will not always save, and you may face these problems.
I had this problem with Juno x32 + Win7 x64, now it's solved using Juno x64, and Kepler x64
So, check your OS/IDE and make sure that you have the right versions.
Conversion to Dalvik format failed: Unable to execute dex:
wrapper was not properly loaded first
[project]
Android Packaging Problem
I've never worked with Java or eclipse before, I'm following this introductory guide and all searches via google return no helpful results. I'm guessing the problem is I have built Android stuff with eclipse properly but I have no idea, I followed this guide to the letter and everything went as it explains it should.
Any ideas what caused this problem, or is it specific to the guide? If so I'll post on their help page.
I have tried doing project -> source -> clean up, but that didn't fix anything.
Edit:
I went to Project -> Android tools -> Dex bytecode and it reported:
DexDump: missing classex.dex for project. Please compile first.
So I guess that's my problem! Not sure how to solve though.
Go to Project -> Clean
It will rebuilt workspace and fix the errors if any.
As I said, I had the same problem so I tried all the different versions and
then I stopped filling in the SDK-version number
and finally it did not complain anymore about the wrapper.
After that it was totally fine to write the SDK-version when I created new projects.
Hope it works out for you too.
Had the same problem (running on Windows 7). I resolved it by running Eclipse with Administrator privileges.
try to run eclipse under administrator permission. Problem may be resolve.
I think you installed the SDK in "Program Files" folder . So for do something inside, must have administrator permission.
One thing that may help is to create a new test Android project.
In Eclipse, select File → New → Android Project.
Set the project name to "Test3", check Android 2.3 for the build target, type "com.example.android.apps.test3" for the package name, and type "Test3Activity" in the "Create Activity:" text box. The form should look like:
Click Finish.
Expand the entry for "Test3" in the Package Explorer. Navigate to res/values/strings.xml. Double click on the entry for strings.xml:
Set the text content of the string element having name "app_name" to "Test3":
Right click on "Test3" in the Package Explorer and select Run As → Android Application. The emulator should open and after a long while, you should see:
If these steps do not work, then you probably have an error in your installation.
Try it out and let me know.
I had the same problem earlier today. Google was largely unhelpful.
I fixed it by removing the project from eclipse, then re-importing it.
According to this bug report the problem is caused by upgrading to version 9 of the SDK.
Had the same HelloWorld problem with Ubuntu 64 Lucid / Eclipse 3.5.2 from Ubuntu repository. Restarting Eclipse did the trick, though I notice it still fusses about API level requirement when HelloWorld is run.
Running it as Administrator has solved this issue for me..
Had the same problem - occurred after I tried downloading Android platform v2.3.3 (was using 3.1 and 3.2 earlier) and it interrupted in the middle - restarted eclipse and cleaned all projects and rebuilt and the problem went away
At what point in this tutorial/guide are you running into this problem and did you make sure to include your package information in each file or ie com.something.somethingelse at the top of your class or classes?
Perhaps a registry error or maybe even a problem with activity implementation.
Please post your code if this did not start you in the right direction.
Here are a few things to check:
Make sure you have the latest version oF Eclipse (Helios)
Make sure that you have the Android SDK plug-in for Eclipse.
Now if you have done that... Make sure that any classes you add (Each screen you view on Android is a class and is called an Activity) are in your androidmanifext.xml file See http://wrenbjor.com/2011/01/12/the-androidmanifest-xml-file/ for help on understanding this process.
otherwise make sure there are no red x's in your code or it wont work.
If you still have problems post some code and we can try to help.
Had the exact same problem the other night. Upgraded to Helios (3.6) and it went away, quite possibly as a side-effect.
Under windows 7, rather than run eclipse as an admin, change the permissions on the eclipse folder so the creator/owner has full control, and do the same with the folder the android SDK is installed into.
I had installed Eclipse using the files provided by Windows' native ZIP extractor. I deleted the files and took them from 7-Zip instead. Now the error is gone. So maybe using another ZIP extraction tool will help.
Recently got this when failing upgrade using adb-manager with eclipse open (win32). As eclipse was open, upgrade failed. Then returning to my project this problem occured.
Was solved by closing eclipse, restart as administrator and cleaned project.
I had the same problem but I resolved it using following steps(using eclipse helios and windows XP ) :-
Right click on eclipse.exe.
click on Run As...
Uncheck the checkbox before "protect my computer from unauthorized activity".
And it is running for me as expected !
hope it will also run for you.