Unable to add a Server to Eclipse Photon - eclipse

I've recently installed Eclipse Photon. I have an earlier version (Mars) that still works fine.
In installing it I just downloaded the zip file oepe-12.2.1.9-photon-distro-win32-x86_64.zip from https://www.oracle.com/tools/downloads/oepe-v12219-downloads.html - and then launched it after the download.
It starts up okay - but obviously something isn't quite right.
For one thing I can't add a WL server. The Define a New Server dialog looks like this - which won't allow me to actually add any of my WL server installations...
When it should look like this (from my old Mars installation)...
Any suggestions?
Thanks much

Related

Netbeans plugins site is down rendering netbeans useless

I'm using Netbeans 11.1 and need to a open a JS file in my project.
I need to install the Oracle JS Parser for Netbeans which I cannot do so because the site - plugins.netbeans.org is down. I'm getting this error -
Networking problem in
http://plugins.netbeans.org/nbpluginportal/files/nbms/1552395301_org-netbeans-libs-oracle-jsparser.nbm
Is there anyway I can install it manually otherwise I cannot resume work with netbeans rendering it useless.
The issue you are encountering was a bug in the released version of NetBeans 11.1. See Bug Report NETBEANS-2903 Warning - could not install some modules: Nashorn Integration - No module providing the capability com.oracle.js.parser.implementation could be found. 19 further modules could not be installed due to the above problems.
You have two options to fix this:
Upgrade to NetBeans 11.2 or later, where the problem does not exist.
Download and install the plugin yourself on NetBeans 11.1 by going to Tools > Plugins > then clicking the Settings tab, then the Add button. In the Update Center Customizer window enter any descriptive text in the Name field, in the URL field enter https://netbeans.apache.org/nb/plugins/11.1/catalog.xml.gz and then click OK. However, I just tried that, and got the error "Unable to connect ... because of Unexpected end of file from server". That connection may come good at any time, or it may be that you can no longer reliably access the plugin libraries for older versions of NetBeans.
So your only immediate solution is to upgrade to any newer version of NetBeans. That's desirable anyway, because you will get other bug fixes as well as this one. And if you move to NetBeans 12.x you will also get added functionality, and be able to use more recent versions of the JDK.
Also, as a separate but related matter, you were using an http URL rather than an https URL for your download. I'm not certain, but I doubt if that will work now; if you are not using a secure link you should expect failure, and in any case it looks like you were using a URL for NetBeans 8 rather than NetBeans 11.

build.dir error in netBeans

I am working on my own, learning about Java servlets and JSPs. My machine configuration as follows is from NetBeans' About page.
Product Version: NetBeans IDE 8.0.1 (Build 201408251540)
Updates: NetBeans IDE is updated to version NetBeans 8.0.1 Patch 1.1
Java: 1.8.0_20; Java HotSpot(TM) 64-Bit Server VM 25.20-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-b26
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Tomcat 8.0.14 for Windows x64 is also installed as the web server.
I created a tiny web app yesterday, which was working as expected. When I went to the next exercise in the book, it was necessary to install MySQL. That seemed pretty straightforward, but alas, the install ran into a couple of problems. Unfortunately, I had not created a restore point right before that attempt, so I went back to the restore point created before the Tomcat install.
I re-installed Tomcat, and as a sanity check, started it, started NetBeans, tried to the run the tiny web app and after removing the server and re-adding it (because I got an error about the server) in NetBeans, got a message that I needed to set the build.dir.
For a tiny app, this is just annoying, but when working on a large app, it would be nice to avoid this problem. Another book author supplied app was working before, and is still working so...
Here are my questions:
1) Why/how would simply re-installing Tomcat cause a break in something that was working?
2) It seems as if the build.dir is set in build-impl.dir (in the app that is working) with a statement like (the opening and closing tags are missing so the statements would appear):
property location="${build.dir}/empty" name="empty.dir"
One post I read somewhere said that the above statement should be before the:
fail unless="build.dir">Must set build.dir
3) How/where is this build.dir set during the creation of a NetBeans web app? Is there some dialog box that I'm not completing correctly? If I miss it, is there a way to get back to it after the app gets "confused"?
Thanks in advance for any help on this.

netbeans plugin update constantly freezes at 50%

I've been trying to update my netbeans plugins ever since 7.0.1, but I've never been able to get beyond half of the installation bar. It just freezes at around 50% each time. After I close the IDE, it will attempt to update but fail. I've updated to 7.1 but the issue still persists even for the initial Junit plugin installation after a fresh installation of 7.1.
I've attached a screenshot. Does anybody know what is the issue here?
I read in the Definitive Guide to NB Platform 7.1 that you have to install NetBeans (well because of the JUnit) into the folder, where it has write rights. Which is not the Progam Files in Windows 7.
So try to install it for example into C:\Programs or something like that. You can install new version (7.1.1) even without uninstalling the older one and then let the NB get your previous settings (it will ask).
You can try temporarily disabling your firewall and/or antivirus. I got the same problem, and disabling AVG Internet Security everything worked fine. Hope it helps!
I think that problem is in network. So try to change network you are on. I am using university network that has many policies and only JUnit plugin installation stucks. Went to local wireles public network and JUnit plugin was installed successfully.

