Redian新闻
>
请问javax.portlet包在JDK的哪个jar文件里面(在线等)
avatar
请问javax.portlet包在JDK的哪个jar文件里面(在线等)# Java - 爪哇娇娃
G*A
1
想编译一个.java文件,报错.
文件包含:import javax.portlet.GenericPortlet;
编译器好像识别不出来这个包, 网上搜了一下,说是应该把包含javax.portlet的.jar文
件添加到classpath里面,但是不知道是哪个儿文件.
我用的JDK1.6.0_03
谢谢大家指点
avatar
g*g
2
This is portlet API, JSR 168, you should be able to find it
from Sun, Jboss or Apache, they have their own implementation.
This one should work
http://www.ibiblio.org/maven/javax.portlet/jars/

【在 G****A 的大作中提到】
: 想编译一个.java文件,报错.
: 文件包含:import javax.portlet.GenericPortlet;
: 编译器好像识别不出来这个包, 网上搜了一下,说是应该把包含javax.portlet的.jar文
: 件添加到classpath里面,但是不知道是哪个儿文件.
: 我用的JDK1.6.0_03
: 谢谢大家指点

avatar
l*u
3
is it in j2ee bah, assume
try to look at ur app/web server package

【在 G****A 的大作中提到】
: 想编译一个.java文件,报错.
: 文件包含:import javax.portlet.GenericPortlet;
: 编译器好像识别不出来这个包, 网上搜了一下,说是应该把包含javax.portlet的.jar文
: 件添加到classpath里面,但是不知道是哪个儿文件.
: 我用的JDK1.6.0_03
: 谢谢大家指点

avatar
l*u
4
is it a seperate packed than j2ee mah?

【在 g*****g 的大作中提到】
: This is portlet API, JSR 168, you should be able to find it
: from Sun, Jboss or Apache, they have their own implementation.
: This one should work
: http://www.ibiblio.org/maven/javax.portlet/jars/

avatar
m*t
5

I don't think you can find it in a plain vanilla j2ee container. It's not
sufficient for OP to just download the jar either, because that only get him
through compilation. To run it, he needs a portlet server.

【在 l****u 的大作中提到】
: is it a seperate packed than j2ee mah?
avatar
l*u
6

him
true

【在 m******t 的大作中提到】
:
: I don't think you can find it in a plain vanilla j2ee container. It's not
: sufficient for OP to just download the jar either, because that only get him
: through compilation. To run it, he needs a portlet server.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。