RE: Problem using ant to build a WAR file
You need to have Ant installed on your computer. Make sure that you have ANT_HOME set to the correct location. For more information look at the Ant documentation at http://jakarta.apache.org/ant/manual/index.html Jason -Original Message- From: Vicky Yu [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 8:53 PM To: [EMAIL PROTECTED] Subject: Problem using ant to build a WAR file I am a beginner of Tomcat. I am trying to use ant to build a WAR file. I have a project dir. outside Tomcat home and have copied the sample "hello world" with the build.bat, build.xml..all others from sample dir in that project dir. and tried to build the WAR file. When I execute build, I got the java.lang class not found exception from org.apache.tools.ant.Main. I think I have set my TOMCAT_HOME and JAVA_HOME in the classpath properly. I am using jdk1.3 as my JAVA_HOME. Any ideas of what's going wrong? Is jdk1.3 ok? Do I need to download Ant seperately? Thanks! __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Problem using ant to build a WAR file
Thanks Jason! I figured out my problem: I have Tomcat installed under D:\Program Files\. "Program Files" is the problem. Ant not able to find files under "Program Files". Now I can execute build, but still get error message when compiling: "[javac] Modern compiler is not available" Any idea of what is happening? I have JDK1.3 and have my JAVA_HOME set properly. I have no problem compiling other java files. However, I did have Visual Cafe version 3 installed in my machine which use JDK1.1. Will this be a problem? It looks like to me it is not the source of the problem since my JAVA_HOME is set to the JDK1.3 directory. --- "Winters, Jason" [EMAIL PROTECTED] wrote: You need to have Ant installed on your computer. Make sure that you have ANT_HOME set to the correct location. For more information look at the Ant documentation at http://jakarta.apache.org/ant/manual/index.html Jason -Original Message- From: Vicky Yu [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 8:53 PM To: [EMAIL PROTECTED] Subject: Problem using ant to build a WAR file I am a beginner of Tomcat. I am trying to use ant to build a WAR file. I have a project dir. outside Tomcat home and have copied the sample "hello world" with the build.bat, build.xml..all others from sample dir in that project dir. and tried to build the WAR file. When I execute build, I got the java.lang class not found exception from org.apache.tools.ant.Main. I think I have set my TOMCAT_HOME and JAVA_HOME in the classpath properly. I am using jdk1.3 as my JAVA_HOME. Any ideas of what's going wrong? Is jdk1.3 ok? Do I need to download Ant seperately? Thanks! __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Problem using ant to build a WAR file
I'm not 100% sure, but your problem may be that the wrong version of java.exe is being executed. Try typing "java -version" from a command line and see what version is showing up. JAVA_HOME is used to set your classpath, however, it doesn't seem to be used in the build.bat file to specify the path to %JAVA_HOME%\bin\java.exe. Some of our developers here were running into a problem where the JDK 1.2 version of java.exe had been copied into the c:\winnt\system32\ directory causing that version to run instead of the current version. I don't know that this is definitely your problem, but it might be worth pursuing. Jason -Original Message- From: Vicky Yu [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 13, 2001 11:26 AM To: [EMAIL PROTECTED] Subject: RE: Problem using ant to build a WAR file Thanks Jason! I figured out my problem: I have Tomcat installed under D:\Program Files\. "Program Files" is the problem. Ant not able to find files under "Program Files". Now I can execute build, but still get error message when compiling: "[javac] Modern compiler is not available" Any idea of what is happening? I have JDK1.3 and have my JAVA_HOME set properly. I have no problem compiling other java files. However, I did have Visual Cafe version 3 installed in my machine which use JDK1.1. Will this be a problem? It looks like to me it is not the source of the problem since my JAVA_HOME is set to the JDK1.3 directory. --- "Winters, Jason" [EMAIL PROTECTED] wrote: You need to have Ant installed on your computer. Make sure that you have ANT_HOME set to the correct location. For more information look at the Ant documentation at http://jakarta.apache.org/ant/manual/index.html Jason -Original Message- From: Vicky Yu [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 8:53 PM To: [EMAIL PROTECTED] Subject: Problem using ant to build a WAR file I am a beginner of Tomcat. I am trying to use ant to build a WAR file. I have a project dir. outside Tomcat home and have copied the sample "hello world" with the build.bat, build.xml..all others from sample dir in that project dir. and tried to build the WAR file. When I execute build, I got the java.lang class not found exception from org.apache.tools.ant.Main. I think I have set my TOMCAT_HOME and JAVA_HOME in the classpath properly. I am using jdk1.3 as my JAVA_HOME. Any ideas of what's going wrong? Is jdk1.3 ok? Do I need to download Ant seperately? Thanks! __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Problem using ant to build a WAR file
This problem is usually because you have ant.jar in your JRE's lib/ext directory. This causes problems because of how Ant invokes the JDK. Randy -Original Message- From: Vicky Yu [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 13, 2001 11:26 AM To: [EMAIL PROTECTED] Subject: RE: Problem using ant to build a WAR file Thanks Jason! I figured out my problem: I have Tomcat installed under D:\Program Files\. "Program Files" is the problem. Ant not able to find files under "Program Files". Now I can execute build, but still get error message when compiling: "[javac] Modern compiler is not available" Any idea of what is happening? I have JDK1.3 and have my JAVA_HOME set properly. I have no problem compiling other java files. However, I did have Visual Cafe version 3 installed in my machine which use JDK1.1. Will this be a problem? It looks like to me it is not the source of the problem since my JAVA_HOME is set to the JDK1.3 directory. --- "Winters, Jason" [EMAIL PROTECTED] wrote: You need to have Ant installed on your computer. Make sure that you have ANT_HOME set to the correct location. For more information look at the Ant documentation at http://jakarta.apache.org/ant/manual/index.html Jason -Original Message- From: Vicky Yu [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 8:53 PM To: [EMAIL PROTECTED] Subject: Problem using ant to build a WAR file I am a beginner of Tomcat. I am trying to use ant to build a WAR file. I have a project dir. outside Tomcat home and have copied the sample "hello world" with the build.bat, build.xml..all others from sample dir in that project dir. and tried to build the WAR file. When I execute build, I got the java.lang class not found exception from org.apache.tools.ant.Main. I think I have set my TOMCAT_HOME and JAVA_HOME in the classpath properly. I am using jdk1.3 as my JAVA_HOME. Any ideas of what's going wrong? Is jdk1.3 ok? Do I need to download Ant seperately? Thanks! __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Problem using ant to build a WAR file
Thanks Jaskon and Randy. I got it working now. --- Randy Layman [EMAIL PROTECTED] wrote: This problem is usually because you have ant.jar in your JRE's lib/ext directory. This causes problems because of how Ant invokes the JDK. Randy -Original Message- From: Vicky Yu [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 13, 2001 11:26 AM To: [EMAIL PROTECTED] Subject: RE: Problem using ant to build a WAR file Thanks Jason! I figured out my problem: I have Tomcat installed under D:\Program Files\. "Program Files" is the problem. Ant not able to find files under "Program Files". Now I can execute build, but still get error message when compiling: "[javac] Modern compiler is not available" Any idea of what is happening? I have JDK1.3 and have my JAVA_HOME set properly. I have no problem compiling other java files. However, I did have Visual Cafe version 3 installed in my machine which use JDK1.1. Will this be a problem? It looks like to me it is not the source of the problem since my JAVA_HOME is set to the JDK1.3 directory. --- "Winters, Jason" [EMAIL PROTECTED] wrote: You need to have Ant installed on your computer. Make sure that you have ANT_HOME set to the correct location. For more information look at the Ant documentation at http://jakarta.apache.org/ant/manual/index.html Jason -Original Message- From: Vicky Yu [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 8:53 PM To: [EMAIL PROTECTED] Subject: Problem using ant to build a WAR file I am a beginner of Tomcat. I am trying to use ant to build a WAR file. I have a project dir. outside Tomcat home and have copied the sample "hello world" with the build.bat, build.xml..all others from sample dir in that project dir. and tried to build the WAR file. When I execute build, I got the java.lang class not found exception from org.apache.tools.ant.Main. I think I have set my TOMCAT_HOME and JAVA_HOME in the classpath properly. I am using jdk1.3 as my JAVA_HOME. Any ideas of what's going wrong? Is jdk1.3 ok? Do I need to download Ant seperately? Thanks! __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]