JODA time in Java Appengine

Has anyone got JODA time classes to work on Google Appengine? I am using 1.3.4 java sdk, and when trying to execute the following error:

java.lang.NoClassDefFoundError: com/google/appengine/repackaged/org/joda/time/DateTimeZone 

I also imported it:

 import com.google.appengine.repackaged.org.joda.time.DateTime; 
+7
java google-app-engine datetime jodatime
source share
2 answers

The real purpose of repackaged classes is that Google has its own set of classes that they can use, and which do not conflict with known packages. Re-packaged classes are not intended for public use, and if you do, you do so at your own risk. They could be pulled out at any time.

You can download JODA and just include it as a dependency, there should be nothing to stop it from working. Names will not conflict with Google due to different packages.

+13
source share

Many people also love iodine.

I suggest placing the jar of the JODA package in your lib directory and importing it directly.

  import org.joda.time.DateTime; 
+3
source share

All Articles