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