Netbeans: Error in loading component property: Other components-> - java

And it continues:
mainPanel->panMain->border Cannot read property.
This is the result attempting to go from Netbeans 6.8 to Netbeans 7.0 and 7.1 and 7.2. the latter two don't support the Swing Application Framework and 7.0 won't let me build new projects so I am on a crusade to get back to 6.8 in order to support and maintain a large system in use by some very large companies indeed. I've asked some questions on the netbeans forums and gotten minimal response, only a small fraction of which was helpful.
stackOverflow, however, knows everything, which is why I'm here.
Can anybody help me figure out this error condition? I have been pounding on this for a week.
If my software didn't maintain some sort of backwards compatibility path, we'd have been out of business long ago.

Well it appears that this error is caused by building a project with a newer version of Netbeans and then trying to work on it with an older version. Lesson learned? Don't create a project with NB 6.8, build it with NB 7.0.x and then try to revert to NB 6.8 or 6.9 because of bugs in 7.0.x.

I had similar problem and I fixed it by activating "Java SE". For some reason when I installed Netbeans, Java SE wasn't activated. The way to activate is by going to Tools->Plugins->Installed and then check the Java SE box and then click on Activate. Restart Netbeans IDE. That's all folks and it worked for me.

Related

Is there any way to use GWT 2.9 with Java 11 using Eclipse GWT plugin?

We have a huge GWT project (GWT 2.7, JDK 1.7, Eclipse) everything works perfect. We are planning to upgrade to Java 11 and GWT 2.9 which has been recently released. However Java 1.7 is retiring and getting obsolete we have to move on and upgrade. Since last week we are trying to create a development environment like the existing one but there is no success. I was wondering whether anyone out there is struggling with the same issue, any hint, solution or hacking the eclipse plugin would be greatly appreciated.
Eclipse plugin comes with GWT (2.7 and 2.8.1)
Yes, you can.
download gwt-2.9.0.zip from gwtproject.org
unzip it
start Eclipse
open the preference panel
choose GWT -> GWT Settings
add gwt 2.9.0 by pressing the add button on the right

Eclipse internal error "Polling news feeds"

