3

Is there an equivalent or alternate for

System.getProperty("line.separator");

It gives the below error

The method getProperty(String, String) in the type System is not applicable for the arguments (String)

Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331
Jess
  • 425
  • 1
  • 5
  • 15
  • Thanks @Rahul, The method that am trying to use is not supported. Only the below methods are supported from the System package. System err, out System(), arraycopy(Object, int, Object, int, int), currentTimeMillis(), gc(), identityHashCode(Object), setErr(PrintStream), setOut(PrintStream) – Jess Dec 03 '13 at 16:25

1 Answers1

2

I think you need to execute System.getProperty("line.separator") in your server side code and access it using RPC or any other server side gwt communication technique.

Check GWT JRE Emulation:

GWT includes a library that emulates a subset of the Java runtime library. The list below shows the set of JRE packages, types and methods that GWT can translate automatically. Note that in some cases, only a subset of methods is supported for a given type.

System

err, out
System(), arraycopy(Object, int, Object, int, int), currentTimeMillis(), gc(), getProperty(String, String), identityHashCode(Object), setErr(PrintStream), setOut(PrintStream)

Community
  • 1
  • 1
Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331