Bert, it's not your classpath that is the problem. It is your system path.
You need to add your JDK's /bin directory (for example, c:\jdk1.2.2\bin) to
your SYSTEM path. In Windows use the SET PATH command to add it.

Or, you could enter the complete path to javac from where you are compiling.

For example:

c:> \jdk1.2.2\bin\javac -classpath
C:\Progra~1\Allaire\JRun\lib\ext\servlet.jar;C:\jdk1.3\lib\tools.jar
MyFirstServlet.java

Finally, try to eliminate spaces in your classpath (like between Program and
Files), as I did shown above.


  >>-----Original Message-----
  >>From: Bert [mailto:[EMAIL PROTECTED]]
  >>Sent: Thursday, June 14, 2001 12:52 PM
  >>To: JRun-Talk
  >>Subject: compiling a servlet
  >>
  >>
  >>
  >>I am trying to compile a simple servlet in jrun and I keep 
  >>getting this
  >>incorrect file name or directory error this is my classpath
  >>
  >>C:\Program 
  >>Files\Allaire\JRun\lib\ext\servlet.jar;C:\jdk1.3\lib\tools.jar
  >>
  >>
  >>Bert
  >>
  >>
  >>
  >>
  >>
  >>
  >>
  >>
  >>
  >>
  >>Microsoft Windows 2000 [Version 5.00.2195]
  >>(C) Copyright 1985-1999 Microsoft Corp.
  >>
  >>C:\>set 
  >>classpath=%classpath%;C:\Progra~1\Allaire\JRun\lib\ext\servlet.jar
  >>
  >>C:\>javac MyFirstServlet.java
  >>'javac' is not recognized as an internal or external command,
  >>operable program or batch file.
  >>
  >>C:\>cd c:\program
  >>files\allaire\jrun\servers\default\default-app\web-inf\classes
  >>
  >>
  >>C:\Program
  >>Files\Allaire\JRun\servers\default\default-app\WEB-INF\class
  >>es>javac-
  >>classpath".;c:\program files\allaire\jrun\lib\ext\servlet.jar"
  >>MyFirstServlet.ja
  >>va
  >>The filename, directory name, or volume label syntax is incorrect.
  >>
  >>C:\Program 
  >>Files\Allaire\JRun\servers\default\default-app\WEB-INF\classes>
  >>
  >>
  >>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to