GWT Designer for eclipse not working - google-plugin-eclipse

I have recently installed Eclipse Luna and the gwt-eclipse plugin.
I have created Project with the default GWT Aplication generated by the wizard, which I have called "pru".
I can compile and run the Project correctly.
But if I try to use the Design View to modify the interface controls, opening the Pru.java file (with Open With/GWT Designer) I get an error.
It tries to parse the file and then throws an error:
Internal Error
encountered unexpected internal error.
This could be caused by a bug or by a misconfiguration issue, conflict, partial update, etc.
java.lang.NoSuchMethodError: com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath(Lcom/google/gwt/core/ext/TreeLogger;Ljava/lang/String;Z)Lcom/google/gwt/dev/cfg/ModuleDef;
I am running in a Surface Pro 3 with Windows 8.1 x64
I have installed Eclipse Luna under c:\Program Files
I have installed Apache Ant 1.9.4 and Java JDK SE 1.8.0_25-b18 64 bits version (I have tried with 32 bit version too, and with jdk 1.7)
I have configuered the PATH, ANT_HOME and JAVA_HOME variables to point to the correct installed directories.
I have used the "install new software" option in eclipse to install the gwt plugins.
I have installed following packages from https://dl.google.com/eclipse/plugin/4.4:
Google Plugin for Eclipse
GWT Designer for GPE
SDKS (GWT SDK 2.6.0 and Google App Engine Java SDK 1.9.17)
Do you have any idea of what's going on?
Thank you for your help.

Related

NetBeans 8.2 does not open on Mac OS

I am trying to start NetBeans 8.2 on a Macbook Pro and it's not working.
It shows the splash screen, then after a while it shuts down without starting anything.
Running from the command-line I can see this error:
Oct 02, 2017 7:40:28 PM org.netbeans.ProxyURLStreamHandlerFactory register
SEVERE: No way to find original stream handler for jar protocol
java.lang.reflect.InaccessibleObjectException: Unable to make field transient java.net.URLStreamHandler java.net.URL.handler accessible: module java.base does not "opens java.net" to unnamed module #7823a2f9
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:337)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:281)
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:175)
at java.base/java.lang.reflect.Field.setAccessible(Field.java:169)
at org.netbeans.ProxyURLStreamHandlerFactory.register(ProxyURLStreamHandlerFactory.java:82)
at org.netbeans.JarClassLoader.<clinit>(JarClassLoader.java:141)
at org.netbeans.MainImpl.execute(MainImpl.java:178)
at org.netbeans.MainImpl.main(MainImpl.java:85)
at org.netbeans.Main.main(Main.java:83)
Looks like Java 9 got bundled with it and it's causing an error. The documentation implies that NetBeans 8.2 uses JDK 8!?
How to use my own java to run NetBeans, or how to get NetBeans to start without this error?
Yes, NetBeans 8.2 does use JDK 1.8, and specifically does not support JDK 1.9.
It's unclear from the OP which version of Java is desired to run with NetBeans, but the version of NetBeans to use is governed by the version of Java to be used:
[1] For Java 8, use Netbeans 8.2. Note that Java 9 is not supported. You can download NetBeans 8.2 bundled with JDK 8u141 for Mac OS here:
http://www.oracle.com/technetwork/articles/javase/jdk-netbeans-jsp-142931.html
Once it has been installed it no specific configuration for Java should be necessary.
[2] For Java 9 you must use a Development Build of NetBeans. That can be downloaded from http://bits.netbeans.org/download/trunk/nightly/latest/ but be sure that Mac OS X is selected from the Platform drop list before clicking Download.
For any version of NetBeans you can specify your own version of Java as follows:
Start NetBeans and select Java Platforms from the Tools menu.
Click the Add Platform... button.
Complete the wizard to locate the version of Java you want to use.
One final point: there is no problem having multiple versions of NetBeans installed and running concurrently using different JDKs, typically NetBeans 8.2 with JDK 1.8 and NetBeans Dev Build with JDK 1.9.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Update:
If NetBeans closes itself down on startup it may have an invalid JDK path. To change the JDK that NetBeans uses:
Locate the file netbeans.conf. It should be in the etc directory under the NetBeans installation directory.
Edit that file in a text editor. Locate the line containing the property netbeans_jdkhome. On my Windows 10 installation it looks like this:
netbeans_jdkhome="C:\Java\jdk1.8.0_121"
Change the value for that property to specify the path to the desired JDK, save the file and restart NetBeans.
As pointed in the comments:
I had tried to set netbeans_jdkhome in /Applications/NetBeans/NetBeans\ 8.2.app/Contents/Resources/NetBeans/etc/netbeans.conf to point to JDK 10, but still it did not work.
I had to install JDK 8, and set netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home"
Uninstalling JDK 10 and using JDK 8 worked for me and setting netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home" worked quite well.
macOS 10.13.5
JavaJDK 10 installed as "System" JVM
I was able to install NetBeans, but unable to get it to function. Window would open, clicking on "New Project" or "New File" did absolutely nothing.
Was able to get it working (all modules and servers) by going into the configuration file at
/Applications/NetBeans/NetBeans 8.2.app/Contents/Resources/NetBeans/etc/netbeans.conf
and editing the commented out path to JDK at the bottom of the file!
Cheers!
Check Java JDK is installed on Mac, NetBeans 8.2 does use JDK 1.8(Java SE 8)
/usr/libexec/java_home -V
Matching Java Virtual Machines (2):
12.0.1, x86_64: "Java SE 12.0.1" /Library/Java/JavaVirtualMachines/jdk-12.0.1.jdk/Contents/Home
1.8.0_211, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home
if not , just install (no need remove exist JDK)
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
modify /Applications/NetBeans/NetBeans 8.2.app/Contents/Resources/NetBeans/etc/netbeans.conf
netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home"
For NetBeans 8.2 JDK 1.8 should be used. If you installed JDK 1.9 or JDK 10.0 to your MacBook, you must uninstall that from your computer.
I had the same issue. I'm using Apache Netbeans 12.0 so I had to change my OpenJDK version from 19.0 to 14.0 and update the path in order to finally work.
No need to uninstall the 19.0, just install the version that works with the Apache that you have and update the path:
netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk14.0.jdk/Contents/Home"