I'm using Eclipse(4.9.0) on my MacBook (High Sierra, Java 11) and this error is showing sometimes, if I'm on another app, the errors create a "stack" as you see in the screenshot, it is annoying to come back to Eclipse and to close this error every time.
Can somebody help me solve this?
This indeed seems to be an issue when Eclipse is run with Java 11. I have created Bug 539545 to report this.
In the meantime, you can work around this issue by disabling news feed polling. To do so, go to Preferences... -> General -> News, and untick the Enable automatic news polling option:
The error window will no longer appear.
This is caused by the http://openjdk.java.net/jeps/320 - which is removal of Java EE and CORBA Modules from the standard Java 11 version.
As mentioned by #Pyves, the simple way would be unchecking "Enable automatic news polling" from the Preferences-> General -> News
But if you still need this, you can install "javax.*" bundles from the eclipse orbit repository.
Here is the latest stable repo url:
http://download.eclipse.org/tools/orbit/downloads/drops/R20180905201904/repository
Turning off the news feed does solve this problem (Per #Pyves, unchecking "Enable automatic news polling" from Preferences-> General -> News), but be aware that you may get other issues because of the too-new JDK. Noga Rotman just spent several hours working out for me that Eclipse not being able to find JUnit, even though it was installed and correctly on the classpath, was because of using the new JDK (the one that is causing these same issues).
You can solve the underlying issue by uninstalling your current version of the JDK and installing an old version, then reinstalling Eclipse.
If you have the Oracle JDK you can find uninstall instructions here and and Java SE Development Kit 8u191 (which fixed my issues) is here.
For windows version Eclipse,
Enter search key string "news"
Check off "Enable automatic news polling"
Click [Apply and Close] button.
That's it.

How to set NetBeans project properties to use Java 7?

I am new to NetBeans, and have previously been using Eclipse. I have started using NetBeans now because I need to learn a variety of Java EE concept, and I have found more relevant tutorials for the NetBeans IDE. A lot of the abstract concepts in EE still has me confused, so I have found that step-by-step holding hands-tutorials works best for me for now.
I have however met a dead end. I am following this tutorial, on setting up a web service client. However, one of the lines include a try-with-resource statement, which is new in java 7. Picture here:
When I started this tutorial, I was using Netbeans 7.1.3, with Glassfish 3.1.2. I knew it didn't have support for EE7, so i downloaded NetBeans 8.0.1 with Glassfish 4.1. I have realized later on that the try-with-resources is a part of SE, and my upgrade was in this matter reduntant.
I figured there was something wrong with my project settings, so i right-clicked it and opened it's properties. Under the Libraries option, I found that the JDK was correctly set to Java 1.7 (update 51). Picture here:
I also checked the oter options, and under Run I found that Java EE is set to 6, even though Glassfish 4.1 is selected as server. I figured this was an implementation of EE7, but the option is locked to EE6. This confuses me a bit, but shouldn't be the cause of the problem. I still attach a picture of it, just in case it is relevant:
So what is wrong with my Java settings for this project? Why can't it accept a Java 7 feature, when it seems like it is set to use Java 7? Are there other places where i need to set java version/home?
You use Java7 for the system library but compile your source code to be compatible with Java6.
To change this you have to go to sources in your project settings and change the source compatibility to Java7.

GWT Designer not working with Eclipse 4.2 service release 2?

I'm trying to do this tutorial after having installed Eclipse Juno 4.2 service release 2 (Java EE distribution) und following exactly the GWT installation instructions over here.
However, I neither get the WindowBuilder entry under Preferences, nor is there a WindowBuilder entry in the new projects dialog appearing. What am I doing wrong?
I'm running Ubuntu 12.04.02 LTS on amd64, and I have tried oracle jdk 7u17 and Ubuntu's own jdk6 distribution, but to no avail...
Just tried the same in Win2k3. Exact same result. Google is starting to annoy me. GWT 2.5.1 throws an error when trying one of my simplest projects...
Update: it is working to some extent. Meaning: WindowBuilder does not recognize GWT Designer's installation and offers to install GWT Designer for Eclipse 3.7. The designer toolbar's GWT selection possibilities therefore are not there.
Update: bug filed.
Update: bug was closed as won't fix. They don't care.
They do care. GWT is a magical development environment, under constant evolution.
They have to race with new versions of browsers, Javascript and releases of Eclipse, so sometimes tiny things may not be always documented up to date. The tutorial you are trying to run is made for GWT Designer 2.3, GPE 2.3, Eclipse 3.7 & Java 1.6.
This tutorial works also perfectly well for Juno 4.2 SR2 with a few minor changes:
In step 1, just Create a Web Application Project. You can generate project sample code, make sure that things work and then clean it up and stick with the folder layout.
In step 3, just add a class and make it extend com.google.gwt.user.client.ui.Composite. Add an empty Constructor and then you can open the GWT Designer as always, in order to do the rest. The CSS styleName property has been improved. There are tool-tips to guide you.
PS: My tests were made in Ubuntu12.04-32bit, WinXP-32bit and Win7-64bit with JDK1.7.0_17-32bit and Eclipse-32bit.
In case the designer tab does't show up by default, I noticed that I can get it by right-clicking the .java on the package explorer and selecting 'open with ...' 'WindowBuilder Editor'.

Netbeans 7.0.1 gui does not work

I installed Netbeans 7.0.1 on Ubuntu 12.04,after choosing design tab to use gui builder the
designed gui freezes at Loading... and gives me this error
java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
then the designed gui does not appear
It's like the gui builder can not reload the gui beacuse of xml problem
I tried Netbeans 7.1 but it does not have Java desktop application and i can not use it
with my projects which i created on Netbeans 6.9
any suggestions please?
According to this bug tracker your are not the first person to stumble on that error, although the OS is not Ubuntu. It might also be the case that you are missing some Java libraries which the Netbeans installation might assume that you might have.
Fresh installations of Ubuntu (amongst others) come packed with the OpenJDK. The full Java SDK needs to be installed separately.
The issue that is causing this is due to a version conflict with Xerces. I found that if you use netbeans -cp:p [location of the netbeans xerces version] then things are good... if not it tries to include it from else where and things go wonky.

Categories

Resources