Skip to content

Tag: java

The type HashMap is not generic; it cannot be parameterized with arguments

This is a strange error i am getting today when i try to implement a Map as below. I am using JDK 1.7 and not sure why this error has been coming and changing the above line by adding cast removes the error. I looked at the related posts in stackoverflow before posting this question seems to be strange issue.

How to change a package name in Eclipse?

In Eclipse I have a simple Java project that contains a package named (default package) and inside this package I have a class. I want to rename this package into something like: com.myCompany.executable I tried to select the (default package) —> right click —> refactor but now I see only th…

HQL unexpected AST node: :

My code is failing to inject the below repository. Based on the stack trace, it seems my HQL syntax is invalid, but I’m not sure what I’ve done wrong. stack trace: Update: I’m also getting this error with this query: I updated my versions to the latest: Update: I’m also getting this er…

Print Web page on 4 inch printer from mobile

I am developing a mobile web application. On the form when the user press Print button I need to print the page on a 4 inch printer. My question is how can I connect to the printer from the mobile web browser(may be using bluetooth, USB). My application will be running on all type of smart phones(Andriod , IO…

JSP / JSTL causes NoClassDefFound error for TagSupport

This problem has been driving me mad for several weeks now and I suspect that the resolution, once I find it, will be simple. I have looked at every relevant answer I can find in StackOverflow but haven’t managed to resolve it, so I am hopeful that someone will be able to help me. I have re-created the …