OK.  You may have reinstalled Java already, but there is another way to do
this.

You can use the "8.3" file name for C:\Program Files.  Windows always creates
this for every directory and file that doesn't fall into the pattern.  This
works on XP and Server 2003.  I assume it will work on any Windows version
that allows you to create objects not following the pattern.

Steps:

1. Open a command prompt.
2. Navigate to the root directory of your C: drive.
3. Type "dir /X" (without the quotes, of course) at the prompt.
4. Look for the "Program Files" directory.
5. Use 8.3 pattern in batch file ("PROGRA~1" in the example below) (Will I
ever stop saying "without quotes?")

C:\>dir /X
 Volume in drive C has no label.
 Volume Serial Number is 1C5C-25CF

 Directory of C:\

03/22/2007  11:27 AM             1,024 RND~1        .rnd
06/28/2004  02:35 PM                 0              AUTOEXEC.BAT
06/28/2004  02:35 PM                 0              CONFIG.SYS
07/08/2008  03:29 PM    <DIR>          DOCUME~1     Documents and Settings
07/30/2008  07:24 AM    <DIR>                       eclipse
06/28/2004  02:54 PM    <DIR>                       I386
06/28/2004  03:02 PM    <DIR>                       IBMTOOLS
03/04/2008  08:50 AM    <DIR>                       jvmstat
01/30/2006  04:14 PM    <DIR>                       OpenSSL
07/25/2006  06:23 AM    <DIR>                       Ora10g
07/15/2004  08:12 AM    <DIR>                       ora9i
07/15/2004  08:11 AM    <DIR>                       ORATEMP
03/11/2008  08:16 AM    <DIR>                       Perl
07/08/2008  04:19 PM    <DIR>          PROGRA~1     Program Files

Although it's not necessary to change it, "jdk1.6.0_07" doesn't fit the
pattern either.  Windows should create an "8.3" name like "JDK16~1.0_0"
(There, I didn't say it.  ;)  ).

- Bill

-----Original Message-----
From: zorglub76 [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 30, 2008 8:12 AM
To: users@tomcat.apache.org
Subject: Re: java_home in tomcat6


:confused::confused::confused:
I commented out the @echo off line of catalina.bat and server started with no
problems.
Then I removed comments, and it still worked...
I don't get it.....
But anyway, the server is chugging happily..



zorglub76 wrote:
> 
> Hi all,
> I have a problem with setting JAVA_HOME variable in Tomcat 6.0.16.
> When I set it in catalina.bat as:
> set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_07 set 
> JRE_HOME=C:\Program Files\Java\jdk1.6.0_07\jre
> 
> I get an error:
> Files\Java\jdk1.6.0_07"" was unexpected at this time.
> 
> But when I do exactly the same in Tomcat 5.5.26, everything goes well:
> Using CATALINA_BASE:   C:\apache-tomcat-5.5.26
> Using CATALINA_HOME:   C:\apache-tomcat-5.5.26
> Using CATALINA_TMPDIR: C:\apache-tomcat-5.5.26\temp
> Using JRE_HOME:        C:\Program Files\Java\jdk1.6.0_07\jre
> 
> I tried to embrace java_home value with quotation marks or 
> apostrophes, but the error remained.
> Any ideas?
> 

--
View this message in context:
http://www.nabble.com/java_home-in-tomcat6-tp18728870p18732863.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to