Error: Could not find or load main class com.google.gwt.dev.Compiler - gwt

What steps will reproduce the problem? and how i can solve this problem
IN Eclipse Indigo, right click on project name --> google --> GWT Compile --> Compile
I got error that says
GWT compilation failed
In Eclipse console window, I got error message that says
Error: Could not find or load main class com.google.gwt.dev.Compiler
I am using windows 7 , eclipse juno 4.2 , and GWT sdk 2.5.1
During Gwt installation i left unchecked all app engine SDK options.
And also configure build path for jar files for projects i have.
but still this problem is coming .
Thanks for answering . well I tried that before but nothing happened. Then I uninstall all all. And go to HELP--->Install new Software---> in text area i used this link Google Update Site for Eclipse 4.2 - http://dl.google.com/eclipse/plugin/4.2 then whenever i checked Google Plugin for eclipse (required) and hit next it shows Cannot complete the install because one or more required items could not be found.
Software being installed: Google Plugin for Eclipse 4.2 3.2.4.v201306061638-rel-r42 (com.google.gdt.eclipse.suite.e42.feature.feature.group 3.2.4.v201306061638-rel-r42)
Missing requirement: Google Plugin for Eclipse 4.2 3.2.4.v201306061638-rel-r42 (com.google.gdt.eclipse.suite.e42.feature.feature.group 3.2.4.v201306061638-rel-r42) requires 'org.objectweb.asm 0.0.0' but it could not be found i didn't understand what and where is the problem coming .

I would double check your GWT install. Right click on a project in eclipse, and select Properties. Then under the Google option, click Web Toolkint. On the panel to the right there should be an option "Use Google Web Toolkit". Make sure that is checked. Also Click "Configure SDKs", and ensure that the selected SDKs are indeed pointing to the correct file location. Finally, Make sure that your entry points are correctly added in the "Entry Point Modules" panel.

I was facing the similar problem. I changed the proxy of my eclipse to manual and put in proxy settings for HTTP, HTTPs and port as 8080. This allowed the eclipse to connect to the network and download the required plugins. Try this out and let us know if it helps.

Related

Error in eclipse: “The project cannot be built until build path errors are resolved”

My eclipse project shows up but with a red exclamation mark and an error saying:
Build path specifies execution envoirnment JRE-1.1. There are no compatible JREs installed in the workspace
Unbound classpath container : 'JRE System Library [JRE -1.1]' in project Automation
I checked if all the libraries are present or not as mentioned in the error, and tried to import the missing jar into project but when I clicked on JRE System Library [JRE -1.1] to import it. its showing
"An error has occurred. See error log for more details.
java.lang.NullPointerException"
Can somebody help me out with this?
I was getting the same NullPointerException in Eclipse that came with Android SDK, then I did the following (explaining in step by step process):
Go to Help and click on Install New Softwares.
A Install window will open, click on "All available sites' and then there will be a text box to search for the softwares you want to install, enter 'Eclipse' there.
A lots of Eclipse related softwares will come up. Select Eclipse Platform, Eclipse Platform SDK and Eclipse SDK and then click Next...Next...(and all the Next)...Accept All the Agreements...Finish.
In some time it will install all the softwares and you'll have to restart the eclipse and you'll be good to go.
This resolved my issue. Hope this helps you.

GWT plugin error

I'm trying to install GWT plugin i eclipse.
It showing error like,
Cannot complete the install because one or more required items could not be found.
Software being installed: Google Plugin for Eclipse 4.2 3.2.4.v201306061638-rel-r42
But there is no plugin installed. And also it is not at all working
Please make sure that you are downloading and installling the right plugin.
You can get the details from below link :
https://developers.google.com/eclipse/docs/download
You have to run your eclipse as administrator, I have same problem with it.
Also make uncheck Proxy entries from Window->Preferences->Network Connections

Where is the TestNG eclipse plugin

Where to find 5.x Testng eclipse plugin
Problem Installing older TestNG plugin on Eclipse 3.5
Both questions are quite old so the links there do not work anymore. I have Eclipse 3.5 and I would like to install the Eclipse TestNG plugin. What is the location of the update site? I am moving to TestNG so I can move the latest version of TestNG
PS: I have tried http://beust.com/eclipse/ but it throw me an NPE as shown below
Try to download TestNG plugin from Market Place.
Eclipse - > Help - > Eclipse MarketPlace -> TestNG..
Install it. After restarting Eclipse use it.
Try the URL that the jar comes from: http://beust.com/eclipse/
Use that above link as the Location, make sure to include the http://.
I used the latest url posted on the following page http://beust.com/eclipse-old/
That is http://beust.com/eclipse-old/eclipse-6.7.0.20120825_1316/
It worked perfectly fine.
Your URL looks fine (http://beust.com/eclipse) hence I suspect an issue unrelated to this, maybe your Eclipse installation is buggy or incorrectly configured (I did not need any special config on my Eclipse install though).
IN windows how to install testng plugin in Eclipse:
1. Open Eclipse
2. Click on Help at top menu
3. Click on Install New Software... sub-menu
4. Click on Add button
Do the following at Add Repository pop-up:
5. Enter name as (Example - testng)
6. Enter URL as your requirement:
For Eclipse 3.4 and above, enter http://beust.com/eclipse
For Eclipse 3.3 and below, enter http://beust.com/eclipse1
7. Click on OK button
8. Check process bar is displayed because plugin is installed in eclipse
After installation follow the steps below:
i) Restart eclipse
ii) Go to Window-> Preferences and observe the left panel
iii) TestNG is enlisted
I noticed it was proxy that was stopping for installation after configuring proxy it installed like cream.
earlier comment:
After a lot of attemp and trying different URL finally found the URL worked for me : http://beust.com/eclipse-old/eclipse-6.7.0.20120825_1316/
all other URL kept on giving error for MD5 example:
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Problems downloading artifact: osgi.bundle,org.testng.eclipse,6.9.11.201604020423.
MD5 hash is not as expected. Expected: da03b0c2cd24e2636ad05a151538b195 and found 60ea74539d11470e704c4210de6e5573.
Problems downloading artifact: osgi.bundle,org.testng.eclipse.maven,6.9.11.201604020423.
MD5 hash is not as expected. Expected: 91946a86a2a3ae80d8583be62a9fe068 and found 0f70e9fd8a1bb2564f26bc4730a58922.
if the link: http://beust.com/eclipse/ is not working for versions 3.4 and above, there could be some problem with the Network Connections of your eclipse.
Go to Window->Preferences-> search for SSL or Network Connections.
Check if the settings for the same are in place as per your internet/intranet.
open Eclipse
CLick on Help at top navigator
Click on install new software
Click on add Button
Add Repository pop-up is open
Enter name as (Example - TestNG)
Enter URL - http://beust.com/eclipse
Click on OK button
Check process bar is displayed because plugin is install in ecplise
After restart the eclipse
Check Testng is install in ecplise
For eclipse Luna - http://marketplace.eclipse.org/content/testng-eclipse/metrics
Drag and drop the install icon to the eclipse workspace and follow instructions.
Works like charm.
In my case, looks like updates for Eclipse was the issue.
I just installed the updates to my eclipse (Luna Service Release 2 (4.4.2) Build id: 20150219-0600) and restarted Eclipse.
Then, went to help->Eclipse Marketplace-> searched TestNG and Installed it.
This worked for me.
The given site "http://beust.com/eclipse" gets redirected to
http://dl.bintray.com/testng-team/testng-eclipse-release/
because of that eclipse fails to fetch the plugin in the original URL.
to fix that, go to help->install new software
now add new site at work with
"https://dl.bintray.com/testng-team/testng-eclipse-release/"
it is "https", doing this will list down the plugins available in the URL,
select TestNG, and continue to install it.
it worked for me, hope it works for you as well.

Why Am I Getting NullPointerException When I Run the HTML Playn Samples?

I'm trying to run the Playn html web application samples in Eclipse. I've followed the steps here:
http://code.google.com/p/playn/wiki/GettingStarted#Running_via_Eclipse
I'm running Eclipse 3.7 on Ubuntu 11.10. I installed the plugins and I was able to run the Java version successfully.
However, when I run GWT Compile by right-clicking the html listing in the Package Explorer, I get the following error:
An internal error occurred during: "playn-showcase-html - GWT Compile".
java.lang.NullPointerException
This occurs with the other samples too. When I get to the GWT Compile dialogue box, a message at top says "The project has errors."
When I start Eclipse, I get the following message in the console:
GWT SDK not installed.
However, the SDK is installed. I double-checked by redoing the steps here:
http://code.google.com/intl/da-DK/eclipse/docs/install-eclipse-3.7.html
And I get the following message:
"Google Web Toolkit SDK 2.4.0" will be ignored because it is already installed.
By reinstalling the GWT plugin and then editing the configuration settings in Eclipse, I was able to solve this problem. The general problem seems to be one of wiring the correct paths together. I'm not sure what exactly resolved it as I did a bit of fiddling but this is how I think I did it:
Clicked Preferences > Google > Web Toolkit
Added path: ..com.google.gwt.eclipse.sdkbundle_2.4.0.v201201120043-rel-r37/gwt-2.4.0/ and hit OK
Right-clicked playn-showcase-html in Package Explorer
Selected Build Path > Configure Build Path...
Selected Google > Web Tool Kit from list in left panel
In GWT SDK box, clicked Use specific SDK, selected only option there, and hit OK
I was able to compile and generate a web server link.
I then loaded the link in Chrome. If you get a message saying the module needs to be recompiled, go back to Eclipse and recompile the HTML dir (right-click on the HTML directory > Google > GWT compile.) Then reload (F5) page in Chrome.

playn-showcase-html is not a GWT project

As per the getting started wiki page, I had Indigo with the Android plugin installed; I installed the Maven Integration for WTP and Google plugins (in that order). I can run the Java version of the showcase fine; when I try to Google > GWT Compile the showcase-html, Eclipse tells me that this is "not a GWT project."
What am I doing wrong? Or is this broken?
Source can be found here for the next seven days: http://www.sendspace.com/file/zc2af3
With all of those plugins installed Eclipse should auto-detect the GWT "nature" of the yourgame-html subproject. It works fine for me and at least a few other people.
In any case, you can simply right click on that project, select "Google -> Web Toolkit Settings..." and click "Use Google Web Toolkit" on the dialog that pops up.
Right click on the project "Run As -> Run Configurations". We should at-least create one configuration for web application. Click on New Configuration and eclipse will automatically fill the information(ie.playn-showcase-html & the class information ). Go ahead and click on Run and you should be able to get you server to run. Hope this helps.