I'm using following code to format Double number
DecimalFormat decimalFormat=new DecimalFormat("#.##");
decimalFormat.format(1.04)
but this gives
java.lang.NumberFormatException: For input string: "1,04"
in Linux - but in Windows 7 this works fine, how to correct this?