Skip to content

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 …

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…

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…&#82…