Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
javax package
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Alex Jongman
Guest





PostPosted: Mon Apr 29, 2002 11:52 am    Post subject: javax package Reply with quote

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
n00b


Joined: 11 Apr 2002
Posts: 25
Location: Nova Scotia

PostPosted: Mon Apr 29, 2002 12:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Alex Jongman
Guest





PostPosted: Mon Apr 29, 2002 12:50 pm    Post subject: Reply with quote

To be more specific:
The code I'm trying to compile imports javax.servlet.* and javax.servlet.http.*
Back to top
PaperCrane
n00b
n00b


Joined: 11 Apr 2002
Posts: 25
Location: Nova Scotia

PostPosted: Mon Apr 29, 2002 2:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
clattuc
n00b
n00b


Joined: 19 Apr 2002
Posts: 57

PostPosted: Fri May 03, 2002 9:40 am    Post subject: Reply with quote

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 8-)

Good luck!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum