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 exist…
Tag: java
In Java -D what does the D stand for?
What does the D in Set a system property value. Of the Java application launcher stand for? For some reason it’s been bothering me, why D? Answer I’ve always assumed it was to define the value of a property… possibly a legacy from C compilers, which often use -D as similar to #define in code…
JAXB generating JAXBElement instead of String
I am using Apache CXF cxf-codegen-plugin Maven plugin to generate sources from WSDL file. Problem is that I get JAXBElement<String> generated instead of String. I have added the jaxb-bindings.xml file which looks like this: This should prevent JAXB to generate JAXBElement<String>. But it is not wo…
How do you “Mavenize” a project using Intellij?
I have seen many posts about using eclipse to Mavenize a project. Is there a easy way to do that in IntelliJ? From what I understand about “Mavenize”, it’s just add some xml in pom.xml and the directory structure is in src/main/java, src/main/test …. Answer For those that benefit from …
Web app user authentication with 2 production servers using spring security
Working on the server side of a java based web application (will serve mobile and web clients) and I need to implement users authentication. In production I have 2 servers (duplicated, working against …
Android currency symbol ordering
I’m getting on devices with not-english locale, the english currencies formated like this: 1 $ If I have english locale I get euro currency like: € 1 Using Found in the documentation: http://developer.android.com/reference/java/util/Currency.html#getSymbol() Returns the localized currency symbol for thi…
Returning multiple ref cursors from Oracle procedure to Java
In our web application we have 18 screens in a module. Our user wants all the data of the 18 screens in one page so that they can print the entire data at once. So, I wrote an Oracle procedure which …
FTP connection java
I’m trying to upload the file to a server. What is the way for uploading a file to a server through FTP? i wrote this class: serverconnect.java: and this is the mainActivity ( only the relevant code): and when i install the app on my phone i get an error: “unfortanly your app must stopp…R…
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 …
Using custom TableModel make isCellEditable true for a particular row on button click
I have a table like above. Initially all the cells except button column are not editable. I have created the table using custom TableModel. My isCellEditable in custom TableModel looks like this: But when I click on the Edit button of each row a JDialog will pop up with that row (by constructing a JTable in t…