Cannot update or install any new software in any version of eclipse

I've read the other posts about being unable to install software in eclipse, but I still can't seem to get anything to work. I've tried on both Eclipse Indigo and Eclipse Juno - neither of which seem to be able to connect to anything, yet I can open the web browser.
On my other computer, which was previously configured, it contacts the software sites perfectly fine. I can also use the internal web browser on both version of eclipse - navigating to www.google.com.
I've tried updating Eclipse using http://download.eclipse.org/releases/indigo/ and I have tried to install ADT with https://dl-ssl.google.com/android/eclipse/.
I'm attaching an image of the error I'm getting. Also it appears I am getting 'permission denied'
Regarding the ADT, i couldnt get it to work with indigo for the life of me. After looking around a lot i realized that there are some comparability restrictions for the ADT plug in. The latest version of the ADT works on Eclipse Helios 3.6 or higher.
http://developer.android.com/sdk/requirements.html
also make sure to do "run as administrator" when you start eclipse if you are going to install software.
I had the same problem, I'm not sure if it would help but here is what I did anyway:
Uninstalled AVG
Ran SFC /scannow
SFC found some corrupted windows files and repaired them
Restart
Not sure if uninstalling AVG did anything, but I saw it as a possible solution somewhere else.
I am now using MSE since it seems to be more compatible with my system...
Maybe you need to connect thru a proxy?
Check you browsers connections settings.
I've had the same issue before and it turned out to be due to a VPN connection I had open. It must have been trying to go via that, although no other applications have had that problem. So perhaps check that you don't have any static routes which are interfering.

Show-stopper Eclipse Helios install problems under OSX (10.6) 64bit

I thought I'd give Helios a try, so I grabbed the latest Java EE install from http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/heliosr. Note, both OSX 32bit and 64bit exhibit the same symptoms.
So from a fresh install I run Helios (it launches fine), then the problem comes when I try running an upgrade. I keep getting these two errors errors:
Artifact not found: http://download.eclipse.org/releases/helios/compositeContent.jar.
http://download.eclipse.org/releases/helios/compositeContent.jar
No repository found at http://download.eclipse.org/releases/helios.
These are my (default) update sites:
Helios http://download.eclipse.org/releases/helios Enabled
Mylyn for Eclipse Helios http://download.eclipse.org/tools/mylyn/update/helios Enabled
The Eclipse Project Updates http://download.eclipse.org/eclipse/updates/3.6 Enabled
The Eclipse Web Tools Platform (WTP) software repository http://download.eclipse.org/webtools/repository/helios Enabled
http://download.eclipse.org/tools/mylyn/update/e3.4 Disabled
http://download.eclipse.org/tools/mylyn/update/extras Disabled
Note, I'm not behind any firewalls/proxies etc, no nothing weird with network connectivity.
I've searched all over the place and there are others with the same problem, with no solution that I could find.
Has anyone else run into these issues?
UPDATE 1:
Notes:
I'm not behind a proxy.
I've tried the Java EE, but also bare bones Eclipse 3.6.1.
I've tried different mirrors (including the main site),
I've tried SpingSource's version.
I've tried exporting the update sites to XML, deleting them and reimporting them.
I even tried adding forward slashes to the ends of site names.
I've made sure I have full write permissions for the eclipse folder, and have even placed it on my desktop.
I mention all of these seemingly odd behaviours because these are suggestions I've read around the web on this problem, which many people are having.
Once last interesting point I've just tried, is to download the "http://download.eclipse.org/releases/helios/compositeContent.jar" directly in the browser. It redirects to "http://www.gtlib.gatech.edu/pub/eclipse/releases/helios/compositeContent.jar" with a 403 forbidden. :\ It seems as though system is finding a mirror, but perhaps the mirror is broken? Also note, I'm in Australia, so Georgia Tech is nowhere near me ;)
Just as I was writing this, I tried one last idea. I discovered "Pulse" by Genuitec, which is a Eclipse install manager. I gave it a shot, and it worked. The site it uses for updates is:
"[url=http://eclipse.poweredbypulse.com/downloads/aux/eclipse-mirror/releases/helios] http://eclipse.poweredbypulse.com/downloads/aux/eclipse-mirr or/releases/helios[/url]"
So, I've wasted enough time on this now. I'd create a bug in Eclipse Bugzilla, but there are already entries with no solution.
UPDATE 2:
Ok, from a fresh install, if I disable:
http://download.eclipse.org/releases/helios/
and add Pulse's update site:
http://eclipse.poweredbypulse.com/downloads/aux/eclipse-mirror/releases/helios/
I don't get any errors. I really think it's to do with the automatic mirrored update site. Is this possible?
Here is a screenshot of my update sites now:
Regards,
Shane
Ok, I had the same issue on Windows XP 64bits laptop an Fresh Helios 64bits download, however your workaround works for me.
See update 2 in the question.
Shane