Change the project properties. One of the tabs allows for adding the path to
jar files. Works well this way. I also have a drive mapped to my servlets
directory on my web/JRun server. In the project properties, you can set
where the class files will be put. This works well and is very convenient.
VJ++ is also very fast when compiling I have found.

Allen

-----Original Message-----
From: Bernhard Herzog [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 10, 1999 11:09 AM
To: [EMAIL PROTECTED]
Subject: Re: Servlet vs VJ++ 6.0


> I am new in java servlet programming.  I choose VJ++ to start
> because of MSDN support.  I am trying to run a simple servlet,
> HelloWorld, under VJ++ 6.0.  The builder told me no javax
> package.  Btw, both my VJ++ and MSDN are 1998 version.  Sorry,
> I am not sure if there is anything new comes out.
>
> My ques is:  How to fix it?  Or do I have to go back to JSDK?

You need to add the jar file containing the javax-package
to your classpath. Here is how I have done it under Windows NT:
go to Start Menu -> Settings -> Control Panel -> System.
Then add an environment variable (system level) CLASSPATH
if it is not already there. You need to locate the
servlet.jar and add it to the classpath. My classpath looks
somewhat like that:

C:/xyz/lib/servlet.jar;C:/xyz/lib/jsp.jar;c:\jdk/lib/classes.zip

There must be a way to do it from within VJ++ but I prefer
to modify the environment variable.

BTW: IMHO VJ++ is a great environment for developing servlets
and esp. JSPs (syntax highlighting!) *if* you use the Microsoft
JVM to run your servlets (important for debugging servlets)
and if you do not want to use JDK 1.2 (ie JDK 1.1.x).

Good Luck
Bernhard

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to