what is the eclipse compatible version for openjdk1.7 in windows 7 64 bit OS

I have windows 7 64 bit OS in which I used to work with eclipse Juno Service Release2 version and Oracle JDK 1.7. Now as per my new project requirements I had to change my JDK from Oracle JDK to OpenJDK 1.7. I have un-installed all the other jdk's from my machine and installed OpenJDK1.7(64 bit version). Now I am facing issues with eclipse, I am able to open eclipse IDE but if I perform any operations like opening an existing project or trying to run any programs/project it is getting crashed or getting hanged. I have to end the process from the taskbar and try again and again. Below is the popup screen that I am getting after eclipse crashes.
Can some one tell me how to resolve this issue? I have seen some blogs saying there is a bug with eclise and OpenJDK with Ubuntu and mac OS but no issues reported for windows. So if there is way to fix this issue please let me know (or) please suggest any eclipse version the is compatible with OpenJDK1.7 and windows7.
Here is my version of solution to my issue which was mentioned above.
Installed Oracle JDK1.7 on my system and did not set the path for this. I have updated the eclipse.ini file with (found in eclipse root directory)
-vm
C:/Program Files/Java/jdk1.7.0_79/bin/javaw.exe parameter. so that Eclipse starts with Oracle jdk
and in
Eclipse->Windows->Preferences window
under Java->Installed JREs->Add(under Installed JREs)
added a new entry to point out the OpenJDK1.7 version so that my project uses OpenJDK version. This solved unusual crashing of Eclipse

Using old version of GWT SDK with Eclipse Luna

we have a project which is compatible with GWT SDK 2.4 and Eclipse Indigo. I am trying to move to Eclipse Luna. Although I have made a progress, I couldn't get all of the features yet. Here is what I've done:
Downloaded Eclipse Luna and JDK 1.7 (both 64 bit)
Using install new software, installed last version of GWT SDK and
designer
Downloaded GWT SDK 2.4
Set this SDK as default (I copied some jars from SDK 2.6 in order to
do this)
After this installation, the project succesfully compiled and debugged. In addition, there are no problems with GWT Designer with my old ui.xml files. However, when I try to add new page I realized that Add New MVP view is gone. Is there a way to bring back this feature? Or can I copy from old Eclipse plugins?

WSO2 Developer Studio 2.1.0 (previously Carbon Studio) plug-in causes Eclipse load to hang

