I’m developing a portlet in Liferay 6.1 using Liferay MVC famework. When I use Eclipse allways shows me the following warning message SearchContainer is a raw type. References to generic type SearhcContainer<R> should be parameterized JSP code fragment: I have searched many examples. I’ve im…
Tag: eclipse
This compilation unit is not on the build path of a Java project
When I try to use ctrl+space this error is shown: I see that there are similar topics but my work environment is Eclipse and i pull my project from Git (I import project as general project) and i use Apache Ant. Can anyone help me? Answer Since you imported the project as a General Project, it does not have t…
Maven build: Tomcat server doesn’t start
I am new to Maven and trying to setup a web project using Maven. I have setup the project in Eclipse and I am using Tomcat 7.0.53. In run configuration for Maven build and I have set tomcat:run in Goals. When I run this configuration, following log is seen in the Eclipse console: Nothing happens after this. T…
Can’t fix Unsupported major.minor version 52.0 even after fixing compatibility
When I try running my java .jar on another machine I get the error Unsupported major.minor version 52.0 I compiled my program using the jdk 1.6 and my machine (separate one) has java 7 installed. …
Is there a way to make empty packages visible in Eclipse?
Is there a way in Eclipse, to see empty parent packages? I have an issue freely viewing/accessing package new.galaxywar.client.resources.images.game that only contains 2 sub-packages: I tried creating that package again, because I thought that i might not have it in my eclipse project, but it won’t let …
VisualVM running JRE
I can’t get VisualVM working with eclipse, i was following these instructions http://visualvm.java.net/download.html and also these http://visualvm.java.net/gettingstarted.html The problem is that it cant see JDK location which is “C:Program FilesJavajdk1.8.0_05”, this happens when i try to …
How to share code between two projects?
I have two Java projects called A and B. Both of them are web apps deployed as war files. I created them in Eclipse workspace separately. Project B uses a class in project A named MusicMapper. I added the project A to project B’s build path in Eclipse as suggested in this post. So now project B can comp…
Maven ignores local repository
I’m trying to use jackson at a json project. And Maven is ignoring my local repository (where I have the library already set, from a previous project) and downloading from codehaus repo. The catch is that my workplace has blocked access to external repos, so I must use local repository for this. How do …
How to enable debug on my JUnit through Gradle test task
I get into trouble while I try to run my JUnit test through Gradle test task. While I run the test in eclipse directly with Run As -> JUnit test, everything is ok, the test succeeds. But through test task, test always fails. Probably some trouble with the encoding of my resource txt file. So I would like t…
AndroidRuntime error at com.example.appname.MainActivity.onCreate
I am trying to write Java code that creates a button click event that populates an edit text box with my name. Unfortunately I am getting runtime errors. I checked almost all related topics and questions on stackoverflow but couldn’t figure it out my problem. Appreciated for your helps. MainActivity.jav…