#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    new york
    Posts
    84
    Rep Power
    13

    Exclamation 2 Servlet Problems using JRun 3.1


    This should probably be 2 threads but...(sorry)

    My setup appears to be functioning correctly. I am able to run the sample apps that come with the app server...
    I have j2sdk 1.4.0 and j2sdkee 1.3.1 installed

    Problem 1:
    However, I am making my way through the basics, by following the provide tutorial. I am told to enter these two commands:

    cd <jruninstalldirectory>\servers\default\default-app\WEB-INF\classes
    javac -classpath ".;<jruninstalldirectory>\lib\ext\servlet.jar" MyFirstServlet.java


    Unfortunately, I receive the following error message:

    javac is not recognized as an internal or external command, operable program, or batch file...

    Pretty sure this thinks javac doesn't exist, when in fact it does..

    Correct me if I'm wrong but.. the javaw.exe is suppose to execute servlet.jar thus compiling my *.java file???
    Something isn't right...
    Any help would be greatly appreciated!!

    I have also tried to compile the .java file with the -classpath /dir/to/servlet.jar and that didn't work
    --------------------------------------------------------------------------------

    Problem 2:
    I have also tried to compile my sevlet.java right in /bin where javac is located and of coarse it can't find the javax packages...
    [keep in mind i have installed both the j2sdk and j2sdkee]

    is the jsdk included in j2sdkee??

    --------------------------------------------------------------------------------
    help!

    Thanks in advance


    justin_dago
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    new york
    Posts
    84
    Rep Power
    13
    I solved this problem by specifying the full path to javac.

    How do I avoid doing this??
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Posts
    45
    Rep Power
    14
    Set your classpath to the path of your jdk(version)/bin and the path to java.exe

    Then compile in the directory that your source is
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    new york
    Posts
    84
    Rep Power
    13
    i'll try it.. thanks
  8. #5
  9. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    Set your classpath to the path of your jdk(version)/bin and the path to java.exe
    That should be PATH, not classpath. This isn't a java issue, really, it's an operating system issue, but it's something you have to change when you install java. Your path needs to point to the j2sdk1.4.0_01/bin directory.
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    new york
    Posts
    84
    Rep Power
    13
    bricker,

    it's running on xp pro..
    can i set that within the environment variables window?? or at a command prompt?
  12. #7
  13. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    Never used XP....

    It looks like it's the same as win2k, though. Here's some nice graphical instructions .

    http://www.windows-help.net/WindowsXP/howto-04.html
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    new york
    Posts
    84
    Rep Power
    13
    yeah.. that's what i was referring to.

    thanks bricker...
    how's your c++??
  16. #9
  17. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    Minimal

    Why?
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    new york
    Posts
    84
    Rep Power
    13
    well i've read serveral of your posts, and you seem to possess a lot of knowledge...

    i have a post in the c++ area about returning arrays from a function, and initializing vectors, and using pointers...

    thought maybe you could take a look at it...

    returning arrays from a function

    i'm alittle impatient, and i fear the user who replied may be a fly by night poster?
  20. #11
  21. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    Sorry, beyond me

    Found some info that might be of help...

    http://groups.google.com/groups?q=re...aol.com&rnum=1
  22. #12
  23. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Location
    new york
    Posts
    84
    Rep Power
    13
    nah...

    your still the man.

    thanks bricker. i'll check that link


    justin_dago

IMN logo majestic logo threadwatch logo seochat tools logo