What causes imported Maven project in Eclipse to use Java 1.5 instead of Java 1.6 by default and how can I ensure it doesn’t?

I imported a Maven project and it used Java 1.5 even though I have 1.6 configured as my Eclipse default Preferences->Java->Installed JREs. When I changed the Maven project to use the 1.6 JRE it still had the build errors left over from when the project was using Java 1.5 (I described these build errors earlier … Read more

How make Eclipse/EGit recognize existing repository information after update?

After upgrading Eclipse from Helios to Indigo with EGit plugin 1.0.0, all my projects seem to have lost their metadata about their git repositories, respectively. In Helios, every Eclipse project was a git repository on its own. When updating to Indigo, i hoped i could continue using the workspace from Helios. After the update, all … Read more

Eclipse error: ‘Failed to create the Java Virtual Machine’

I am getting this error message when I start Eclipse Helios on Windows 7: Failed to create the Java Virtual Machine My eclipse.ini looks as follows: -startup plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar -vm P:\Programs\jdk1.6\bin –launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503 -product org.eclipse.epp.package.jee.product –launcher.defaultAction openFile -showsplash org.eclipse.platform –launcher.XXMaxPermSize 512m –launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms120m -Xmn100m -Xmx1024m My JAVA_HOME is correctly set as far as … Read more

Eclipse – “Workspace in use or cannot be created, chose a different one.” [duplicate]

This question already has answers here: Eclipse says: “Workspace in use or cannot be created, chose a different one.” How do I unlock a workspace? (28 answers) Closed 6 years ago. I’m trying to create a workspace in the /Users/Shared/ directory with the thought that I can share that workspace between users. The problem is … Read more

Why does Eclipse automatically add appcompat v7 library support whenever I create a new project?

Why does Eclipse automatically add appcompat v7 library support whenever I create a new project? I am creating a simple project whose MainActivity should extend Activity, but it does not. Eclipse automatically adds action bar support. How do I create a simple project without the appcompat library? FYI, I have downloaded the latest version of … Read more

No grammar constraints (DTD or XML schema) detected for the document

I have this dtd : http://fast-code.sourceforge.net/template.dtd But when I include in an xml I get the warning : No grammar constraints (DTD or XML schema) detected for the document. The xml is : <?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE templates PUBLIC “//UNKNOWN/” “http://fast-code.sourceforge.net/template.dtd”> <templates> <template type=”INSTANCE_OF_CLASS”> <description>Used to Create instance of class</description> <variation>asasa</variation> <variation-field>asasa</variation-field> <class-pattern>asasa</class-pattern> <getter-setter>setter</getter-setter> <allowed-file-extensions>java</allowed-file-extensions> … Read more

Paste a multi-line Java String in Eclipse [duplicate]

This question already has answers here: Surround with quotation marks (4 answers) Closed 3 years ago. Unfortunately, Java has no syntax for multi-line string literals. No problem if the IDE makes it easy to work with constructs like String x = “CREATE TABLE TEST ( \n” + “A INTEGER NOT NULL PRIMARY KEY, \n” … … Read more