G****A 发帖数: 4160 | 1 想编译一个.java文件,报错.
文件包含:import javax.portlet.GenericPortlet;
编译器好像识别不出来这个包, 网上搜了一下,说是应该把包含javax.portlet的.jar文
件添加到classpath里面,但是不知道是哪个儿文件.
我用的JDK1.6.0_03
谢谢大家指点 | g*****g 发帖数: 34805 | 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 : 谢谢大家指点
| l****u 发帖数: 2166 | 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 : 谢谢大家指点
| l****u 发帖数: 2166 | 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/
| m******t 发帖数: 2416 | 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?
| l****u 发帖数: 2166 | 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.
|
|