<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><div style="text-align: left;">Thanks again for the info. I got that fixed. I changed the&nbsp; set java variable removing the rem in&nbsp; the bat file. But now its is not connecting to my ds server. it connects from the local machine though. I am running the ds server on fedora 6 which on vmware virtual machine. I am using the ip address of the machine along with admin port to connect from windows host machine. <br>I was wondering if you ever have got it running successfully?<br><br>Thank you.<br></div><br><br><br><hr id="stopSpelling">&gt; Date: Thu, 3 Jan 2008 12:26:44 +1030<br>&gt; From: ian@ikel.id.au<br>&gt; To: fedora-directory-users@redhat.com<br>&gt; Subject: Re: [Fedora-directory-users] Windows console<br>&gt; <br>&gt; Just for the record, here's my BAT file as well...<br>&gt; echo off<br>&gt; rem BEGIN COPYRIGHT BLOCK<br>&gt; rem Copyright (C) 2005 Red Hat, Inc.<br>&gt; rem All rights reserved.<br>&gt; rem<br>&gt; rem This library is free software; you can redistribute it and/or<br>&gt; rem modify it under the terms of the GNU Lesser General Public<br>&gt; rem License as published by the Free Software Foundation version<br>&gt; rem 2.1 of the License.<br>&gt; rem                                                                                <br>&gt; <br>&gt; rem This library is distributed in the hope that it will be useful,<br>&gt; rem but WITHOUT ANY WARRANTY; without even the implied warranty of<br>&gt; rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU<br>&gt; rem Lesser General Public License for more details.<br>&gt; rem                                                                                <br>&gt; <br>&gt; rem You should have received a copy of the GNU Lesser General Public<br>&gt; rem License along with this library; if not, write to the Free Software<br>&gt; rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA <br>&gt; 02110-1301  USA<br>&gt; rem END COPYRIGHT BLOCK<br>&gt; <br>&gt; rem set the JAVA to use here<br>&gt; rem set JAVA=C:\j2sdk1.4.2_15\bin\java<br>&gt; <br>&gt; if not "%JAVA%foo"=="foo" goto launch<br>&gt; <br>&gt; where java &gt; nul 2&gt;&amp;1 || goto findjre<br>&gt; <br>&gt; set JAVA=java<br>&gt; goto launch<br>&gt; <br>&gt; :findjre<br>&gt; rem look for Java Runtime Environment in registry<br>&gt; reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" &gt; nul 2&gt;&amp;1<br>&gt; || goto findjdk<br>&gt; <br>&gt; rem can we grab the java location from the registry?<br>&gt; rem set JAVA=path\bin\java<br>&gt; rem apparently not, in a batch file<br>&gt; rem goto launch<br>&gt; echo The Java Runtime Environment is installed on this machine, but the<br>&gt; echo command java.exe is not in your PATH.  You can either make sure<br>&gt; java.exe<br>&gt; echo is in the PATH, or edit this script to set JAVA to the full path of<br>&gt; echo java.exe<br>&gt; pause<br>&gt; goto end<br>&gt; <br>&gt; :findjdk<br>&gt; reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" &gt; nul 2&gt;&amp;1 ||<br>&gt; goto nojava<br>&gt; <br>&gt; rem can we grab the java location from the registry?<br>&gt; rem set JAVA=path\bin\java<br>&gt; rem goto launch<br>&gt; echo The Java Development Kit is installed on this machine, but the<br>&gt; echo command java.exe is not in your PATH.  You can either make sure<br>&gt; java.exe<br>&gt; echo is in the PATH, or edit this script to set JAVA to the full path of<br>&gt; echo java.exe<br>&gt; pause<br>&gt; goto end<br>&gt; <br>&gt; :nojava<br>&gt; echo Java does not appear to be installed on this machine.  Please<br>&gt; download and install the Java Runtime Environment and make sure the<br>&gt; java.exe command is in the PATH of this command.<br>&gt; pause<br>&gt; goto end<br>&gt; <br>&gt; :launch<br>&gt; set BASEPATH=.<br>&gt; set FIDMCONSOLEJARDIR=%BASEPATH%<br>&gt; set CONSOLEJARDIR=%BASEPATH%<br>&gt; set JSSDIR=%BASEPATH%<br>&gt; set LDAPJARDIR=%BASEPATH%<br>&gt; <br>&gt; set PATH=%BASEPATH%;%PATH%<br>&gt; <br>&gt; rem<br>&gt; rem Launch the Console<br>&gt; rem<br>&gt; echo on<br>&gt; "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp<br>&gt; "%JSSDIR%/jss4.jar;%LDAPJARDIR%/ldapjdk.jar;%CONSOLEJARDIR%/idm-console-base.jar;%CONSOLEJARDIR%/idm-console-mcc.jar;%CONSOLEJARDIR%/idm-console-mcc_en.jar;%CONSOLEJARDIR%/idm-console-nmclf.jar;%CONSOLEJARDIR%/idm-console-nmclf_en.jar;%FIDMCONSOLEJARDIR%/fedora-idm-console_en.jar"<br>&gt; -Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console<br>&gt; -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console<br>&gt; com.netscape.management.client.console.Console %*<br>&gt; <br>&gt; :end<br>&gt; <br>&gt; <br>&gt; Ian Blackwell wrote:<br>&gt; &gt; On closer inspection at home, I see that I didn't set the JAVA value, I<br>&gt; &gt; changed the PC so that the path to JAVA.EXE was in the environment.  The<br>&gt; &gt; script is able to detect this and then works.<br>&gt; &gt;<br>&gt; &gt; Try adding the path to your Java installation to your environment via<br>&gt; &gt; the Windows Control Panel and System applet.<br>&gt; &gt;<br>&gt; &gt; Ian<br>&gt; &gt;<br>&gt; &gt; kiran madala wrote:<br>&gt; &gt;   <br>&gt; &gt;&gt; Hi,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Thanks for the reply. Where exactly do I need to set my java variable<br>&gt; &gt;&gt; path?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; I set the java path in the .bat file its not working. I am not sure if<br>&gt; &gt;&gt; i did it the right way. below is my .bat file with changes in bold.<br>&gt; &gt;&gt; Thanks in advance<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; rem<br>&gt; &gt;&gt; rem This library is free software; you can redistribute it and/or<br>&gt; &gt;&gt; rem modify it under the terms of the GNU Lesser General Public<br>&gt; &gt;&gt; rem License as published by the Free Software Foundation version<br>&gt; &gt;&gt; rem 2.1 of the License.<br>&gt; &gt;&gt; rem                                                                                <br>&gt; &gt;&gt;<br>&gt; &gt;&gt; rem This library is distributed in the hope that it will be useful,<br>&gt; &gt;&gt; rem but WITHOUT ANY WARRANTY; without even the implied warranty of<br>&gt; &gt;&gt; rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU<br>&gt; &gt;&gt; rem Lesser General Public License for more details.<br>&gt; &gt;&gt; rem                                                                                <br>&gt; &gt;&gt;<br>&gt; &gt;&gt; rem You should have received a copy of the GNU Lesser General Public<br>&gt; &gt;&gt; rem License along with this library; if not, write to the Free Software<br>&gt; &gt;&gt; rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA <br>&gt; &gt;&gt; 02110-1301  USA<br>&gt; &gt;&gt; rem END COPYRIGHT BLOCK<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; rem set the JAVA to use here<br>&gt; &gt;&gt; rem set JAVA=C:\Program Files\Java\jre1.6.0_03\bin\java<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; if not "%JAVA%foo"=="foo" goto launch<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; where java &gt; nul 2&gt;&amp;1 || goto findjre<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; set JAVA=java<br>&gt; &gt;&gt; goto launch<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; :findjre<br>&gt; &gt;&gt; rem look for Java Runtime Environment in registry<br>&gt; &gt;&gt; reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" &gt; nul 2&gt;&amp;1<br>&gt; &gt;&gt; || goto findjdk<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; rem can we grab the java location from the registry?<br>&gt; &gt;&gt; rem set JAVA=path\bin\java<br>&gt; &gt;&gt; rem apparently not, in a batch file<br>&gt; &gt;&gt; rem goto launch<br>&gt; &gt;&gt; echo The Java Runtime Environment is installed on this machine, but the<br>&gt; &gt;&gt; echo command java.exe is not in your PATH.  You can either make sure<br>&gt; &gt;&gt; java.exe<br>&gt; &gt;&gt; echo is in the PATH, or edit this script to set JAVA to the full path of<br>&gt; &gt;&gt; echo java.exe<br>&gt; &gt;&gt; pause<br>&gt; &gt;&gt; goto end<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; :findjdk<br>&gt; &gt;&gt; reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" &gt; nul 2&gt;&amp;1 ||<br>&gt; &gt;&gt; goto nojava<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; rem can we grab the java location from the registry?<br>&gt; &gt;&gt; rem set JAVA=path\bin\java<br>&gt; &gt;&gt; rem goto launch<br>&gt; &gt;&gt; echo The Java Development Kit is installed on this machine, but the<br>&gt; &gt;&gt; echo command java.exe is not in your PATH.  You can either make sure<br>&gt; &gt;&gt; java.exe<br>&gt; &gt;&gt; echo is in the PATH, or edit this script to set JAVA to the full path of<br>&gt; &gt;&gt; echo java.exe<br>&gt; &gt;&gt; pause<br>&gt; &gt;&gt; goto end<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; :nojava<br>&gt; &gt;&gt; echo Java does not appear to be installed on this machine.  Please<br>&gt; &gt;&gt; download and install the Java Runtime Environment and make sure the<br>&gt; &gt;&gt; java.exe command is in the PATH of this command.<br>&gt; &gt;&gt; pause<br>&gt; &gt;&gt; goto end<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; :launch<br>&gt; &gt;&gt; set BASEPATH=.<br>&gt; &gt;&gt; set FIDMCONSOLEJARDIR=%BASEPATH%<br>&gt; &gt;&gt; set CONSOLEJARDIR=%BASEPATH%<br>&gt; &gt;&gt; set JSSDIR=%BASEPATH%<br>&gt; &gt;&gt; set LDAPJARDIR=%BASEPATH%<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; set PATH=%BASEPATH%;%PATH%<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; rem<br>&gt; &gt;&gt; rem Launch the Console<br>&gt; &gt;&gt; rem<br>&gt; &gt;&gt; echo on<br>&gt; &gt;&gt; "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp<br>&gt; &gt;&gt; "%JSSDIR%/jss4.jar;%LDAPJARDIR%/ldapjdk.jar;%CONSOLEJARDIR%/idm-console-base.jar;%CONSOLEJARDIR%/idm-console-mcc.jar;%CONSOLEJARDIR%/idm-console-mcc_en.jar;%CONSOLEJARDIR%/idm-console-nmclf.jar;%CONSOLEJARDIR%/idm-console-nmclf_en.jar;%FIDMCONSOLEJARDIR%/fedora-idm-console_en.jar"<br>&gt; &gt;&gt; -Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console<br>&gt; &gt;&gt; -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console<br>&gt; &gt;&gt; com.netscape.management.client.console.Console %*<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; :end<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;     ------------------------------------------------------------------------<br>&gt; &gt;&gt;     Date: Thu, 3 Jan 2008 07:59:42 +1030<br>&gt; &gt;&gt;     From: ian@ikel.id.au<br>&gt; &gt;&gt;     To: fedora-directory-users@redhat.com<br>&gt; &gt;&gt;     Subject: Re: [Fedora-directory-users] Windows console<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;     Hi,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;     This happened to me as well.  I think the installer can't cope<br>&gt; &gt;&gt;     with or doesn't look for Java in your "Program Files" area, which<br>&gt; &gt;&gt;     is where you will find the newer Javas 1.6.  Edit the .bat file<br>&gt; &gt;&gt;     and set the Java variable yourself and it should work from then on.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;     Regards,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;     Ian<br>&gt; &gt;&gt;     kiran madala wrote:<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;         Hi,<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;         The windows console for 1.1 server does not work it gives me<br>&gt; &gt;&gt;         this error<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;         F:\Program Files\Fedora Identity Management Console&gt;echo off<br>&gt; &gt;&gt;         The Java Runtime Environment is installed on this machine, but the<br>&gt; &gt;&gt;         command java.exe is not in your PATH.  You can either make<br>&gt; &gt;&gt;         sure java.exe<br>&gt; &gt;&gt;         is in the PATH, or edit this script to set JAVA to the full<br>&gt; &gt;&gt;         path of<br>&gt; &gt;&gt;         java.exe<br>&gt; &gt;&gt;         Press any key to continue . . .<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;         All my java programs work. The java in my class path and also<br>&gt; &gt;&gt;         in my registry . Any idea whats causing the problem?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;         ------------------------------------------------------------------------<br>&gt; &gt;&gt;         HO HO HO, if you've been naughty this year, email Santa! Visit<br>&gt; &gt;&gt;         asksanta.ca to learn more!<br>&gt; &gt;&gt;         &lt;http://asksanta.ca/?icid=SANTAENCA005&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;         ------------------------------------------------------------------------<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;         --<br>&gt; &gt;&gt;         Fedora-directory-users mailing list<br>&gt; &gt;&gt;         Fedora-directory-users@redhat.com &lt;mailto:Fedora-directory-users@redhat.com&gt;<br>&gt; &gt;&gt;         https://www.redhat.com/mailman/listinfo/fedora-directory-users<br>&gt; &gt;&gt;           <br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; ------------------------------------------------------------------------<br>&gt; &gt;&gt; HO HO HO, if you've been nice this year, email Santa! Visit<br>&gt; &gt;&gt; asksanta.ca to learn more! &lt;http://asksanta.ca/?icid=SANTAENCA005&gt;<br>&gt; &gt;&gt; ------------------------------------------------------------------------<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; --<br>&gt; &gt;&gt; Fedora-directory-users mailing list<br>&gt; &gt;&gt; Fedora-directory-users@redhat.com<br>&gt; &gt;&gt; https://www.redhat.com/mailman/listinfo/fedora-directory-users<br>&gt; &gt;&gt;   <br>&gt; &gt;&gt;     <br>&gt; &gt;<br>&gt; &gt; --<br>&gt; &gt; Fedora-directory-users mailing list<br>&gt; &gt; Fedora-directory-users@redhat.com<br>&gt; &gt; https://www.redhat.com/mailman/listinfo/fedora-directory-users<br>&gt; &gt;<br>&gt; &gt;   <br>&gt; <br>&gt; --<br>&gt; Fedora-directory-users mailing list<br>&gt; Fedora-directory-users@redhat.com<br>&gt; https://www.redhat.com/mailman/listinfo/fedora-directory-users<br><br /><hr />HO HO HO, if you've been naughty this year, email Santa! <a href='http://asksanta.ca/?icid=SANTAENCA005' target='_new'>Visit asksanta.ca to learn more!</a></body>
</html>