|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#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
|
|||
|
|||
|
I solved this problem by specifying the full path to javac.
How do I avoid doing this?? |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
i'll try it.. thanks
|
|
#5
|
|||
|
|||
|
Quote:
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. |
|
#6
|
|||
|
|||
|
bricker,
it's running on xp pro.. can i set that within the environment variables window?? or at a command prompt? |
|
#7
|
|||
|
|||
|
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 |
|
#8
|
|||
|
|||
|
yeah.. that's what i was referring to.
thanks bricker... how's your c++?? |
|
#9
|
|||
|
|||
|
Minimal
![]() Why? |
|
#10
|
|||
|
|||
|
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... http://forums.devshed.com/showthrea...&threadid=44932 i'm alittle impatient, and i fear the user who replied may be a fly by night poster? ![]() |
|
#11
|
|||
|
|||
|
Sorry, beyond me
![]() Found some info that might be of help... http://groups.google.com/groups?q=r....aol.com&rnum=1 |
|
#12
|
|||
|
|||
|
nah...
your still the man. ![]() thanks bricker. i'll check that link justin_dago |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > 2 Servlet Problems using JRun 3.1 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|