com.google.appengine.tools.enhancer.Enhance not found in Google App Engine project - noclassdeffounderror

I installed the Google Plugin for Eclipse and created a new Google App Engine project just as decribed in https://developers.google.com/appengine/docs/java/tools/eclipse. When building the project I'm getting the error
Error: Could not find or load main class com.google.appengine.tools.enhancer.Enhance
I have searched similar questions on stackoverflow and the only suggestions were to use JDK 7 and uninstall any existing JDK 6 even if not pointed in Eclipse Installed Jres. I have done both, and I'm still I'm facing the same error. This is on Windows 7 x64 machine and the Eclipse and JDK are 32 bit ones. I also tried on another computer which is a Windows server 2008 x64 machine and again the Eclipse and JDK 32 bit. I face the same error there also.
Please help before I shoot myself.

If you are not using JDO/JPA, uncheck the box for this option in the App Engine tab for your project.
If you do use them, make sure that the relevant files are present in the WEB-INF/lib/ folder: https://developers.google.com/appengine/docs/java/datastore/jdo/overview?csw=1

Related

NetBeans plugin fails if nb-javac installed

Using NetBeans 11.1 with Java 11 on Linux (haven't tried on other platforms).
If I install the 'nb-javac' plugin, as recommended by the IDE notifications, the CodenameOne plugin module fails to load and therefore CodenameOne features are unavailable.
Any suggestions or workarounds?
I am using Windows 10, NetBeans 12 and had the same problem.
I solved it by removing
org-netbeans-modules-nbjavac.jar
org-netbeans-modules-nbjavac-api.jar
org-netbeans-modules-nbjavac-impl.jar
files from directory C:\Users[USERNAME]\AppData\Roaming\NetBeans\12.0\modules.
After staring NB, it notifies that some modules are missing. You can click the link to install the lastest version. It worked for me.
I hope this will help someone.
I had a similar problem with Netbeans 12.0 on Windows. I installed the nb-javac plugin as suggested in the notifications, and then immediately after was unable to run my application. I use Java FX and Netbeans said it couldn't find the javafx.controls module. Deleting the three files from C:\Users[USERNAME]\AppData\Roaming\NetBeans\12.1\module worked for me too.

Netbeans 8.2 not responding

I am brand new to computer programming for CIS 210 and it's off to terrible start. Downloaded JDK 9 and Netbeans 8.2. Netbeans won't let me open a new project or file. No error message or anything, almost as if I'm not clicking it. Screen remains blank as seen in the link below. It's driving me insane.
Blank Screen when I click on new project:
If you had Netbeans installation over Java 9 then Please note Netbeans does not work with Java 9. Proof: [https://forums.netbeans.org/topic68000.html][1]
The solution is for Windows, but the same logic applied in Linux too.
Solution1:
You have to edit netbeans.conf find to your java installation path. You can find netbeans.conf inside etc folder of Netbeans installation folder.
Make your netbeans.conf like below.
Eg, netbeans_jdkhome="C:\Program Files (x86)\Java\jdk1.8.0_144"
NetBeans 8.2 does not support Java 9. It just won't work.
The solution is to download the latest nightly build of NetBeans, which does support Java 9:
Normally you would go to the NetBeans download page and click the Development link in the top right corner of the screen.
However, I just tried that and it looks like their web page for downloading nightly builds is not working properly at the moment due to "...violates the following Content Security Policy directive..." errors. I've never seen that before.
A temporary workaround for that problem is to go directly to Index of /download/trunk/nightly/latest/bundles/ and select the download that is appropriate for your environment. You should be able to parse the file names to work out which one you want, depending on whether you need 32-bit or 64-bit, whether you are running on Mac OS or Linux or Windows, etc. (To be clear, ignore this bullet point if the Development link in the first bullet point above is working properly.)
Also note that you can safely install and run multiple versions of NetBeans concurrently: use version 8.2 for Java 8 development, and use the Development Version of NetBeans for Java 9 development.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Update:
The page for downloading Development Builds of NetBeans is working again, so go there, select your Platform from the droplist, and then click the appropriate Download button.
NetBeans with Java 9 is working fine for me using that approach.
NetBeans 9 would be supported version for Java 9, which was supposed to be released by Aug 2017
NetBeans 9 will be released from Apache Software Foundation as new
Apache project. NetBeans is being donated to ASG by Oracle. NetBeans
9 main theme will be to support this upcoming Java SE 9 release.
Of course, you can use NetBeans daily build, but there won't be guarantee of it's stability.

Fix "The Eclipse Installer executable launcher was unable to locate its companion shared library."

I'm trying to install Eclipse Neon on a 64 bit Windows 7 computer. I download the file "eclipse-inst-win64.exe" and run as administrator. Immediately I get the following error:
The Eclipse Installer executable launcher was unable to locate its companion shared library.
Note the "Installer" keyword. When searching on Google and StackOverflow, I find solutions only for when receiving this error launching Eclipse itself after it is installed. The solutions that worked for people in those situations usually involve editing the "eclipse.ini" file and removing absolute paths or references to uninstalled plugins. However, Eclipse has never been installed on this computer, therefore an "eclipse.ini" file does not exist and the installer does not appear to create one in any obvious place before throwing this error. There does not appear to be any "companion shared library" downloads on the Eclipse website. Any ideas on what could be going on?
Download and install the JDK and then try to install Eclipse again.
According to http://wiki.eclipse.org/Eclipse/Installation:
Eclipse 4.6 (Neon) was released on June 22, 2016. See Neon schedule.
Consider using the Installer. Please see 5 Steps to Install Eclipse.
A Java 8 JRE/JDK is required to run all Neon packages based on
Eclipse 4.6, including the Installer. The reasoning behind
requiring Java 8 are discussed here.
I found another reason for this error message. I got it when I tried to install Eclipse from the compressed installer. I extracted the installer into a folder and ran it from there. It then installed.
Try to extracted all the installer files before you run the installer.

Eclipse TFS - Source Control Explorer Error

I am using Eclipse (version Juno) with the TFS Plugin. When I click Source Code Explorer I get this error message:
Plug-in "com.microsoft.tfs.client.common.ui.vcexplorer" was unable to
instantiate class
"com.microsoft.tfs.client.common.ui.vcexplorer.versioncontrol.VersionControlEditor".
I saw this Eclipse plug-in development Unable to instantiate class due to java.lang.NoClassDefFoundError: but am not sure if it is the fix for this TFS plugin or what it really means:
put the project of the missing file as dependency in the plugin
configuration file too.
I've seen this exact error before on my box. In my case this file had gone missing due to its long path and filename:
"...plugins\com.microsoft.tfs.client.common.ui.vcexplorer_10.1.0.201101271439\com\microsoft\tfs\client\common\ui\vcexplorer\versioncontrol\ VersionControlEditor$VersionControlEditorRepositoryUpdatedListener.class"
You can see how this can get somewhat long. I'd suggest checking if you have all the files perhaps comparing it with an installation on a shorter path. Hope this helps.
I hope this can help somebody that researches this error. I was able to fix the problem on a virtual machine (Windows Server 2012 R2) running on a Windows 7 desktop with Eclipse Mars 4.5.0 and TFS plugin 14.0.1.
Plug-in "com.microsoft.tfs.client.common.ui.vcexplorer" was unable to
instantiate class
"com.microsoft.tfs.client.common.ui.vcexplorer.versioncontrol.VersionControlEditor".
I installed Eclipse and the TFS plug-in on both the desktop Win 7 and the virtual machine. It worked perfect on Win 7 but on the virtual machine running Windows Server the error came up.
My first step to solve this was by following moerketh advice and moved that specific file from Win 7 to Server 2012.
...plugins\com.microsoft.tfs.client.common.ui.vcexplorer_10.1.0.201101271439\com\microsoft\tfs\client\common\ui\vcexplorer\versioncontrol\
VersionControlEditor$VersionControlEditorRepositoryUpdatedListener.class
It did remove the error but did not show the folders in the server. In other words, I couldn't see the folders I am trying to map to.
Next, I decided to copy all files in the folder as shown below and paste it to the same folder in the virtual machine.
...plugins\com.microsoft.tfs.client.common.ui.vcexplorer_10.1.0.201101271439\com\microsoft\tfs\client\common\ui\vcexplorer\versioncontrol\
VersionControlEditor$VersionControlEditorRepositoryUpdatedListener.class
Restarted Eclipse, and then the TFS folders showed.

Configuring Blackberry Eclipse plugin for 4.70 or 5.0 components

I am looking for help in configuring the Blackberry development environment. In fact, it is quite a frustrating process. The blackberry site is pretty useless. Between links that have been moved, details that are assumed and documents that are out of date it is proving very difficult to get anywhere with blackberry development.
Pheww, now that my rant is done. Here is my problem:
I have finally got the JDE for Eclipse working (that is a story in itself). However, my blackberry workspace is only giving me the option of targeting the 4.5 JDE components. How do I update it to use the 4.7 components?
It would be preferable to have step-by-step instructions but I would appreciate any help that can be provided.
Here are the details:
I have Java jdk1.6.0_14
Eclipse version 3.4.1
I have installed the Blackberry JDE 4.7
I have installed the Blackberry JDE Component Package 4.7
I have installed the Blackberry Smartphone simulators 4.7
Totally agreed - it's not at all obvious what to do. I've never had luck using their update site, so I just download and install the component packs manually:
Download the "Eclipse Software Update for the BlackBerry JDE v4.7 Component Pack" from the BlackBerry developer zone (it's a zip file)
From Eclipse open the Help menu and choose Software Updates
Click on the Available Software tab
Click Add Site
Choose Archive and select your zip file
Make sure everything under the JDE 4.7 tree is checked
Click Install and continue through the wizard
You are a life saver!!!!!!!!!!! This worked perfectly. I understand the frustration. If this. If this doesn't work I would recommend deleteing the entire directory and reinstalling eclipse.
You should already have JDK installed:
This is what I downloaded for 64bit windows:jdk-6u16-windows-x64.exe get one that matches your OS. Should be jdk version 6.
I installed this version: Should work for windows x86 and 64bit:
eclipse-java-ganymede-SR2-win32.zip
Other versions shouldn't work. has to be 3.4 but not 3.5 (gallileo) and it has to be for java.
Then I installed the plugin. Then I followed the instructions above and it worked.
eclipse-java-ganymede-SR2-win32.zip does not work with the 64-bit JDK.
You have to use eclipse-SDK-3.4.1-win32-x86_64 with the 64-bit JDK. Once you use these two things together and install the Eclipse Plugin, the installation works fine, but I always get "Cannot find RIMIDEWin32Util.dll. This is a required component of the IDE." and then "Cannot find RIMUsbJni.dll. Without this dll the IDE cannot connect to USB enabled handhelds. Add RIMUsbJni to java.library.path". Both of the supposedly missing files are located in my workspace path under .metadata.plugins\net.rim.eide.bootstrapper\installDlls. I have placed those two files pretty much everywhere I could think of, even c:\windows\system32, and it still claims to not be able to find these files.
Now for the fix....
You can use eclipse-java-ganymede-SR2-win32.zip with the 32-bit JDK. Make sure you add the JDK\bin to your %PATH% environment variable. You can then install the Blackberry JDK Plugin and Component Pack and everything will work!
Note: In order to "Configure Blackberry Workspace" from the Blackberry menu, you must first create a Blackberry project. Found this out the hard way.