View previous topic :: View next topic |
Author |
Message |
Alex Jongman Guest
|
Posted: Mon Apr 29, 2002 11:52 am Post subject: javax package |
|
|
Hi,
When I try to compile java code that imports something from javax the compiler (blackdown) complains that the package doesn't exist.
So I wonder if I have to emerge some additional ebuilds (Tomcat is already installed).
with regards,
Alex |
|
Back to top |
|
|
PaperCrane n00b
Joined: 11 Apr 2002 Posts: 25 Location: Nova Scotia
|
Posted: Mon Apr 29, 2002 12:25 pm Post subject: |
|
|
Can you be more specific? What package exactly? If it's part of the javax.xml package then you have to emerge jaxp first. |
|
Back to top |
|
|
Alex Jongman Guest
|
Posted: Mon Apr 29, 2002 12:50 pm Post subject: |
|
|
To be more specific:
The code I'm trying to compile imports javax.servlet.* and javax.servlet.http.* |
|
Back to top |
|
|
PaperCrane n00b
Joined: 11 Apr 2002 Posts: 25 Location: Nova Scotia
|
Posted: Mon Apr 29, 2002 2:19 pm Post subject: |
|
|
Well those packages aren't part of the JDK so it sounds like you classpath isn't set properly. Try reading http://www.gentoo.org/doc/en/java.xml |
|
Back to top |
|
|
clattuc n00b
Joined: 19 Apr 2002 Posts: 57
|
Posted: Fri May 03, 2002 9:40 am Post subject: |
|
|
Alex Jongman wrote: | To be more specific:
The code I'm trying to compile imports javax.servlet.* and javax.servlet.http.* |
If you have emerged tomcat all the stuff you require is already installed, but probably not on your classpath.
The libraries you need (servlet.jar, specifically) are installed under /opt/jakarta/tomcat/common/lib/ (the same as $CATALINA_HOME/common/lib)
Add those, and try again
Good luck! |
|
Back to top |
|
|
|