Results 1 to 12 of 12

Thread: starting jsp....

  1. #1

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    starting jsp....

    I started reading this old book about jsp, and I'm having a few problems getting started. First of all, it says that I need to set these environment variables: Java_HOME, and J2EE_HOME. I don't see those, and I don't think their is a need for them, but I can't get this one command line argument going. I'm trying to start the server, but it says cannot find j2ee. Here is what it told me to type at the command line: start j2ee -verbose, but that doesn't work. I have downloaded j2ee4.2, and I have jdk1.5, so what's the problem?

  2. #2

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: starting jsp....

    Another thing, I thought I had to do something with tomcat, but the book never metioned anything like that.

  3. #3
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    Re: starting jsp....

    Just to clear things up. j2ee isn't needed to run jsp pages unless you are using servlets. The user-defined servlets extend HttpServlet which is only found within j2ee and the HttpServletResponse, HttpServletRequest classes that are taken as params to doGet() are also found within j2ee. Packages imports javax.servlet and javax.servlet.http.

    The java_home system var is definitely needed. Also i noticed that you said you were trying to start the server. What are you running? tomcat? Just go to the bin where the startup script can be found. Mine is in the following directory. C:\Jakarta\jakarta-tomcat-5.0.28\bin. Then type either start or startup. I forget which one. I just change sdk's so my variables are all different now so i can't start the server.

  4. #4

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: starting jsp....

    I'm not running tomcat, I don't think. I'm reading this out of a book, and the book is really old. I think it's the j2ee server it was trying to run. I'm thinking about ditching the book because it sucks.

  5. #5

  6. #6

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: starting jsp....

    What about if I just want to run the J2ee server, do you think the only reason taht doesn't work is because my j2ee home path, and java home path are not set?

    Also, is tomcat basicly the same thing, or does it require more programming?

  7. #7

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: starting jsp....

    Ohh yeah, one more thing: I was looking at tomcat a while back, and noticed that they were all bin files...Will that open on windows?

  8. #8

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: starting jsp....

    Dillenger, me need help!

  9. #9
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: starting jsp....

    Bin files? I don't get it. You donwload a zip or tar or what ever and then unzip it on your machine. Set up the CLASSPATH and so on.


    For a little starting help:
    http://www.jguru.com/faq/view.jsp?EID=416224

  10. #10

    Thread Starter
    Frenzied Member System_Error's Avatar
    Join Date
    Apr 2004
    Posts
    1,111

    Re: starting jsp....

    Quote Originally Posted by NoteMe
    Bin files? I don't get it. You donwload a zip or tar or what ever and then unzip it on your machine. Set up the CLASSPATH and so on.
    I must have been looking at the wrong spot, because where I was looking was all bin files. I found it though. Thank you.

  11. #11
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: starting jsp....

    No problem. Just ask again if you get an other problem with it. But to be honest. Dilenger knows a lot more about Tomcat then I ever will...

  12. #12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width