SunQuest
           Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old September 27th, 2002, 10:40 PM
justin_dago justin_dago is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: new york
Posts: 84 justin_dago User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
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

Reply With Quote
  #2  
Old September 28th, 2002, 05:03 PM
justin_dago justin_dago is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: new york
Posts: 84 justin_dago User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
I solved this problem by specifying the full path to javac.

How do I avoid doing this??

Reply With Quote
  #3  
Old October 7th, 2002, 08:50 PM
midntrdr midntrdr is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Posts: 45 midntrdr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
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

Reply With Quote
  #4  
Old October 7th, 2002, 08:57 PM
justin_dago justin_dago is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: new york
Posts: 84 justin_dago User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
i'll try it.. thanks

Reply With Quote
  #5  
Old October 7th, 2002, 09:57 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
Quote:
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.

Reply With Quote
  #6  
Old October 8th, 2002, 01:19 PM
justin_dago justin_dago is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: new york
Posts: 84 justin_dago User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
bricker,

it's running on xp pro..
can i set that within the environment variables window?? or at a command prompt?

Reply With Quote
  #7  
Old October 8th, 2002, 02:26 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
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

Reply With Quote
  #8  
Old October 8th, 2002, 09:34 PM
justin_dago justin_dago is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: new york
Posts: 84 justin_dago User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
yeah.. that's what i was referring to.

thanks bricker...
how's your c++??

Reply With Quote
  #9  
Old October 8th, 2002, 09:45 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
Minimal

Why?

Reply With Quote
  #10  
Old October 8th, 2002, 09:54 PM
justin_dago justin_dago is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: new york
Posts: 84 justin_dago User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
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?

Reply With Quote
  #11  
Old October 8th, 2002, 10:13 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
Sorry, beyond me

Found some info that might be of help...

http://groups.google.com/groups?q=r....aol.com&rnum=1

Reply With Quote
  #12  
Old October 9th, 2002, 11:39 AM
justin_dago justin_dago is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: new york
Posts: 84 justin_dago User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
nah...

your still the man.

thanks bricker. i'll check that link


justin_dago

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > 2 Servlet Problems using JRun 3.1


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway