I want to say ,It is easy to use Joda-time jar,I study it by source before days
ago.
If you need,I can provide some source code that can run.
发件人: Sai Zhang [mailto:racezh...@gmail.com]
发送时间: 2011年1月12日 15:56
收件人: joda-interest@lists.sourceforge.net
主题: [Joda-interest] How to run Joda-time's test? Resource Not Found exception
Hi there.
I am trying to compile Joda-time from source code. However, I found running
tests
may be a bit tricky.
I download the latest version of Joda-time, and import all sources to eclipse
(since there
is no dependence to other jars). However, when executing TestAll.java, an
unexpected
exception was thrown as follows (at the end of this email).
I look around the whole source folder downloaded, and did not find any clue on
"org/joda/time/tz/data/ZoneInfoMap" resource. Could anyone kindly give me some
guidance
on how to run Joda time's tests without any exceptions? I guess there might be
some tricks in
configuring the environment.
thanks
-Sai
Exception in thread "main" java.io.IOException: Resource not found:
"org/joda/time/tz/data/ZoneInfoMap" ClassLoader:
sun.misc.launcher$appclassloa...@19821f
at org.joda.time.tz.ZoneInfoProvider.openResource(ZoneInfoProvider.java:209)
at org.joda.time.tz.ZoneInfoProvider.<init>(ZoneInfoProvider.java:123)
at org.joda.time.tz.ZoneInfoProvider.<init>(ZoneInfoProvider.java:82)
at org.joda.time.DateTimeZone.getDefaultProvider(DateTimeZone.java:439)
at org.joda.time.DateTimeZone.setProvider0(DateTimeZone.java:393)
at org.joda.time.DateTimeZone.<clinit>(DateTimeZone.java:114)
at
org.joda.time.TestBaseSingleFieldPeriod.<clinit>(TestBaseSingleFieldPeriod.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.getTest(JUnit3TestLoader.java:108)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestLoader.loadTests(JUnit3TestLoader.java:59)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
java.lang.ExceptionInInitializerError
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest