Go Back   openSUSE Forums > Archives > SLS Archives > ARCHIVES - SuSE Linux > ARCHIVES - 64bit Environments
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - 64bit Environments Running an AMD64 or Xeon system? Of course Linux is ready for it - but if you have any questions feel free to ask in here!

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 28-Mar-2008, 09:39
TheDonAtl
Guest
 
Posts: n/a
Default

I used a "standard" installation, and included Apache, Tomcat, etc, but when I try to compile a servlet, I get this:

TestingServlet.java:1: package javax.servlet does not exist

(same with just javax.*)

my env's are:

JAVA_BINDIR=/usr/lib64/jvm/java/bin
JAVA_HOME=/usr/lib64/jvm/java
JAVA_ROOT=/usr/lib64/jvm/java

clearly I am missing something... where/what do I change?

Thanks! I have (mis)spent most of my life in a much more... ummm.... "graphical" env, and am on uncertain footing...

  #2 (permalink)  
Old 28-Mar-2008, 10:29
TioDuke
Guest
 
Posts: n/a
Default

This is not an x64 issue.

All you need to do is to specify tomcat's "servlet.jar" in classpath when you compile your servlet. I have a very bad memory, but you need to do something like this:

javac -cp your/tomcat/lib/path/servlet.jar TestingServlet.java

Or something of the like.
  #3 (permalink)  
Old 28-Mar-2008, 11:41
TheDonAtl
Guest
 
Posts: n/a
Default

Thanks.

I was in KDevelop, trying to use the GUI build, and was specifying the classpath, but no luck.

on the command line, however, this works...

so... thanks!
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2