RE: [KCFusion] off topic - classpath, xml and java
Finally resolved this. Downloaded the SDK (35MB) which included javac.exe and the JRE. I put javac.exe in the classpath and also followed the previous suggestions about modifying classpath. The first test worked! Of course that sample test was from the DOS prompt, so I'm now getting ready to do XML from Web pages. Thanks for all the help. Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Monday, December 10, 2001 12:53 PM To: [EMAIL PROTECTED] Subject: RE: [KCFusion] off topic - classpath, xml and java Keith, That seems to be the case. However, you can verify that quickly by compiling a sample Java Program and running it (here is a quick one), - - - - - - - - - - - - - - - - - - - - - import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; import javax.swing.event.*; public class Test { public static void main(String[] args) { System.out.println (Hello there!); } } - - - - - - - - - - - - - - - - - - - -- - - - The imports statements are really not necessary for the execution of the program, but I am including so you can see if some of the basic Java libraries are accessible or not. If this compiles (use javac.exe to compile and java.exe to run to get the message on the command console), then you have the Java installed correctly. If not, you need to download the JDK (you will need Java 2 Standard Edition from Sun's website) tool kit and install on your computer and it should all work fine after that. Let me know what happens and accordingly I can tell you the next steps if needed. Girish Keith Purtell kpurtell@vantagTo: [EMAIL PROTECTED] emed.com cc: Sent by:Subject: RE: [KCFusion] off topic - classpath, xml and java CF-List-owner@kc fusion.org 12/10/01 12:24 PM Please respond to CF-List I took the jar files they provided and installed them in one recommended location, and added their names to the classpath. (I'm including classpath with line returns for readability.) Some of the online docs I found attribute my error message to an inability to find the java compiler. I don't know if that's the case, and if either of the last two items (which installed with ColdFusion) is the compiler. %SystemRoot%\Java\Classes\xalan.jar; %SystemRoot%\Java\Classes\xerces.jar; %SystemRoot%\Java\Classes\xalansamples.jar; %SystemRoot%\Java\Classes\bsf.jar; %SystemRoot%\Java\Classes\bsfengines.jar; %SystemRoot%\Java\Classes\java_cup.jar; %SystemRoot%\Java\Classes\JLex.jar; %SystemRoot%\Java\Classes\runtime.jar; %SystemRoot%\Java\Classes\BCEL.jar; %SystemRoot%\Java\Classes\xalanservlet.jar; %SystemRoot%\Java\Classes\xml-apis.jar; %SystemRoot%\Java\Classes\xsltc.jar; C:\CFUSION\jre\bin\java.exe; C:\CFUSION\jre\bin\javaw.exe Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] Voice: (816) 801-5200 Fax: (816) 880-4776 (800) 525-1101 CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Monday, December 10, 2001 12:11 PM To: [EMAIL PROTECTED] Subject: Re: [KCFusion] off topic - classpath, xml and java Keith, Giving some snippet would help, but sounds like you need to specifically include the jar file (that has the class that you are invoking). For example, if the jar file is Servlet.jar then make sure that you not only specify the path to it but includes its name in the classpath variable (so locate the jar file that contains the class and associated methods and include the jar file name as part of class path). Hope this helps (depending on what exactly you are doing the problem could be also be related to location of jar file path relative to the root, if you are still having problem let me know and I will try to help you out). Girish Keith Purtell
Re: [KCFusion] off topic - classpath, xml and java
As some of you might have noticed I am not a computer programmer by academic training. Its something I did for fun that happened to pay really well. As a result some of the newer web technologies fly right over my head. I have read about XML but the only definition I can gleen is it describes data which is absolutly undescriptive and meaningless. Can someone explain briefly what XML is supposed to help me do better? Adaryl __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED]
[KCFusion] off topic - classpath, xml and java
I'm trying to set up some xml tests on an NT4 server, using samples and supporting files from xml.apache.org. Even after adding all .jar files to the classpath, as and several other items like the java executable, I still get The name specified is not recognized as an internal or external command, operable program or batch file. Some online docs attribute this error to the system not finding the java compiler. So I added everything in classpath to the path system variable but got the same error message. Have any of you gone down this road before? Looks like a simple mistake. Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED]
Re: [KCFusion] off topic - classpath, xml and java
Keith, Giving some snippet would help, but sounds like you need to specifically include the jar file (that has the class that you are invoking). For example, if the jar file is Servlet.jar then make sure that you not only specify the path to it but includes its name in the classpath variable (so locate the jar file that contains the class and associated methods and include the jar file name as part of class path). Hope this helps (depending on what exactly you are doing the problem could be also be related to location of jar file path relative to the root, if you are still having problem let me know and I will try to help you out). Girish Keith Purtell kpurtell@vantagTo: KCFusion (E-mail) [EMAIL PROTECTED] emed.com cc: Sent by:Subject: [KCFusion] off topic - classpath, xml and java CF-List-owner@kc fusion.org 12/10/01 11:57 AM Please respond to CF-List I'm trying to set up some xml tests on an NT4 server, using samples and supporting files from xml.apache.org. Even after adding all .jar files to the classpath, as and several other items like the java executable, I still get The name specified is not recognized as an internal or external command, operable program or batch file. Some online docs attribute this error to the system not finding the java compiler. So I added everything in classpath to the path system variable but got the same error message. Have any of you gone down this road before? Looks like a simple mistake. Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED] __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED]
RE: [KCFusion] off topic - classpath, xml and java
I took the jar files they provided and installed them in one recommended location, and added their names to the classpath. (I'm including classpath with line returns for readability.) Some of the online docs I found attribute my error message to an inability to find the java compiler. I don't know if that's the case, and if either of the last two items (which installed with ColdFusion) is the compiler. %SystemRoot%\Java\Classes\xalan.jar; %SystemRoot%\Java\Classes\xerces.jar; %SystemRoot%\Java\Classes\xalansamples.jar; %SystemRoot%\Java\Classes\bsf.jar; %SystemRoot%\Java\Classes\bsfengines.jar; %SystemRoot%\Java\Classes\java_cup.jar; %SystemRoot%\Java\Classes\JLex.jar; %SystemRoot%\Java\Classes\runtime.jar; %SystemRoot%\Java\Classes\BCEL.jar; %SystemRoot%\Java\Classes\xalanservlet.jar; %SystemRoot%\Java\Classes\xml-apis.jar; %SystemRoot%\Java\Classes\xsltc.jar; C:\CFUSION\jre\bin\java.exe; C:\CFUSION\jre\bin\javaw.exe Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] Voice: (816) 801-5200 Fax: (816) 880-4776 (800) 525-1101 CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Monday, December 10, 2001 12:11 PM To: [EMAIL PROTECTED] Subject: Re: [KCFusion] off topic - classpath, xml and java Keith, Giving some snippet would help, but sounds like you need to specifically include the jar file (that has the class that you are invoking). For example, if the jar file is Servlet.jar then make sure that you not only specify the path to it but includes its name in the classpath variable (so locate the jar file that contains the class and associated methods and include the jar file name as part of class path). Hope this helps (depending on what exactly you are doing the problem could be also be related to location of jar file path relative to the root, if you are still having problem let me know and I will try to help you out). Girish Keith Purtell kpurtell@vantagTo: KCFusion (E-mail) [EMAIL PROTECTED] emed.com cc: Sent by:Subject: [KCFusion] off topic - classpath, xml and java CF-List-owner@kc fusion.org 12/10/01 11:57 AM Please respond to CF-List I'm trying to set up some xml tests on an NT4 server, using samples and supporting files from xml.apache.org. Even after adding all .jar files to the classpath, as and several other items like the java executable, I still get The name specified is not recognized as an internal or external command, operable program or batch file. Some online docs attribute this error to the system not finding the java compiler. So I added everything in classpath to the path system variable but got the same error message. Have any of you gone down this road before? Looks like a simple mistake. Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED]
RE: [KCFusion] off topic - classpath, xml and java
Keith, That seems to be the case. However, you can verify that quickly by compiling a sample Java Program and running it (here is a quick one), - - - - - - - - - - - - - - - - - - - - - import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; import javax.swing.event.*; public class Test { public static void main(String[] args) { System.out.println (Hello there!); } } - - - - - - - - - - - - - - - - - - - -- - - - The imports statements are really not necessary for the execution of the program, but I am including so you can see if some of the basic Java libraries are accessible or not. If this compiles (use javac.exe to compile and java.exe to run to get the message on the command console), then you have the Java installed correctly. If not, you need to download the JDK (you will need Java 2 Standard Edition from Sun's website) tool kit and install on your computer and it should all work fine after that. Let me know what happens and accordingly I can tell you the next steps if needed. Girish Keith Purtell kpurtell@vantagTo: [EMAIL PROTECTED] emed.com cc: Sent by:Subject: RE: [KCFusion] off topic - classpath, xml and java CF-List-owner@kc fusion.org 12/10/01 12:24 PM Please respond to CF-List I took the jar files they provided and installed them in one recommended location, and added their names to the classpath. (I'm including classpath with line returns for readability.) Some of the online docs I found attribute my error message to an inability to find the java compiler. I don't know if that's the case, and if either of the last two items (which installed with ColdFusion) is the compiler. %SystemRoot%\Java\Classes\xalan.jar; %SystemRoot%\Java\Classes\xerces.jar; %SystemRoot%\Java\Classes\xalansamples.jar; %SystemRoot%\Java\Classes\bsf.jar; %SystemRoot%\Java\Classes\bsfengines.jar; %SystemRoot%\Java\Classes\java_cup.jar; %SystemRoot%\Java\Classes\JLex.jar; %SystemRoot%\Java\Classes\runtime.jar; %SystemRoot%\Java\Classes\BCEL.jar; %SystemRoot%\Java\Classes\xalanservlet.jar; %SystemRoot%\Java\Classes\xml-apis.jar; %SystemRoot%\Java\Classes\xsltc.jar; C:\CFUSION\jre\bin\java.exe; C:\CFUSION\jre\bin\javaw.exe Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] Voice: (816) 801-5200 Fax: (816) 880-4776 (800) 525-1101 CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Monday, December 10, 2001 12:11 PM To: [EMAIL PROTECTED] Subject: Re: [KCFusion] off topic - classpath, xml and java Keith, Giving some snippet would help, but sounds like you need to specifically include the jar file (that has the class that you are invoking). For example, if the jar file is Servlet.jar then make sure that you not only specify the path to it but includes its name in the classpath variable (so locate the jar file that contains the class and associated methods and include the jar file name as part
RE: [KCFusion] off topic - classpath, xml and java
I'm going to run your test, but I already suspect I know which component is missing. You mention javac.exe. I've searched for that before and it doesn't exist on my server's C drive. I only have java.exe and javaw.exe. So I'm also going to go ahead and download the SDK, as the root of this issue is becoming more obvious. Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Monday, December 10, 2001 12:53 PM To: [EMAIL PROTECTED] Subject: RE: [KCFusion] off topic - classpath, xml and java Keith, That seems to be the case. However, you can verify that quickly by compiling a sample Java Program and running it (here is a quick one), - - - - - - - - - - - - - - - - - - - - - import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; import javax.swing.event.*; public class Test { public static void main(String[] args) { System.out.println (Hello there!); } } - - - - - - - - - - - - - - - - - - - -- - - - The imports statements are really not necessary for the execution of the program, but I am including so you can see if some of the basic Java libraries are accessible or not. If this compiles (use javac.exe to compile and java.exe to run to get the message on the command console), then you have the Java installed correctly. If not, you need to download the JDK (you will need Java 2 Standard Edition from Sun's website) tool kit and install on your computer and it should all work fine after that. Let me know what happens and accordingly I can tell you the next steps if needed. Girish Keith Purtell kpurtell@vantagTo: [EMAIL PROTECTED] emed.com cc: Sent by:Subject: RE: [KCFusion] off topic - classpath, xml and java CF-List-owner@kc fusion.org 12/10/01 12:24 PM Please respond to CF-List I took the jar files they provided and installed them in one recommended location, and added their names to the classpath. (I'm including classpath with line returns for readability.) Some of the online docs I found attribute my error message to an inability to find the java compiler. I don't know if that's the case, and if either of the last two items (which installed with ColdFusion) is the compiler. %SystemRoot%\Java\Classes\xalan.jar; %SystemRoot%\Java\Classes\xerces.jar; %SystemRoot%\Java\Classes\xalansamples.jar; %SystemRoot%\Java\Classes\bsf.jar; %SystemRoot%\Java\Classes\bsfengines.jar; %SystemRoot%\Java\Classes\java_cup.jar; %SystemRoot%\Java\Classes\JLex.jar; %SystemRoot%\Java\Classes\runtime.jar; %SystemRoot%\Java\Classes\BCEL.jar; %SystemRoot%\Java\Classes\xalanservlet.jar; %SystemRoot%\Java\Classes\xml-apis.jar; %SystemRoot%\Java\Classes\xsltc.jar; C:\CFUSION\jre\bin\java.exe; C:\CFUSION\jre\bin\javaw.exe Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] Voice: (816) 801-5200 Fax: (816) 880-4776 (800) 525-1101 CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Monday, December 10, 2001 12:11 PM To: [EMAIL PROTECTED] Subject: Re: [KCFusion] off topic - classpath, xml and java Keith, Giving some snippet would help, but sounds like you need to specifically include the jar file (that has the class that you are invoking). For example, if the jar file is Servlet.jar then make sure that you not only specify the path to it but includes its name in the classpath variable (so locate the jar file that contains the class and associated methods and include the jar file name as part of class path). Hope this helps (depending on what exactly you are doing the problem could be also be related to location of jar file path relative to the root, if you are still having problem let me know and I will try to help you out). Girish Keith Purtell
Re: [KCFusion] off topic - classpath, xml and java
Keith, I don't think you need to put the files in the classpath, just the directory. Don't forget to include \jre\lib in the classpath. The .exe's have no business there. I actually wrote a DevCenter article that may be helpful (though it's a but basic). It should be in the next issue, but you can preview it here: http://www.windsorcs.com/leveragingJava.htm --Daryl - Original Message - From: Keith Purtell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 10, 2001 12:24 PM Subject: RE: [KCFusion] off topic - classpath, xml and java I took the jar files they provided and installed them in one recommended location, and added their names to the classpath. (I'm including classpath with line returns for readability.) Some of the online docs I found attribute my error message to an inability to find the java compiler. I don't know if that's the case, and if either of the last two items (which installed with ColdFusion) is the compiler. %SystemRoot%\Java\Classes\xalan.jar; %SystemRoot%\Java\Classes\xerces.jar; %SystemRoot%\Java\Classes\xalansamples.jar; %SystemRoot%\Java\Classes\bsf.jar; %SystemRoot%\Java\Classes\bsfengines.jar; %SystemRoot%\Java\Classes\java_cup.jar; %SystemRoot%\Java\Classes\JLex.jar; %SystemRoot%\Java\Classes\runtime.jar; %SystemRoot%\Java\Classes\BCEL.jar; %SystemRoot%\Java\Classes\xalanservlet.jar; %SystemRoot%\Java\Classes\xml-apis.jar; %SystemRoot%\Java\Classes\xsltc.jar; C:\CFUSION\jre\bin\java.exe; C:\CFUSION\jre\bin\javaw.exe Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] Voice: (816) 801-5200 Fax: (816) 880-4776 (800) 525-1101 CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Monday, December 10, 2001 12:11 PM To: [EMAIL PROTECTED] Subject: Re: [KCFusion] off topic - classpath, xml and java Keith, Giving some snippet would help, but sounds like you need to specifically include the jar file (that has the class that you are invoking). For example, if the jar file is Servlet.jar then make sure that you not only specify the path to it but includes its name in the classpath variable (so locate the jar file that contains the class and associated methods and include the jar file name as part of class path). Hope this helps (depending on what exactly you are doing the problem could be also be related to location of jar file path relative to the root, if you are still having problem let me know and I will try to help you out). Girish Keith Purtell kpurtell@vantagTo: KCFusion (E-mail) [EMAIL PROTECTED] emed.com cc: Sent by:Subject: [KCFusion] off topic - classpath, xml and java CF-List-owner@kc fusion.org 12/10/01 11:57 AM Please respond to CF-List I'm trying to set up some xml tests on an NT4 server, using samples and supporting files from xml.apache.org. Even after adding all .jar files to the classpath, as and several other items like the java executable, I still get The name specified is not recognized as an internal or external command, operable program or batch file. Some online docs attribute this error to the system not finding the java compiler. So I added everything in classpath to the path system variable but got the same error message. Have any of you gone down this road before? Looks like a simple mistake. Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. __ The KCFusion.org list and website is hosted by Humankind Systems, Inc. List Archives http://www.mail-archive.com/cf-list@kcfusion.org Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED] To Subscribe mailto:[EMAIL PROTECTED] To Unsubscribe mailto:[EMAIL PROTECTED] __ The KCFusion.org list and website is hosted
Re: [KCFusion] off topic - classpath, xml and java
Keith, What you really need are Java libraries (and not the kit as such but installing one will get access to it - I am suggesting the JDK path for verification and locating source of your problem). I believe \jre\lib path is already in your classpath definition but appears the library files (that are being called by your jar files) are missing. You can save yourselves lot of time of installing JDK etc., if you can make sure the basic java library files are in place and then only install those library files (as your classpath already points correctly to them if I understand correctly). Daryl is right that typically all you need is just the path for the library files in your classpath environmental variable (however, in my experience depending on your setup and what you are doing you may need to explicitely include the jar file in your path). Girish Daryl Banttari [EMAIL PROTECTED]To: [EMAIL PROTECTED] t cc: Sent by:Subject: Re: [KCFusion] off topic - classpath, xml and java CF-List-owner@kc fusion.org 12/10/01 01:40 PM Please respond to CF-List Keith, I don't think you need to put the files in the classpath, just the directory. Don't forget to include \jre\lib in the classpath. The .exe's have no business there. I actually wrote a DevCenter article that may be helpful (though it's a but basic). It should be in the next issue, but you can preview it here: http://www.windsorcs.com/leveragingJava.htm --Daryl - Original Message - From: Keith Purtell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 10, 2001 12:24 PM Subject: RE: [KCFusion] off topic - classpath, xml and java I took the jar files they provided and installed them in one recommended location, and added their names to the classpath. (I'm including classpath with line returns for readability.) Some of the online docs I found attribute my error message to an inability to find the java compiler. I don't know if that's the case, and if either of the last two items (which installed with ColdFusion) is the compiler. %SystemRoot%\Java\Classes\xalan.jar; %SystemRoot%\Java\Classes\xerces.jar; %SystemRoot%\Java\Classes\xalansamples.jar; %SystemRoot%\Java\Classes\bsf.jar; %SystemRoot%\Java\Classes\bsfengines.jar; %SystemRoot%\Java\Classes\java_cup.jar; %SystemRoot%\Java\Classes\JLex.jar; %SystemRoot%\Java\Classes\runtime.jar; %SystemRoot%\Java\Classes\BCEL.jar; %SystemRoot%\Java\Classes\xalanservlet.jar; %SystemRoot%\Java\Classes\xml-apis.jar; %SystemRoot%\Java\Classes\xsltc.jar; C:\CFUSION\jre\bin\java.exe; C:\CFUSION\jre\bin\javaw.exe Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] Voice: (816) 801-5200 Fax: (816) 880-4776 (800) 525-1101 CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Monday, December 10, 2001 12:11 PM To: [EMAIL PROTECTED] Subject: Re: [KCFusion] off topic - classpath, xml and java Keith, Giving some snippet would help
RE: [KCFusion] off topic - classpath, xml and java
Two newbie questions: If just a directory in classpath does it need a trailing backslash? How do I identify a Java library? Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] Voice: (816) 801-5200 Fax: (816) 880-4776 (800) 525-1101 CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Monday, December 10, 2001 2:13 PM To: [EMAIL PROTECTED] Subject: Re: [KCFusion] off topic - classpath, xml and java Keith, What you really need are Java libraries (and not the kit as such but installing one will get access to it - I am suggesting the JDK path for verification and locating source of your problem). I believe \jre\lib path is already in your classpath definition but appears the library files (that are being called by your jar files) are missing. You can save yourselves lot of time of installing JDK etc., if you can make sure the basic java library files are in place and then only install those library files (as your classpath already points correctly to them if I understand correctly). Daryl is right that typically all you need is just the path for the library files in your classpath environmental variable (however, in my experience depending on your setup and what you are doing you may need to explicitely include the jar file in your path). Girish Daryl Banttari [EMAIL PROTECTED]To: [EMAIL PROTECTED] t cc: Sent by:Subject: Re: [KCFusion] off topic - classpath, xml and java CF-List-owner@kc fusion.org 12/10/01 01:40 PM Please respond to CF-List Keith, I don't think you need to put the files in the classpath, just the directory. Don't forget to include \jre\lib in the classpath. The .exe's have no business there. I actually wrote a DevCenter article that may be helpful (though it's a but basic). It should be in the next issue, but you can preview it here: http://www.windsorcs.com/leveragingJava.htm --Daryl - Original Message - From: Keith Purtell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 10, 2001 12:24 PM Subject: RE: [KCFusion] off topic - classpath, xml and java I took the jar files they provided and installed them in one recommended location, and added their names to the classpath. (I'm including classpath with line returns for readability.) Some of the online docs I found attribute my error message to an inability to find the java compiler. I don't know if that's the case, and if either of the last two items (which installed with ColdFusion) is the compiler. %SystemRoot%\Java\Classes\xalan.jar; %SystemRoot%\Java\Classes\xerces.jar; %SystemRoot%\Java\Classes\xalansamples.jar; %SystemRoot%\Java\Classes\bsf.jar; %SystemRoot%\Java\Classes\bsfengines.jar; %SystemRoot%\Java\Classes\java_cup.jar; %SystemRoot%\Java\Classes\JLex.jar; %SystemRoot%\Java\Classes\runtime.jar; %SystemRoot%\Java\Classes\BCEL.jar; %SystemRoot%\Java\Classes\xalanservlet.jar; %SystemRoot%\Java\Classes\xml-apis.jar; %SystemRoot%\Java\Classes\xsltc.jar; C:\CFUSION\jre\bin\java.exe; C:\CFUSION\jre\bin\javaw.exe Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] Voice: (816) 801-5200 Fax: (816) 880-4776 (800) 525-1101 CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Monday, December 10, 2001 12:11 PM To: [EMAIL PROTECTED] Subject: Re: [KCFusion] off topic - classpath, xml and java Keith, Giving some snippet would help, but sounds like you need to specifically include the jar file (that has the class that you are invoking). For example, if the jar file is Servlet.jar then make sure that you not only specify the path to it but includes its name in the classpath variable (so locate the jar file that contains the class and associated methods and include the jar file name as part of class path). Hope this helps (depending on what exactly you
RE: [KCFusion] off topic - classpath, xml and java
(1) Depends on the system under Windows it does not matter so long as it is the Windows doing the reading (but got to be careful if inside java programs running even under Windows as \ is interpreted as escape sequence inside Java and directory(folder) is designated with / inside UNIX environment as is also acceptable to Windows). I always use / out of habit (so even if it is Netscape browser all still works, Explorer does not care consistent with Windows). (2) Library files could be with .lib extension or .jar extensions - so in general could be both inside your folder. Some of the typical library files (\jre\lib) provided when you install JDK are - jaws.jar, jawt.lib etc. The library may also include properties files that go with specific classes. Girish Keith Purtell kpurtell@vantagTo: [EMAIL PROTECTED] emed.com cc: Sent by:Subject: RE: [KCFusion] off topic - classpath, xml and java CF-List-owner@kc fusion.org 12/10/01 02:17 PM Please respond to CF-List Two newbie questions: If just a directory in classpath does it need a trailing backslash? How do I identify a Java library? Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] Voice: (816) 801-5200 Fax: (816) 880-4776 (800) 525-1101 CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Monday, December 10, 2001 2:13 PM To: [EMAIL PROTECTED] Subject: Re: [KCFusion] off topic - classpath, xml and java Keith, What you really need are Java libraries (and not the kit as such but installing one will get access to it - I am suggesting the JDK path for verification and locating source of your problem). I believe \jre\lib path is already in your classpath definition but appears the library files (that are being called by your jar files) are missing. You can save yourselves lot of time of installing JDK etc., if you can make sure the basic java library files are in place and then only install those library files (as your classpath already points correctly to them if I understand correctly). Daryl is right that typically all you need is just the path for the library files in your classpath environmental variable (however, in my experience depending on your setup and what you are doing you may need to explicitely include the jar file in your path). Girish Daryl Banttari [EMAIL PROTECTED]To: [EMAIL PROTECTED] t cc: Sent by:Subject: Re: [KCFusion] off topic - classpath, xml and java CF-List-owner@kc fusion.org 12/10/01 01:40 PM Please respond to CF-List Keith, I don't think you need to put the files in the classpath, just the directory. Don't forget to include \jre\lib in the classpath. The .exe's have no business there. I actually
Re: [KCFusion] off topic - classpath, xml and java
Oh! Hey, the article is posted. I don't remember seeing DevCenter News this month...hmmm... http://www.allaire.com/handlers/index.cfm?ID=22250 Actually, two of 'em are mine this month: http://www.allaire.com/handlers/index.cfm?ID=22249 --Daryl - Original Message - From: Keith Purtell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 10, 2001 2:17 PM Subject: RE: [KCFusion] off topic - classpath, xml and java Two newbie questions: If just a directory in classpath does it need a trailing backslash? How do I identify a Java library? Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] Voice: (816) 801-5200 Fax: (816) 880-4776 (800) 525-1101 CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Monday, December 10, 2001 2:13 PM To: [EMAIL PROTECTED] Subject: Re: [KCFusion] off topic - classpath, xml and java Keith, What you really need are Java libraries (and not the kit as such but installing one will get access to it - I am suggesting the JDK path for verification and locating source of your problem). I believe \jre\lib path is already in your classpath definition but appears the library files (that are being called by your jar files) are missing. You can save yourselves lot of time of installing JDK etc., if you can make sure the basic java library files are in place and then only install those library files (as your classpath already points correctly to them if I understand correctly). Daryl is right that typically all you need is just the path for the library files in your classpath environmental variable (however, in my experience depending on your setup and what you are doing you may need to explicitely include the jar file in your path). Girish Daryl Banttari [EMAIL PROTECTED]To: [EMAIL PROTECTED] t cc: Sent by:Subject: Re: [KCFusion] off topic - classpath, xml and java CF-List-owner@kc fusion.org 12/10/01 01:40 PM Please respond to CF-List Keith, I don't think you need to put the files in the classpath, just the directory. Don't forget to include \jre\lib in the classpath. The .exe's have no business there. I actually wrote a DevCenter article that may be helpful (though it's a but basic). It should be in the next issue, but you can preview it here: http://www.windsorcs.com/leveragingJava.htm --Daryl - Original Message - From: Keith Purtell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 10, 2001 12:24 PM Subject: RE: [KCFusion] off topic - classpath, xml and java I took the jar files they provided and installed them in one recommended location, and added their names to the classpath. (I'm including classpath with line returns for readability.) Some of the online docs I found attribute my error message to an inability to find the java compiler. I don't know if that's the case, and if either of the last two items (which installed with ColdFusion) is the compiler. %SystemRoot%\Java\Classes\xalan.jar; %SystemRoot%\Java\Classes\xerces.jar; %SystemRoot%\Java\Classes\xalansamples.jar; %SystemRoot%\Java\Classes\bsf.jar; %SystemRoot%\Java\Classes\bsfengines.jar; %SystemRoot%\Java\Classes\java_cup.jar; %SystemRoot%\Java\Classes\JLex.jar; %SystemRoot%\Java\Classes\runtime.jar; %SystemRoot%\Java\Classes\BCEL.jar; %SystemRoot%\Java\Classes\xalanservlet.jar; %SystemRoot%\Java\Classes\xml-apis.jar; %SystemRoot%\Java\Classes\xsltc.jar; C:\CFUSION\jre\bin\java.exe; C:\CFUSION\jre\bin\javaw.exe Keith Purtell, Web/Network Administrator VantageMed Operations (Kansas City) Email: [EMAIL PROTECTED] Voice: (816) 801-5200 Fax: (816) 880-4776 (800) 525-1101 CONFIDENTIALITY NOTICE: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Monday, December 10, 2001 12:11 PM To: [EMAIL PROTECTED] Subject: Re: [KCFusion] off topic - classpath, xml and java Keith, Giving some snippet would