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.
Related
Disclaimer: I am new to Java, new to Linux, and new to Netbeans - apologies for any over/under explanation - please ask and I will add/remove info.
I have a model written in Java in Netbeans 8.2 that has been successfully running in NetBeans 8.2 on Mac OS. This version of NetBeans was downloaded with JDK8u171 (JDK/Java package).
All components of the model have successfully transferred through FTP (filezilla) to a remote Linux machine.
The Linux machine has a copy of Netbeans 8.2 and has java/1.8.0-oracle (and 1.6.0 and 1.7.0), and has java/1.8.0-openjdk (similarly, 1.6.0 and 1.7.0 also).
I am assuming that 1.8.0-oracle is the equivalent of JDK8u171 but I may well be wrong.
When I load netbeans using
module load java/1.8.0-oracle
module load netbeans
netbeans
The program opens (via remote desktop - x2goclient), and I can search for the project and open it.
Once open, I see:
'myprojectitle (broken)' in the project window on the left of the NetBeans GUI
right click -> resolve problems
...opens a screen saying
'The JDK is missing and is required to run some NetBeans modules Please use the --jdkhome command line option to specify a JDK installation or see http://wiki.netbeans.org/FaqRunningOnJre for more information.'
Does this mean I am using the wrong jdk/java package?
Or is the jdk package configured incorrectly in Netbeans, if so how can I reconfigure?
Any help would be greatly appreciated.
The solution to this was found at
The JDK is missing and is required to run some NetBeans modules
Whereby, java/1.8.0_171 needed to be installed and then netbeans needed to be opened as follows:
netbeans --jdkhome /path/java/1.8.0_171
Apologies for a repeat, but hopefully this answer can either redirect or offer a solution
Trying to do some development with SWT, but am unable too as it keeps saying the SWT package is not installed. See following screenshot
However when I go to Help->Install New Software->http://www.eclipse.org/swt/updates/3.8 it states that all items are installed for SWT Tools. Anyone ever ran inot this, and if so, what was needed to resolve?
Using Eclipse Juno with WindowBuilderPro on Windows 7. Both eclipse and Windows 7 are 64bit installs
Usually SWT should work right away.
However, this might work.
All it does is add the SWT library to your project.
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'.
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.
I need to build gui for my application in Netbeans (I'm not interested in other solutions, for example Eclipse and its plugins cause my teacher demands my app to be written in Netbeans only).
I created a Netbeans Java project and added JPanel and JFrame form but drag and drop builder doesn't work. I still see this:
and even if I try to drag (for example), JButton and drop it on JPanel nothing's happen.
What should I do? Use latest Netbeans 7.1 on Kubuntu 12.04.
My IDE log: http://pastie.org/private/lige9jjnsi2fq7bx08purw
And see also this:
Debian/Ubuntu
This might to be a bug at the moment in the Debian/Ubuntu Version. I found the following two bug reports, that seem to match your bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653915
https://bugs.launchpad.net/ubuntu/+source/netbeans/+bug/944857
To sum the bug reports up: There doesn't seem to be a real fix to that yet, but for some people starting NetBeans with the following command is a workaround:
$ netbeans -cp:a /usr/share/java/xercesImpl.jar
Unfortunately I don't have a Debian bases system here at the moment, so I cannot test, if it would work for me.
Gentoo
It seems that the same bug also effects Gentoo Linux. I could workaround there by emerging dev-java/batik and then starting NetBeans with:
$ netbeans-7.1 -cp:a /usr/share/batik-1.7/lib/batik-ext.jar
The versions in this command might need to be exachanged, if you have installed different versions of the applications.