Unable to read repository at http://beust.com/eclipse - eclipse

Eclipse for Testers
Version: Indigo Release
Build id: 20110615-0604
I try to install TestNG but below error appeared.
"
Unable to read repository at http://beust.com/eclipse.
http://beust.com/eclipse is not a valid repository location.
"
Kindly Resolve the problems

This is because http://beust.com/eclipse is redirecting to http://dl.bintray.com/testng-team/ and Eclipse software seems to be not handling this URL redirection as intended.
If you add the URL as http://dl.bintray.com/testng-team/testng-eclipse-release/ then this will work OK.

I added one "/" to the end: http://beust.com/eclipse/, then it works. If you use RAD 8+, navigate from Windows -> Preferences -> General -> Network Connections, make sure you have correct settings here, for me I have to change the setting from Native to Direct.

Disconnect from your company's intranet network and connect to your network (Like mobile hotspot or home wifi). Try install then. Worked for me.

You can try below link
https://www.techbeamers.com/install-testng-in-eclipse-ide/
The URL for downloading the Zip file is for version 6.11 in the above link. If you need a higher version try
http://dl.bintray.com/testng-team/testng-eclipse-release/zipped/

It doesn't work for Eclipse Neon at all. You can try to download the zipped archive file and add the 'update site' as an archive file from the file system.

> Install TestNG In Eclipse IDE Via Offline Jar Files
Download the latest TestNG Jar files from the link TestNg Jars
Go to the eclipse installation directory and look for the “dropins” folder there.
Create a folder inside the dropins folder and name it as “testng-eclipse-6.11“
Extract the “site_assembly.zip” file and copy its contents to the newly created “testng-eclipse-6.11” directory.
Restart Eclipse
source: techbeamers

Make sure you don't have a space character before or after the entry in the "Work with" field as you try to add the software site.
Other than that, the software site is perfectly valid. Perhaps the server was just down at the time you tried it. You could also check to verify that there is no proxy or firewall filtering on your end. Try pinging the site or accessing it in some other way. If Eclipse can't talk to the site, it has no way of knowing that it is valid.

Make sure you are connected to the Internet
Key in the exact URL - http://beust.com/eclipse/

I tried Network connections -> Change native to manual -> Selected Socks and clicked on clear then I tried to install the TestNG plugin from install new software and add the URL. while installing eclipse was asking to sign in but I clicked on ok every time and installation were completed.
I tried many steps editing the eclipse.ini file etc and changing native to direct. None of those steps worked for me

Try below steps:-
Ping the URL in CMD to check if there are any loss of data packets.
So you will get clarity it is problem with your network or not ,try with different network.
Many times your antivirus or firewall block the incoming network so disable them temporarily and try.

To resolve this issue.
GO to Eclipse installed folder
Edit eclipse.ini file and insert
-Djava.net.preferIPv4Stack=true
at the end of that file. Restart the eclipse.

The given link is https://beust.com/eclipse
remove "s" from https & try with link http://beust.com/eclipse

I was using "http://beust.com/eclipse/" but unable to download TestNG jar it is showing no contents.
If you will use this URL "http://dl.bintray.com/testng-team/testng-eclipse-release/" then you will able to download, it worked for me.

Just install TestNG from below URL and no such issue will occur at latest eclipse releases:
http://dl.bintray.com/testng-team/testng-eclipse-release/

The above link didn't work it means you need a higher version of TestNG for the eclipse. Before that check TestNG is installed or not in order to know that press CTRL+N in the wizard you can see TestNG class file name.
If it is not displaying then try installing TestNG In Eclipse IDE Via Offline Jar Files:
1)Download the latest TestNG Jar files from the link TestNg Jars ("https://github.com/cbeust/testng-eclipse")
2)Download TestNG 6.11, Clicking on the link will download the “site_assembly.zip” file for the TestNG version 6.11. This file contains two folders named as “features” and “plugins“.Go to the eclipse installation directory and look for the “dropins” folder there.
3)Create a folder inside the dropins folder and name it as “testng-eclipse-6.11“
4)Extract the “site_assembly.zip” file and copy its contents to the newly created “testng-eclipse-6.11” directory.
5)Restart Eclipse
OR
Go click on Help> Install new Software> Under Available software> Work with textbox paste this "2019-06 - http://download.eclipse.org/releases/2019-06" and then click on ADD. You will now see the files like TestNG and a lot many others. Select TestNG click on Next> Next> Accept the condtions> Finish. It will restart the eclipse. Inorder to know the installation is successful Press CTRL+N.

Related

Has problem in Installing PyDev into Eclipse

