javax.annotation在哪里 [英] Where is javax.annotation

查看:166
本文介绍了javax.annotation在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,所以这可能是一个NooB问题(我更多是C ++的人),但是我迷失在Java森林及其框架森林中……

Ok, so this is probably a NooB question (I'm more of a C++ guy), but I'm lost in the java woods and its frameworks forests...

我正在尝试研究Eclipse RCP开发。为此,我遵循了这个著名的教程:
http:// www .vogella.com / tutorials / EclipseRCP / article.html

I'm trying to look into eclipse RCP development. For that I'm following this well-known tutorial: http://www.vogella.com/tutorials/EclipseRCP/article.html

在第15步中,我需要添加以下依赖项软件包以导入我的捆绑软件中。
javax.annotation
javax.injection

At step 15 I need to add the following dependency packages to import in my bundle. javax.annotation javax.injection

问题是我无法选择它们(它们不在选择列表中)
我确实有javax.el javax.servlet。*和javax.xml。*

The problem is that I cannot select these (they are not in the selection list) I do have javax.el javax.servlet.* and javax.xml.*

查看
http://docs.oracle.com/javase/7/docs/api/overview-summary.html
建议这应该是标准Java的一部分。

Looking at http://docs.oracle.com/javase/7/docs/api/overview-summary.html suggests that this should be part of the standard java.

我遗漏了什么明显的错误?

What obvious mistake am I missing?

推荐答案

JavaEE 7的版本:

The version for JavaEE 7:

<dependency>
    <groupId>javax.annotation</groupId>
    <artifactId>javax.annotation-api</artifactId>
    <version>1.3.2</version>
</dependency>

请参阅: http://mvnrepository.com/artifact/javax.annotation/javax.annotation-api

如果您使用Java 8:
http://docs.oracle.com/javase/8/docs/api/javax/annotation/package-summary.html

If you use Java 8: http://docs.oracle.com/javase/8/docs/api/javax/annotation/package-summary.html

这篇关于javax.annotation在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