I am trying to install the new WSO2 Developer Studio 2.1.0 into Eclipse. It appeared to install successfully, but when I try to start Eclipse it hangs forever (e.g. > 30 minutes) with the message “Loading Workbench”. On one attempt (after leaving it for maybe 45 minutes), it actually got as far as bringing up the Eclipse main window, but it hung there with the message “Marketplace DND Initialization”. The Eclipse process is steadily using about 25% of my CPU.
There is an error in my Eclipse workspace/.metadata/.log file:
!ENTRY org.eclipse.ui.navigator 4 0 2012-10-17 11:20:18.303
!MESSAGE An extension already exists with id "org.eclipse.ui.navigator.resourceContent".
This appears about 20 times per attempt to load Eclipse, all in the first few seconds after initiating the load.
I followed the WSO2 Developer Studio installation guide (http://dist.wso2.org/products/developer-studio/2.1.0/docs/install_guide.html). I was unclear about the prerequisites. It says “Eclipse WTP 3.1.0 or higher”, but that appears to be from old Eclipse versions (Galileo), so I didn’t worry about it. My Eclipse About screen says WTP 1.0. The other prerequisite was for Carbon Server. I am already running latest BPS server (beta), which includes Carbon, so I didn’t worry about it. Just to be sure, I later installed the latest stand-alone “Carbon Server”, but that didn’t help any.
I also tried increasing memory settings in eclipse.ini by 50% (to XXMaxPermSize: 384, -Xmx768m) from the default. No help.
Here is my system:
MS-Windows 7 Enterprise on a 64-bit laptop
Java 1.6
Eclipse IDE for Java EE Developers, Indigo 3.7, 32-bit. Version 1.4.0.20110615-0550
(relevant) Eclipse features:
WTP Version: 1.0.0.v201104180000-797B1CcNBHGC_DRAwXT3B
Subclipse 1.6.x
Aptana Studio 3.0.4 MS Windows x86 “Eclipse plug-in version”. Version: 3.0.4.201108101432-7E37B7HFEHCdSHSV5R_IyJetqA_B
CollabNet Merge Client 2.2.4
Any help would be appreciated.
Hi I faced the same problem especially with nested WSO2 projects / multi module Maven projects. A little change on my Eclipse Project Explorer Settings solved the problem for me.
What I have done:
Open View Customization menu on Eclipse Project Exlporer (the triangle in menu bar of the view)
Clicked "Customize View..."
Unchecked "Hide WSO2 Registry Resource Conflict Items" and "Hide nested projects"
Apply by clicking "OK"
As a result all nested folders will be shown in a flat layout (as usual from m2e-Integration for multimodule Maven projects) but the IDE is now faster and less cpu consuming and doesn't freeze on save anymore.
My Environement looks like:
OS: Windows 7 64bit
Eclipse Indigo Service Release 2 (Build: 20120216-1857)
Eclipse WTP 3.40
Java JDK 1.6.0_31 (32-bit)
WSO2 Developer Studio 2.1.0
M2E-Integration 1.2.0.20120903-1050
M2E-WTP 0.17.0.20121108-1856
Hope it helps
Edit: Sorry I forgot to mention that I had to go through the steps from Harshana first after a fresh installation of WSO2 Developer Studio 2.1.0. My JVM is parameterized with -Xms512m
-Xmx1384m.
Can you try to clean your System Temp folder before starting the Eclipse instance and see whether there is an improvement?
And please use a fresh Eclipse workspace after installing Developer Studio.
We have seen this behavior couple of times in the past and above 2 procedures and increased memory helped to resolve the issue.
Hope this helps!
Thanks and Regards,
Harshana
Developer studio 3.5 beta 2 is released. It improved with lot of bug fixes.
http://devamanthrils.wordpress.com/2014/01/14/developer-studio-3-5-0-beta-2-released/

Eclipse Indigo crashes on startup after Google plugin and GWT installation

I am running on a Mac OS X 10.5.8.
I made an earlier post about GPE/GWT not working for Eclipse 4.2. So I tried with Eclipse 3.7.2 instead. This time, I installed GPE 3.7 and GWT 2.4 plugins. Again, the installation was successful and it asked me to restart Eclipse SDK when it was finished.
After selecting my workspace and it starts up, it would crash shortly afterwards with a pop-up error. The error messages say "Error notifying registry change listener \
Invalid registry object". The workbench would close immediately after the pop-up error.
I can restore the workbench to a working state if I remove the Google plugin from the plugins folder.
I tried different Eclipse Indigo packages, the S2 Eclipse IDE for Java Developers and the Java EE, both encountered the exact same scenario after I installed GPE 3.7 and GWT 2.4 plugins.
Does anyone have any ideas?