jdk 1.5でResteasyを実行したいのですが、代わりに1.6が必要です。これを参照してください:「依存する」カテゴリのjdkバージョンを見てください。jdk 5でソースを実行/コンパイルする方法はありますか?助けてください。
3091 次
3 に答える
1
はい、できます。JDK5以降で実行されるすべてのアプリケーションサーバー/Tomcatに移植可能です。
特徴
* Fully certified JAX-RS implementation
* Portable to any app-server/Tomcat that runs on JDK 5 or higher
* Embeddedable server implementation for junit testing
* Client framework that leverages JAX-RS annotations so that you can write HTTP clients easily (JAX-RS only defines server bindings)
* Client "Browser" cache. Supports HTTP 1.1 caching semantics including cache revalidation
* Server in-memory cache. Local response cache. Automatically handles ETag generation and cache revalidation
* Rich set of providers for: XML, JSON, YAML, Fastinfoset, Multipart, XOP, Atom, etc.
* JAXB marshalling into XML, JSON, Jackson, Fastinfoset, and Atom as well as wrappers for maps, arrays, lists, and sets of JAXB Objects.
* GZIP content-encoding. Automatic GZIP compression/decompression suppport in client and server frameworks
* Asynchronous HTTP (Comet) abstractions for JBoss Web, Tomcat 6, and Servlet 3.0
* Asynchronous Job Service.
* Rich interceptor model.
* EJB, Seam, Guice, Spring, and Spring MVC integration
参照: http: //jboss.org/resteasy 「OverView->機能」を参照してください。
于 2011-01-05T20:19:03.843 に答える
1
このサイトから入手したjarは、Java 1.6(少なくとも2.1.0.GAリリース)でコンパイルされています。ここでの重要な用語は「ポータブル」です。これは、1.5バージョンを取得するには、プロジェクトを最初から再コンパイルする必要があることを意味すると解釈しています。
于 2011-03-02T21:03:29.847 に答える
0
公式ドキュメントには別の方法が記載されています。
JDK5以降で実行される任意のアプリケーションサーバー/Tomcatに移植可能
于 2011-01-05T20:19:06.280 に答える