eclipse won’t start – no java virtual machine was found

Two ways to work around this . Recommended way : In your eclipse.ini file make sure you are pointing -vm to your jdk installation. More on this here. Make sure to add -vm before the -vmargs section. Pass in the vm flag from command line. http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F#Find_the_JVM Note : Eclipse DOES NOT consult the JAVA_HOME environment … Read more

web.xml is missing and is set to true – web.xml is there and can’t edit deployment assembly

This is an error from maven, it is saying that is expecting a web.xml file because the project is defined as a web project on pom.xml through <packaging>war</packaging>. As in some web application web.xml is optional, instead creating an empty web.xml you can overwrite the default value from the property failOnMissingWebXml on maven-war-plugin adding the following values on your pom.xml If you need a web.xml file on your project, you can … Read more

java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer

You have downloaded Jersey 2 (which RI of JAX-RS 2). The tutorial you’re referring to uses Jersey 1. Download Jersey 1.17.1 from (here), should be sufficient for you. Jersey 1 uses com.sun.jersey, and Jersey 2 uses org.glassfish.jersey hence the exception. Also note that also init-param starting with com.sun.jersey won’t be recognized by Jersey 2. Edit Registering Resources and Providers in Jersey 2 contains … Read more

‘cannot open git-upload-pack’ error in Eclipse when cloning or pushing git repository

Finally I made it work thanks to the steps outlined in the Eclipse forum: Set up the SSH key stuff Download and install mysys git according to the github instructions at http://help.github.com/win-git-installation/ In C:/Users/you/ssh hide any existing keys (id_rsa and id_rsa.pub) in a subdirectory. If the ssh directory does not exist, create it. Of course, “you” is … Read more

Unbound classpath container in Eclipse

Given the FAQ, sharing a project file seems have to have advantages and is even recommended practice for Java projects (personally, I would not do that). Maybe some of the following work for you: Edit the project’s properties (right-click project, Properties, Java Build Path, Libraries, Remove and Add Library. Import the project’s files without the “project … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)