The Artima Developer Community
Sponsored Link

Java Answers Forum
Java Quest

2 replies on 1 page. Most recent reply: Mar 7, 2002 9:55 AM by Bill Venners

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Sara

Posts: 1
Nickname: sara
Registered: Mar, 2002

Java Quest Posted: Mar 6, 2002 8:40 AM
Reply to this message Reply
Advertisement
1.I am getting this message while compiling java program:import package javax.servlet.http not found. So Please tell me how to solve this problem

2.Is it possible to compile many java programs together by MAkefile

3. For Java and servlet programs, its necessary to compile programs with tomcat.

Thanks
Sara


Chuck Herrick

Posts: 2
Nickname: cherrick
Registered: Mar, 2002

Re: Java Quest Posted: Mar 6, 2002 11:51 AM
Reply to this message Reply
1. I'm guessing your $CLASSPATH or %classpath% is not set to point to a directory or JAR file which contains the http package. If you're compiling from the commandline under NT, type "echo %classpath%" to see the places where Java will look for things.

2. Make will indeed execute javac against as many .java files as you like. Write your Makefile accordingly.

3. If any Java and/or servlet programs reference in their code any Tomcat Java classes, then it will be necessary to put the Tomcat .class files or .jar file(s) into your $CLASSPATH when you invoke javac.

Bill Venners

Posts: 2284
Nickname: bv
Registered: Jan, 2002

Re: Java Quest Posted: Mar 7, 2002 9:55 AM
Reply to this message Reply
> 2.Is it possible to compile many java programs
> together by MAkefile
>
Yes, but you may want to look at ant as an alternative to make for compiling Java:

http://jakarta.apache.org/ant/index.html

Flat View: This topic has 2 replies on 1 page
Topic: Could someone give this a look please? Previous Topic   Next Topic Topic: Creating an EXE File by using Sun Java

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use