I tried to install PyDev into Eclipse, when I tried to install new software with this site : http://www.pydev.org/update, it complains unable to read repository. I tried to go the page
http://www.pydev.org/update and click the links on this page, it returns 404 page error. Does anybody why? How can I install PyDev into Eclipse?
Thanks,
Josephine
https://github.com/fabioz/Pydev/releases/download/pydev_8_3_0/ is where it links today, and that link goes to a 404 error page...
I get the same issue - fails trying in install via Marketplace. The links all 404 error. In the PyDev installation troubleshooting (https://www.pydev.org/manual_101_install.html), it mentions:
Unable to load repository
While most times things work as explained, some users may have messages such as:
Unable to load the repository http://pydev.org/updates
Unknown Host: http://pydev.org/updates/content.xml
This means there's some issue accessing the update site in your current connection.
In that case, you can try using a direct URL for the download (all the http://pydev.org/updates/ URLs are actually redirects to the final location). Currently, those redirects point to links on http://bintray.com, so, you can visit the related update site page (such as http://pydev.org/updates) in a browser and see to where it's being redirected (you may want to try that direct link with http or https to see if it makes a difference in your use case).
If they ARE redirecting to Bintray, it has been sunset according to JFrog: https://bintray.com
That said, I was able to install PyDev manually using the ZIP on SourceForge: https://sourceforge.net/projects/pydev/files/pydev/
Download and extract the zip, then copy the entire folder to the Eclipse 'dropins' dir (not 'plugins'). On Mac OS, open the Eclipse.app package contents, then copy the unzipped dir, and you should end up with:
Eclipse.app
Contents
Eclipse
dropins
PyDev
features
plugins
Then launch Eclipse. Rather than using Finder, I launched it from Terminal w/ the -clean option to try to refresh the installed plugins:
/Applications/Eclipse.app/Contents/MacOS/eclipse -clean
I didn't see "PyDev" in the toolbar like I'm used to, but PyDev is in Eclipse Preferences, so I set PyDev > Debug > Remote debugger server activation="Start when the plugins is started", and relaunched Eclipse. So far, so good...

Json Editor Plugin installation?

I feel really stupid by asking this question, but how can I install Json Editor Plugin in my Eclipse Helios? I looked at the Forum in sourceforge, but I can't install it neither through .zip or by adding a web site. And will I need to change the execution environment to Java 1.6?
Here is what I did to get the Json Editor Plugin to show up in the Install Dialog.
By doing a little Google-ing, I found this page which describes the steps to install JsonEditorPlugin on 3.4.
After you have followed the first 6 steps, make sure that Group items by category is un-ticked. After that, you can then choose Json Editor Plugin to be installed from the local Zip archive that you have downloaded from the net.
Edit: as a side note, you must not have the unzipped contents of the zip archive in the dropins/ folder, otherwise it will appear as if the plugin is already installed.
Simply dropping the zip contents into the dropins folder however did work also.
Note: You must right click your .json file and choose 'Open with' -> 'Json Editor'
You can install plugins by just unzipping them into the dropins folder.
It does not matter if the zip file contains the parent folders "plugins" and/or "eclipse".
I would recommend Java 1.6 as it brings a better performance and the plugin might require Java 1.6. On your desktop shortcut you use following execution arguments:
eclipse -vm <path to jre 1.6 installation folder>\bin\javaw
Download jsonedit-repository-0.9.7.zip (or whatever) and put it in a folder you like.
In Eclipse Help --> Install New Software
Add --> Archive button and select the zip file.
Name it and press OK
Press button Next and Follow master of installation.
Then after opening json file possibly needed right click mouse on the file --> open with --> JSON editor

How to manually install software/plugin to Eclipse IDE?

I have downloaded a RAR file from the following location, to be (manually) installed to Eclipse (Helios). How can I perform the manual installation?
http://sourceforge.net/projects/eclipsesql/files/SQL%20Explorer%20RCP%20%28exc%20JRE%29/3.6.1/sqlexplorer_rcp-3.6.1.macosx.cocoa.x86.tgz/download
Instead of putting it directly into the plugins directory, it's better to use the dropins directory as this was created just for this purpose. Have a look here: http://wiki.eclipse.org/Equinox_p2_Getting_Started#Dropins
For sqlexplorer: do not download the full RCP version (as your link does), this one is standalone. Get this one instead: http://sourceforge.net/projects/eclipsesql/files/SQL%20Explorer%20Plugin/3.6.1/sqlexplorer_plugin-3.6.1_SR2.zip/download
Extract this to $eclipse_home$\dropins\sqlexplorer and restart Eclipse.
BUT: Using the SqlExplorer Update Site (http://eclipsesql.sourceforge.net/) would be an even better option (Help>Install new Software)
I have tried the installation with the explanation about the dropins folder and had to tweak it like that:
Unzip the distribution into your eclipse installation directory under the folder dropins. Your structure should be:
eclipse/
dropins/
eclipse/
features/
plugins/
Remove all other files and directories. There is some missing piece (file contents.xml), so that the distribution is no real p2 repository which leads to an error. The directories plugins and features are sufficient.
Restart your eclipse (I have done it with option -clean, not sure if that is necessary).
SQLExplorer is then installed and visible in the help, in different menus and with a new perspective.
I even was able to use it to have a look at my SQLite3 database of a rails3 application. Wow!! So I will give it a try.
From their website (http://www.sqlexplorer.org/):
Eclipse Plugin
Download
Download the Eclipse SQL Explorer plugin and extract the zip file in your eclipse directory (requires Eclipse 3.3 or better).
After restarting eclipse with the -clean option, a new SQL Explorer perspective should be available.
Eclipse Update Site
You can install and update Eclipse SQL Explorer via the eclipse update mechanism. The update site for Eclipse SQL Explorer is http://eclipsesql.sourceforge.net/
I always go for the update site option if they present it, it's easier and lets you do updates easily. To use the update mechanism just select Help > Insall New Software... then enter the update site, press Add and go through the wizard.

Is there any Eclipse plugin which autobackup a project every so and so minutes to an email a/c?

Is there any Eclipse plugin which autobackup a project every so and so minutes to an email a/c?
After doing some research, I found that such a feature is already present in Eclipse. Eclipse stores every new edit in a file in the following backup folder present in the workspace folder .metadata:
{Eclipse root directory}/.metadata/.plugins/org.eclipse.core.resources/.history/
The backup can also be accessed from right clicking a file and choosing "Restore from Local History...". However, when it comes to emailing the code, there is no such function that comes with default version of Eclipse, so I guess I do need to learn Eclipse Plugin.
Here are some relevant links:
http://www.nodans.com/index.cfm/2008/1/18/How-to-recover-a-deleted-file-in-Eclipse
http://wiki.eclipse.org/FAQ_Where_is_the_workspace_local_history_stored%3F
Take a look at Subversive/Subclipse
Installing a CVS would do it, but any backup utility software running in the background would also work.

Can't add server to a moved workspace

I have this workspace downloaded off the web and I try running it on a tomcat server from a fresh installation of Eclipse Ganymede. This particular project came with its own workspace.
When I select Tomcat v6.0 I get a message
Cannot create a server using the selected type
Older tomcat versions are available, though.
I guess I have to recreate some configuration setting. The question is which one? This seems to be some odd error as creating a new dynamic web project lets me configure tomcat for both of them
I had a similar problem, but my solution is a little simpler. The problem was causesd by renaming the original folder that was referenced by the server definition.
Go to Window/Preferences/Server/Runtime Environments, remove the broken reference. Then, click 'Add' to create a new reference, select the appropriate tomcat version, click next and you'll see the incorrect path reference. Fix it. Move on.
I had this same problem on Ubuntu 8.10 with Ganymede and Tomcat6. This appears to be some sort of bug with Eclipse. If you try and create a server, and it barfs, you can't create another tomcat6 server. To correct this problem, do the following:
close eclipse
go to the {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings directory and remove a file called org.eclipse.wst.server.core.prefs.
start eclipse
add your tomcat6 server in the server tab
kotfu
#id thanks for the solution but something is also hidden in org.eclipse.jst.server.tomcat.core.prefs
So in order to solve the problem
close eclipse
go to {workspace-directory}/.metadata/.plugins/org.eclipse.core.runtime/.settings
remove the files org.eclipse.wst.server.core.prefs and org.eclipse.jst.server.tomcat.core.prefs
Tomcat 5.5
I order to be able to use the tomcat5.5 server you need to have a writeable catalina.policy file as mentioned in
http://dev.eclipse.org/newslists/news.eclipse.webtools/msg16795.html (= add a READ and WRITE permissions to the files in directory "{$tomcat.home}/conf" (chmod -vR a+rw {$tomcat.home}/conf/*). To be more specific, on the file "catalina.policy". After that, the Tomcat server can be added in the Eclipse servers)
(dead link) http://webui.sourcelabs.com/eclipse/issues/239179
and to have the tomcat5.5 stopped before entering eclipse and started afterwards.
Tomcat 6
In order to be able to use the tomcat6 server the proper solution is to have a user instance of the tomcat6 server as described in
/usr/share/doc/tomcat6-common/RUNNING.txt.gz
RUNNING.txt (on the WEB)
My configuration is Debian/Sid, Eclipse 3.4.1. Ganymede
The error view really is key. There is a lot of detail in there -- if necessary, right-click on the entries and copy their contents into your favorite text editor. One problem that can come up, for instance, is that if you have a server configuration already in place, and one of the configuration XML files is unparseable, the server can't be added. This happened to me this evening -- my <Context> element had a linebreak in it, so it was <C(linebreak)ontext>. This prevented Eclipse from recreating the server configuration.
i finally got mine to work with the default Ubuntu 8.10 tomcat. (the debug command-line on eclipse is a wonderful thing) First i had to make a couple of symbolic links and then change the permissions to a file. (you might want to think twice about changing the permissions depending on your configuration, but if eclipse can't read the file it throws and exception and the gui won't let you continue)
sudo ln -s /etc/tomcat6 /usr/share/tomcat6/conf
sudo ln -s /etc/tomcat6/policy.d/03catalina.policy /usr/share/tomcat6/conf/catalina.policy
sudo chmod a+r /usr/share/tomcat6/conf/tomcat-users.xml
Hum it can tricky. Bring the "server" view. If your project has already been deployed, remove it from the server to clean the binding between your project and the server.
Or you can right-click on your project in the project explorer and choose debug on the server. If you don't done it already, Eclipse should ask you to create a server runtime and here you can specify Tomcat 6 and specify the location of your server installation.
You can also see the "problems" view to see any problm in the project imported like the JDK etc...
Look in the error view. If you tried to set one up once and failed, Eclipse seems to try and look there again later just before allowing you to create a new one. If you've deleted the folder or its not there any more, you need to replace it so that you can proceed.
The only way I found to use the Tomcat 6 is changing the ownership of the Tomcat directory to my user. It seems that is not enough to have r/w permissions.
BTW, removing org.eclipse.wst.server.core.prefs erases you workspace configuration.
I had had same problem until I went to tomcat6 configuration directory and added ownership to my user in addition to root:
cd /usr/share/tomcat6/conf
chown root:myusername ./*
chmod 777 ./*
You can choose some better chmod for security, 777 is just a quick brutal fix.
I have Eclipse 3.5 (Galileo) + Fedora 12 + Tomcat 6 extracted from tar(which is why Eclipse could not access it). Eclipse had been complaining "Cannot create a server using the selected type".
What version of Eclipse? Europa? Ganymede?
What do you mean by workspace? An Eclipse workspace is not something you deploy, it holds your projects.
You will need to generate a WAR file (or the folder of files that would comprise the WAR file), a project would typically include an ANT or Maven build script to do this, or if the project used Eclipse's Dynamic Web Project type there might be a 'generate WAR' option somewhere. Without further details I can't help any more.
Adding a new dynamic web project to the workspace seems to 'unlock' the feature.
Changing the ownership to my user worked for me.
In my case, it was the corrupted Tomcat configuration files. Eclipse log was saying:
org.eclipse.core.runtime.CoreException:
Could not load the Tomcat server configuration at
C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.14\conf.
The configuration may be corrupt or incomplete.
Got a new Tomcat distribution, removed the old one and all good now.
Finally got this problem solved on my system.
1) got rid of the apt-gotten tomcats
2) installed a typical tomcat from bins at tomcat.apache.org
3) got rid of my openjdk
4) installed the sun jdk (apt-get)
5) removed my web projects in eclipse
6) noticed that when adding a web project you can set "Target Runtime" - I tried setting it to Tomcat 6 and it let me know there was a problem
Maybe none of the above mattered, but here's what might have mattered:
7) KICKER: Window -> Preferences -> Server - Runtime Environments. Removed any crappy runtime environments here, and added the path to my newly installed tomcat.
This Question is maybe old. But I just ran into this problem. My project was not recognized as a web project (no globe icon in Eclipse ).
Suppose you use maven plugin , it failed to convert to web project with command
mvn eclipse:eclipse -Dwtpversion=1.5
In package Explorer, right-click on the project / configure / Convert to Java Facets project/ Dynamic Web project in Eclipse
Et Voilà
Check the .project file at the root before and after the convert.
You will see new natures.
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
Instead of deleting config settings files, just go to Preferences -> Server -> Runtime Environments and remove the "forgotten" environment....
Thanks a lot this answer working for me..
I had a similar problem, but my solution is a little simpler. The problem was causesd by renaming the original folder that was referenced by the server definition.
Go to Window/Preferences/Server/Runtime Environments, remove the broken reference. Then, click 'Add' to create a new reference, select the appropriate tomcat version, click next and you'll see the incorrect path reference. Fix it. Move on.