I get a file not found exception while loading a freemarker template even though the template is actually present in the path. Update: This is running as a webservice. It will return an xml to the client based on a search query. The template loads successfully when i call it from another java program(from static main). But the when the
Tag: eclipse
Error occurred during initialization of VM (java/lang/NoClassDefFoundError: java/lang/Object)
I’m trying to install Java to use Eclipse (I followed all instructions to install Java and Eclipse) but my Eclipse is not starting due to some bad configuration I guess. I can’t figure out why it’s not working for me. Eclipse Installation: Extracted Eclipse at C:eclipse Created a shortcut to my desktop having target C:eclipseeclipse.exe When I try to run
Eclipse autogenerated toString() method
As par as I know concatinate String using + sign is not a good practice when you have large number of String. But when I check on eclipse generated toString() method (Write click on source file -> Source -> Generate toString() ) it has the same. Is there any place to configure like my expected toString() method like bellow in
Can not find the tag library descriptor for âhttp://java.sun.com/jsp/jstl/coreâ
I have included this at the very top of my JSP page: I already placed the JSTL JAR file in the WEB-INF/lib directory. But still, the JSP can’t resolve the taglib. I get the below error: Can not find the tag library descriptor for âhttp://java.sun.com/jsp/jstl/coreâ I am using Eclipse Juno and the project structure is shown below: Answer Can not
Eclipse Java – invalid package name – Reserved words in package name
I am in the middle of an android project and was trying to create a new package in it. Well, Eclipse is not letting me to create it and is showing this error: Invalid package name. ‘new’ is not a valid Java identifier I never knew package name has reserved words, which we cannot use. My questions are; Is this
A shortcut to select a line in Eclipse?
Is there a keyboard shortcut to select all the line your cursor is currently on? In Eclipse? Or even in general on Windows/Linux? Answer Solution for Eclipse: Hold Alt and press ↑ and ↓. Alt + ↑ and ↓ will move an entire line up or down, so just move it back and you end up with the entire line
AntBuilder can’t find package org.junit
I added some unit tests to a test directory (parallel to my src directory) in my project in Eclipse using the “JUnit test case” new file dialogue. I have two builders, the default Java Builder and an AntBuilder I added. The Java Builder continues to work, but the AntBuilder fails in Eclipse. When I select Project -> Build All, it
“A configuration with this name already exists” error in eclipse run configurations
I synced mercurial project, and tried to setup run configurations. I found the name has (1) attached, and I tried to remove it. However, I got A configuration with this name already exists error. I checked other configurations, but there was no duplication of Name Equivalence Checker. How can I find the existing configuration to remove it? Answer uncheck the
How to configure checkstyle in eclipse using m2e automatically?
I’ve read posts about configuring checkstyle using the m2eclipse plugin, but it seems its not working for the new m2e plugin maintained by eclipse. Is there a way for using the same checkstyle configuration rules in maven and eclipse automatically without falling back to maven-eclipse-plugin? Thanks in advance. Answer The m2e checkstyle plugin, which lives at https://github.com/organizations/m2e-code-quality, is a little
Error :- java runtime environment JRE or java development kit must be available in order to run eclipse
I tried to run “eclipse-jee-juno-win32-x86_64″ , but it raised the following error ” java runtime environment JRE or java development kit must be available in order to run eclipse. No java virtual machine was found after searching in the folloiwng location …….. “. Baring in mind that i have both java jre7 and Java jdk1.7.0_06 installed at C:Program FilesJava. The