“Could not find Java SE Runtime Environment.” after installing Java

Finally found a forum post that outlined what the registry is supposed to look like when not broken. Added key HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment Added String Value CurrentVersion = 1.7 Added key HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.7 Added String Value JavaHome = C:\Program Files\Java\jre7 Running cmd java -version and Eclipse now works

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

Eclipse “Error: Could not find or load main class”

In your classpath you’re using an absolute path but you’ve moved the project onto a new machine with quite possibly a different file structure. In your classpath you should therefore (and probably in general if you’re gonna bundle JARS with your project), use relative pathing: In your .classpath change to

‘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

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