Newbie Question

1999-10-08 Thread Don Hatch

I'm new to java on Linux but have experience with programming java on
Windows.  I'm having some problems compiling servlets.  When I run javac on
simple servlets it complains saying that it can't find javax.servlet or
javax.servlet.http or Superclass HttpServlet.  I'm using Debian 2.1 and
jdk1.2 Here is my profile info:

PATH=/usr/local/jdk1.2/bin:/usr/local/jsdk2.0/bin:/usr/local/sbin:/usr/local
/bin:/usr/sbin:/sbin:/bin:/usr/X11R6/bin
DISPLAY=:0
JAVA_HOME=/usr/local/jdk1.2
CLASSPATH=.:$JAVA_HOME/lib/classes.zip:/usr/local/jdk1.2/jre/lib/rt.jar

Any help would be appreciated,

Don Hatch


_
Get Your Free Email at http://www.webpipe.net


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



More Newbie questions

1999-10-08 Thread Don Hatch

Thanks to everyone that helped me with my last problem but now I get this
error when I run java  (compiles file):

Exception in thread "main" java.lang.NoSuchMethodError : main

I thought it was my code, but I've tried it with example servlets from both
the jserv implementation as well as the jsdk2.0.  I am compiling it in the
directory /home/admin.  Here is my updated profile info:

PATH=/usr/local/jdk1.2/bin:/usr/local/jsdk2.0/bin:/usr/local/jsdk2.0/lib/jsd
k.jar:/usr/sbin:/usr/bin:/sbin:/bin
DISPLAY=:0
JAVA_HOME=/usr/local/jdk1.2
CLASSPATH=.:/home/admin:/usr/local/jdk1.2/jre/lib/rt.jar:/usr/local/jsdk2.0/
lib/jsdk.jar






_
Get Your Free Email at http://www.webpipe.net


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Newbie Question - Please Help

1999-11-15 Thread Don Hatch

I can't seem to get my envireonment variables to work.  When I run javac file.java I 
get his error:  
"Warning: JIT compiler "sunwjit" not found. Will use interpreter."  

It creates a class file and runs fine, but I still get the error.  If anyone has any 
suggestions, please help.  I'm running Debian 2.1 with jdk1.2pre-v2.  Here is a copy 
of .profile:

PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/mysql/bin:/usr/local/java/jdk1.2/bin
DISPLAY=:0
JAVA_HOME=/usr/local/java/jdk1.2
CLASSPATH=.:/usr/local/java/jdk1.2/jre/lib/rt.jar:

export PATH DISPLAY JAVA_HOME CLASSPATH

Thanks in advance,

Don Hatch

___
Site Design, Hosting, and E-Commerce at www.webpipe.net


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]