Saturday 15 August 2015

java - org.joda.time.DateTime.parse in Netbans okay but in eclipse error -


I am very confused now

The following line is compiled in NetBeans, but not in eclipse ( The same pc, the same Java version, both the import organization. Joda.time.DateTime) Eclipse says, "the method is parse type is unscheduled for the date time"

  datetime datetime = new Datetime (datetime.ps (timestamp));   

To show you the full block that is about this line:

  last double value = val.getValue (); // outside string timestamp = val.getTimestampIso8601 (); Date Time DateTime = New DateTime (Datetime, PRSE (Timestamp)); Date Date = DateTime ();   

Any idea why this line of code does not work in eclipse, but in Netbeans?

Thanks

You can access various JodTime libraries for jar Or using maven versions. Make sure the two are equal.

I'm sorry for a reply but I can not write comments yet.

No comments:

Post a Comment