Hi,
The windows console for 1.1 server does not work it gives me this error
F:\Program Files\Fedora Identity Management Console>echo off The Java Runtime Environment is installed on this machine, but the command java.exe is not in your PATH. You can either make sure java.exe is in the PATH, or edit this script to set JAVA to the full path of java.exe Press any key to continue . . .
All my java programs work. The java in my class path and also in my registry . Any idea whats causing the problem?
_________________________________________________________________ Introducing the City @ Live! Take a tour! http://getyourliveid.ca/?icid=LIVEIDENCA006
Hi,
This happened to me as well. I think the installer can't cope with or doesn't look for Java in your "Program Files" area, which is where you will find the newer Javas 1.6. Edit the .bat file and set the Java variable yourself and it should work from then on.
Regards,
Ian kiran madala wrote:
Hi,
The windows console for 1.1 server does not work it gives me this error
F:\Program Files\Fedora Identity Management Console>echo off The Java Runtime Environment is installed on this machine, but the command java.exe is not in your PATH. You can either make sure java.exe is in the PATH, or edit this script to set JAVA to the full path of java.exe Press any key to continue . . .
All my java programs work. The java in my class path and also in my registry . Any idea whats causing the problem?
HO HO HO, if you've been naughty this year, email Santa! Visit asksanta.ca to learn more! http://asksanta.ca/?icid=SANTAENCA005
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
Hi,
Thanks for the reply. Where exactly do I need to set my java variable path?
I set the java path in the .bat file its not working. I am not sure if i did it the right way. below is my .bat file with changes in bold. Thanks in advance
rem rem This library is free software; you can redistribute it and/or rem modify it under the terms of the GNU Lesser General Public rem License as published by the Free Software Foundation version rem 2.1 of the License. rem rem This library is distributed in the hope that it will be useful, rem but WITHOUT ANY WARRANTY; without even the implied warranty of rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU rem Lesser General Public License for more details. rem rem You should have received a copy of the GNU Lesser General Public rem License along with this library; if not, write to the Free Software rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA rem END COPYRIGHT BLOCK
rem set the JAVA to use here rem set JAVA=C:\Program Files\Java\jre1.6.0_03\bin\java
if not "%JAVA%foo"=="foo" goto launch
where java > nul 2>&1 || goto findjre
set JAVA=java goto launch
:findjre rem look for Java Runtime Environment in registry reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" > nul 2>&1 || goto findjdk
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem apparently not, in a batch file rem goto launch echo The Java Runtime Environment is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full path of echo java.exe pause goto end
:findjdk reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" > nul 2>&1 || goto nojava
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem goto launch echo The Java Development Kit is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full path of echo java.exe pause goto end
:nojava echo Java does not appear to be installed on this machine. Please download and install the Java Runtime Environment and make sure the java.exe command is in the PATH of this command. pause goto end
:launch set BASEPATH=. set FIDMCONSOLEJARDIR=%BASEPATH% set CONSOLEJARDIR=%BASEPATH% set JSSDIR=%BASEPATH% set LDAPJARDIR=%BASEPATH%
set PATH=%BASEPATH%;%PATH%
rem rem Launch the Console rem echo on "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp "%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" -Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console com.netscape.management.client.console.Console %*
:end
Date: Thu, 3 Jan 2008 07:59:42 +1030 From: ian@ikel.id.au To: fedora-directory-users@redhat.com Subject: Re: [Fedora-directory-users] Windows console
Hi,
This happened to me as well. I think the installer can't cope with or doesn't look for Java in your "Program Files" area, which is where you will find the newer Javas 1.6. Edit the .bat file and set the Java variable yourself and it should work from then on.
Regards,
Ian
kiran madala wrote:
Hi,
The windows console for 1.1 server does not work it gives me this error
F:\Program Files\Fedora Identity Management Console>echo off
The Java Runtime Environment is installed on this machine, but the
command java.exe is not in your PATH. You can either make sure java.exe
is in the PATH, or edit this script to set JAVA to the full path of
java.exe
Press any key to continue . . .
All my java programs work. The java in my class path and also in my registry . Any idea whats causing the problem?
HO HO HO, if you've been naughty this year, email Santa! Visit asksanta.ca to learn more!
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
_________________________________________________________________ Use fowl language with Chicktionary. Click here to start playing! http://puzzles.sympatico.msn.ca/chicktionary/index.html?icid=htmlsig
Hi,
Remove the "REM" at the start of the line which makes the line a "REM"ark rather than a command. Without the REM, the set command will assign the correct value to your JAVA variable.
Cheers,
Ian
kiran madala wrote:
Hi,
Thanks for the reply. Where exactly do I need to set my java variable path?
I set the java path in the .bat file its not working. I am not sure if i did it the right way. below is my .bat file with changes in bold. Thanks in advance
rem rem This library is free software; you can redistribute it and/or rem modify it under the terms of the GNU Lesser General Public rem License as published by the Free Software Foundation version rem 2.1 of the License. rem
rem This library is distributed in the hope that it will be useful, rem but WITHOUT ANY WARRANTY; without even the implied warranty of rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU rem Lesser General Public License for more details. rem
rem You should have received a copy of the GNU Lesser General Public rem License along with this library; if not, write to the Free Software rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA rem END COPYRIGHT BLOCK
rem set the JAVA to use here rem set JAVA=C:\Program Files\Java\jre1.6.0_03\bin\java
if not "%JAVA%foo"=="foo" goto launch
where java > nul 2>&1 || goto findjre
set JAVA=java goto launch
:findjre rem look for Java Runtime Environment in registry reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" > nul 2>&1 || goto findjdk
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem apparently not, in a batch file rem goto launch echo The Java Runtime Environment is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full path of echo java.exe pause goto end
:findjdk reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" > nul 2>&1 || goto nojava
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem goto launch echo The Java Development Kit is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full path of echo java.exe pause goto end
:nojava echo Java does not appear to be installed on this machine. Please download and install the Java Runtime Environment and make sure the java.exe command is in the PATH of this command. pause goto end
:launch set BASEPATH=. set FIDMCONSOLEJARDIR=%BASEPATH% set CONSOLEJARDIR=%BASEPATH% set JSSDIR=%BASEPATH% set LDAPJARDIR=%BASEPATH%
set PATH=%BASEPATH%;%PATH%
rem rem Launch the Console rem echo on "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp "%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" -Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console com.netscape.management.client.console.Console %*
:end
------------------------------------------------------------------------ Date: Thu, 3 Jan 2008 07:59:42 +1030 From: ian@ikel.id.au To: fedora-directory-users@redhat.com Subject: Re: [Fedora-directory-users] Windows console Hi, This happened to me as well. I think the installer can't cope with or doesn't look for Java in your "Program Files" area, which is where you will find the newer Javas 1.6. Edit the .bat file and set the Java variable yourself and it should work from then on. Regards, Ian kiran madala wrote: Hi, The windows console for 1.1 server does not work it gives me this error F:\Program Files\Fedora Identity Management Console>echo off The Java Runtime Environment is installed on this machine, but the command java.exe is not in your PATH. You can either make sure java.exe is in the PATH, or edit this script to set JAVA to the full path of java.exe Press any key to continue . . . All my java programs work. The java in my class path and also in my registry . Any idea whats causing the problem? ------------------------------------------------------------------------ HO HO HO, if you've been naughty this year, email Santa! Visit asksanta.ca to learn more! <http://asksanta.ca/?icid=SANTAENCA005> ------------------------------------------------------------------------ -- Fedora-directory-users mailing list Fedora-directory-users@redhat.com <mailto:Fedora-directory-users@redhat.com> https://www.redhat.com/mailman/listinfo/fedora-directory-users
HO HO HO, if you've been nice this year, email Santa! Visit asksanta.ca to learn more! http://asksanta.ca/?icid=SANTAENCA005
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
Oh, I also forgot some other changes you'll need....
The space in the directory name means you need to enclose the whole thing in quotes. That also means you need to make changes at the bottom of the file as well.
I'm at work now, but when I go home for lunch I'll send you my version of the BAT file (around midday in South Australia).
Ian
kiran madala wrote:
Hi,
Thanks for the reply. Where exactly do I need to set my java variable path?
I set the java path in the .bat file its not working. I am not sure if i did it the right way. below is my .bat file with changes in bold. Thanks in advance
rem rem This library is free software; you can redistribute it and/or rem modify it under the terms of the GNU Lesser General Public rem License as published by the Free Software Foundation version rem 2.1 of the License. rem
rem This library is distributed in the hope that it will be useful, rem but WITHOUT ANY WARRANTY; without even the implied warranty of rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU rem Lesser General Public License for more details. rem
rem You should have received a copy of the GNU Lesser General Public rem License along with this library; if not, write to the Free Software rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA rem END COPYRIGHT BLOCK
rem set the JAVA to use here rem set JAVA=C:\Program Files\Java\jre1.6.0_03\bin\java
if not "%JAVA%foo"=="foo" goto launch
where java > nul 2>&1 || goto findjre
set JAVA=java goto launch
:findjre rem look for Java Runtime Environment in registry reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" > nul 2>&1 || goto findjdk
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem apparently not, in a batch file rem goto launch echo The Java Runtime Environment is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full path of echo java.exe pause goto end
:findjdk reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" > nul 2>&1 || goto nojava
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem goto launch echo The Java Development Kit is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full path of echo java.exe pause goto end
:nojava echo Java does not appear to be installed on this machine. Please download and install the Java Runtime Environment and make sure the java.exe command is in the PATH of this command. pause goto end
:launch set BASEPATH=. set FIDMCONSOLEJARDIR=%BASEPATH% set CONSOLEJARDIR=%BASEPATH% set JSSDIR=%BASEPATH% set LDAPJARDIR=%BASEPATH%
set PATH=%BASEPATH%;%PATH%
rem rem Launch the Console rem echo on "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp "%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" -Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console com.netscape.management.client.console.Console %*
:end
------------------------------------------------------------------------ Date: Thu, 3 Jan 2008 07:59:42 +1030 From: ian@ikel.id.au To: fedora-directory-users@redhat.com Subject: Re: [Fedora-directory-users] Windows console Hi, This happened to me as well. I think the installer can't cope with or doesn't look for Java in your "Program Files" area, which is where you will find the newer Javas 1.6. Edit the .bat file and set the Java variable yourself and it should work from then on. Regards, Ian kiran madala wrote: Hi, The windows console for 1.1 server does not work it gives me this error F:\Program Files\Fedora Identity Management Console>echo off The Java Runtime Environment is installed on this machine, but the command java.exe is not in your PATH. You can either make sure java.exe is in the PATH, or edit this script to set JAVA to the full path of java.exe Press any key to continue . . . All my java programs work. The java in my class path and also in my registry . Any idea whats causing the problem? ------------------------------------------------------------------------ HO HO HO, if you've been naughty this year, email Santa! Visit asksanta.ca to learn more! <http://asksanta.ca/?icid=SANTAENCA005> ------------------------------------------------------------------------ -- Fedora-directory-users mailing list Fedora-directory-users@redhat.com <mailto:Fedora-directory-users@redhat.com> https://www.redhat.com/mailman/listinfo/fedora-directory-users
HO HO HO, if you've been nice this year, email Santa! Visit asksanta.ca to learn more! http://asksanta.ca/?icid=SANTAENCA005
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
On closer inspection at home, I see that I didn't set the JAVA value, I changed the PC so that the path to JAVA.EXE was in the environment. The script is able to detect this and then works.
Try adding the path to your Java installation to your environment via the Windows Control Panel and System applet.
Ian
kiran madala wrote:
Hi,
Thanks for the reply. Where exactly do I need to set my java variable path?
I set the java path in the .bat file its not working. I am not sure if i did it the right way. below is my .bat file with changes in bold. Thanks in advance
rem rem This library is free software; you can redistribute it and/or rem modify it under the terms of the GNU Lesser General Public rem License as published by the Free Software Foundation version rem 2.1 of the License. rem
rem This library is distributed in the hope that it will be useful, rem but WITHOUT ANY WARRANTY; without even the implied warranty of rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU rem Lesser General Public License for more details. rem
rem You should have received a copy of the GNU Lesser General Public rem License along with this library; if not, write to the Free Software rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA rem END COPYRIGHT BLOCK
rem set the JAVA to use here rem set JAVA=C:\Program Files\Java\jre1.6.0_03\bin\java
if not "%JAVA%foo"=="foo" goto launch
where java > nul 2>&1 || goto findjre
set JAVA=java goto launch
:findjre rem look for Java Runtime Environment in registry reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" > nul 2>&1 || goto findjdk
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem apparently not, in a batch file rem goto launch echo The Java Runtime Environment is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full path of echo java.exe pause goto end
:findjdk reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" > nul 2>&1 || goto nojava
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem goto launch echo The Java Development Kit is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full path of echo java.exe pause goto end
:nojava echo Java does not appear to be installed on this machine. Please download and install the Java Runtime Environment and make sure the java.exe command is in the PATH of this command. pause goto end
:launch set BASEPATH=. set FIDMCONSOLEJARDIR=%BASEPATH% set CONSOLEJARDIR=%BASEPATH% set JSSDIR=%BASEPATH% set LDAPJARDIR=%BASEPATH%
set PATH=%BASEPATH%;%PATH%
rem rem Launch the Console rem echo on "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp "%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" -Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console com.netscape.management.client.console.Console %*
:end
------------------------------------------------------------------------ Date: Thu, 3 Jan 2008 07:59:42 +1030 From: ian@ikel.id.au To: fedora-directory-users@redhat.com Subject: Re: [Fedora-directory-users] Windows console Hi, This happened to me as well. I think the installer can't cope with or doesn't look for Java in your "Program Files" area, which is where you will find the newer Javas 1.6. Edit the .bat file and set the Java variable yourself and it should work from then on. Regards, Ian kiran madala wrote: Hi, The windows console for 1.1 server does not work it gives me this error F:\Program Files\Fedora Identity Management Console>echo off The Java Runtime Environment is installed on this machine, but the command java.exe is not in your PATH. You can either make sure java.exe is in the PATH, or edit this script to set JAVA to the full path of java.exe Press any key to continue . . . All my java programs work. The java in my class path and also in my registry . Any idea whats causing the problem? ------------------------------------------------------------------------ HO HO HO, if you've been naughty this year, email Santa! Visit asksanta.ca to learn more! <http://asksanta.ca/?icid=SANTAENCA005> ------------------------------------------------------------------------ -- Fedora-directory-users mailing list Fedora-directory-users@redhat.com <mailto:Fedora-directory-users@redhat.com> https://www.redhat.com/mailman/listinfo/fedora-directory-users
HO HO HO, if you've been nice this year, email Santa! Visit asksanta.ca to learn more! http://asksanta.ca/?icid=SANTAENCA005
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
Just for the record, here's my BAT file as well... echo off rem BEGIN COPYRIGHT BLOCK rem Copyright (C) 2005 Red Hat, Inc. rem All rights reserved. rem rem This library is free software; you can redistribute it and/or rem modify it under the terms of the GNU Lesser General Public rem License as published by the Free Software Foundation version rem 2.1 of the License. rem
rem This library is distributed in the hope that it will be useful, rem but WITHOUT ANY WARRANTY; without even the implied warranty of rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU rem Lesser General Public License for more details. rem
rem You should have received a copy of the GNU Lesser General Public rem License along with this library; if not, write to the Free Software rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA rem END COPYRIGHT BLOCK
rem set the JAVA to use here rem set JAVA=C:\j2sdk1.4.2_15\bin\java
if not "%JAVA%foo"=="foo" goto launch
where java > nul 2>&1 || goto findjre
set JAVA=java goto launch
:findjre rem look for Java Runtime Environment in registry reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" > nul 2>&1 || goto findjdk
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem apparently not, in a batch file rem goto launch echo The Java Runtime Environment is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full path of echo java.exe pause goto end
:findjdk reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" > nul 2>&1 || goto nojava
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem goto launch echo The Java Development Kit is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full path of echo java.exe pause goto end
:nojava echo Java does not appear to be installed on this machine. Please download and install the Java Runtime Environment and make sure the java.exe command is in the PATH of this command. pause goto end
:launch set BASEPATH=. set FIDMCONSOLEJARDIR=%BASEPATH% set CONSOLEJARDIR=%BASEPATH% set JSSDIR=%BASEPATH% set LDAPJARDIR=%BASEPATH%
set PATH=%BASEPATH%;%PATH%
rem rem Launch the Console rem echo on "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp "%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" -Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console com.netscape.management.client.console.Console %*
:end
Ian Blackwell wrote:
On closer inspection at home, I see that I didn't set the JAVA value, I changed the PC so that the path to JAVA.EXE was in the environment. The script is able to detect this and then works.
Try adding the path to your Java installation to your environment via the Windows Control Panel and System applet.
Ian
kiran madala wrote:
Hi,
Thanks for the reply. Where exactly do I need to set my java variable path?
I set the java path in the .bat file its not working. I am not sure if i did it the right way. below is my .bat file with changes in bold. Thanks in advance
rem rem This library is free software; you can redistribute it and/or rem modify it under the terms of the GNU Lesser General Public rem License as published by the Free Software Foundation version rem 2.1 of the License. rem
rem This library is distributed in the hope that it will be useful, rem but WITHOUT ANY WARRANTY; without even the implied warranty of rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU rem Lesser General Public License for more details. rem
rem You should have received a copy of the GNU Lesser General Public rem License along with this library; if not, write to the Free Software rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA rem END COPYRIGHT BLOCK
rem set the JAVA to use here rem set JAVA=C:\Program Files\Java\jre1.6.0_03\bin\java
if not "%JAVA%foo"=="foo" goto launch
where java > nul 2>&1 || goto findjre
set JAVA=java goto launch
:findjre rem look for Java Runtime Environment in registry reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" > nul 2>&1 || goto findjdk
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem apparently not, in a batch file rem goto launch echo The Java Runtime Environment is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full path of echo java.exe pause goto end
:findjdk reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" > nul 2>&1 || goto nojava
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem goto launch echo The Java Development Kit is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full path of echo java.exe pause goto end
:nojava echo Java does not appear to be installed on this machine. Please download and install the Java Runtime Environment and make sure the java.exe command is in the PATH of this command. pause goto end
:launch set BASEPATH=. set FIDMCONSOLEJARDIR=%BASEPATH% set CONSOLEJARDIR=%BASEPATH% set JSSDIR=%BASEPATH% set LDAPJARDIR=%BASEPATH%
set PATH=%BASEPATH%;%PATH%
rem rem Launch the Console rem echo on "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp "%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" -Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console com.netscape.management.client.console.Console %*
:end
------------------------------------------------------------------------ Date: Thu, 3 Jan 2008 07:59:42 +1030 From: ian@ikel.id.au To: fedora-directory-users@redhat.com Subject: Re: [Fedora-directory-users] Windows console Hi, This happened to me as well. I think the installer can't cope with or doesn't look for Java in your "Program Files" area, which is where you will find the newer Javas 1.6. Edit the .bat file and set the Java variable yourself and it should work from then on. Regards, Ian kiran madala wrote: Hi, The windows console for 1.1 server does not work it gives me this error F:\Program Files\Fedora Identity Management Console>echo off The Java Runtime Environment is installed on this machine, but the command java.exe is not in your PATH. You can either make sure java.exe is in the PATH, or edit this script to set JAVA to the full path of java.exe Press any key to continue . . . All my java programs work. The java in my class path and also in my registry . Any idea whats causing the problem? ------------------------------------------------------------------------ HO HO HO, if you've been naughty this year, email Santa! Visit asksanta.ca to learn more! <http://asksanta.ca/?icid=SANTAENCA005> ------------------------------------------------------------------------ -- Fedora-directory-users mailing list Fedora-directory-users@redhat.com <mailto:Fedora-directory-users@redhat.com> https://www.redhat.com/mailman/listinfo/fedora-directory-users
HO HO HO, if you've been nice this year, email Santa! Visit asksanta.ca to learn more! http://asksanta.ca/?icid=SANTAENCA005
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
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. I was wondering if you ever have got it running successfully?
Thank you.
Date: Thu, 3 Jan 2008 12:26:44 +1030 From: ian@ikel.id.au To: fedora-directory-users@redhat.com Subject: Re: [Fedora-directory-users] Windows console
Just for the record, here's my BAT file as well... echo off rem BEGIN COPYRIGHT BLOCK rem Copyright (C) 2005 Red Hat, Inc. rem All rights reserved. rem rem This library is free software; you can redistribute it and/or rem modify it under the terms of the GNU Lesser General Public rem License as published by the Free Software Foundation version rem 2.1 of the License. rem
rem This library is distributed in the hope that it will be useful, rem but WITHOUT ANY WARRANTY; without even the implied warranty of rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU rem Lesser General Public License for more details. rem
rem You should have received a copy of the GNU Lesser General Public rem License along with this library; if not, write to the Free Software rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA rem END COPYRIGHT BLOCK
rem set the JAVA to use here rem set JAVA=C:\j2sdk1.4.2_15\bin\java
if not "%JAVA%foo"=="foo" goto launch
where java > nul 2>&1 || goto findjre
set JAVA=java goto launch
:findjre rem look for Java Runtime Environment in registry reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" > nul 2>&1 || goto findjdk
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem apparently not, in a batch file rem goto launch echo The Java Runtime Environment is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full path of echo java.exe pause goto end
:findjdk reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" > nul 2>&1 || goto nojava
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem goto launch echo The Java Development Kit is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full path of echo java.exe pause goto end
:nojava echo Java does not appear to be installed on this machine. Please download and install the Java Runtime Environment and make sure the java.exe command is in the PATH of this command. pause goto end
:launch set BASEPATH=. set FIDMCONSOLEJARDIR=%BASEPATH% set CONSOLEJARDIR=%BASEPATH% set JSSDIR=%BASEPATH% set LDAPJARDIR=%BASEPATH%
set PATH=%BASEPATH%;%PATH%
rem rem Launch the Console rem echo on "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp "%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" -Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console com.netscape.management.client.console.Console %*
:end
Ian Blackwell wrote:
On closer inspection at home, I see that I didn't set the JAVA value, I changed the PC so that the path to JAVA.EXE was in the environment. The script is able to detect this and then works.
Try adding the path to your Java installation to your environment via the Windows Control Panel and System applet.
Ian
kiran madala wrote:
Hi,
Thanks for the reply. Where exactly do I need to set my java variable path?
I set the java path in the .bat file its not working. I am not sure if i did it the right way. below is my .bat file with changes in bold. Thanks in advance
rem rem This library is free software; you can redistribute it and/or rem modify it under the terms of the GNU Lesser General Public rem License as published by the Free Software Foundation version rem 2.1 of the License. rem
rem This library is distributed in the hope that it will be useful, rem but WITHOUT ANY WARRANTY; without even the implied warranty of rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU rem Lesser General Public License for more details. rem
rem You should have received a copy of the GNU Lesser General Public rem License along with this library; if not, write to the Free Software rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA rem END COPYRIGHT BLOCK
rem set the JAVA to use here rem set JAVA=C:\Program Files\Java\jre1.6.0_03\bin\java
if not "%JAVA%foo"=="foo" goto launch
where java > nul 2>&1 || goto findjre
set JAVA=java goto launch
:findjre rem look for Java Runtime Environment in registry reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" > nul 2>&1 || goto findjdk
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem apparently not, in a batch file rem goto launch echo The Java Runtime Environment is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full path of echo java.exe pause goto end
:findjdk reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" > nul 2>&1 || goto nojava
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem goto launch echo The Java Development Kit is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full path of echo java.exe pause goto end
:nojava echo Java does not appear to be installed on this machine. Please download and install the Java Runtime Environment and make sure the java.exe command is in the PATH of this command. pause goto end
:launch set BASEPATH=. set FIDMCONSOLEJARDIR=%BASEPATH% set CONSOLEJARDIR=%BASEPATH% set JSSDIR=%BASEPATH% set LDAPJARDIR=%BASEPATH%
set PATH=%BASEPATH%;%PATH%
rem rem Launch the Console rem echo on "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp "%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" -Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console com.netscape.management.client.console.Console %*
:end
------------------------------------------------------------------------ Date: Thu, 3 Jan 2008 07:59:42 +1030 From: ian@ikel.id.au To: fedora-directory-users@redhat.com Subject: Re: [Fedora-directory-users] Windows console Hi, This happened to me as well. I think the installer can't cope with or doesn't look for Java in your "Program Files" area, which is where you will find the newer Javas 1.6. Edit the .bat file and set the Java variable yourself and it should work from then on. Regards, Ian kiran madala wrote: Hi, The windows console for 1.1 server does not work it gives me this error F:\Program Files\Fedora Identity Management Console>echo off The Java Runtime Environment is installed on this machine, but the command java.exe is not in your PATH. You can either make sure java.exe is in the PATH, or edit this script to set JAVA to the full path of java.exe Press any key to continue . . . All my java programs work. The java in my class path and also in my registry . Any idea whats causing the problem? ------------------------------------------------------------------------ HO HO HO, if you've been naughty this year, email Santa! Visit asksanta.ca to learn more! <http://asksanta.ca/?icid=SANTAENCA005> ------------------------------------------------------------------------ -- Fedora-directory-users mailing list Fedora-directory-users@redhat.com <mailto:Fedora-directory-users@redhat.com> https://www.redhat.com/mailman/listinfo/fedora-directory-users
HO HO HO, if you've been nice this year, email Santa! Visit asksanta.ca to learn more! http://asksanta.ca/?icid=SANTAENCA005
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
_________________________________________________________________ Introducing the City @ Live! Take a tour! http://getyourliveid.ca/?icid=LIVEIDENCA006
Nope. I can get the console connection window where I enter my login details, but it won't connect. I've still got stacks of problems with my implementation that I'm trying to get resolved via this forum as well. To be frank, I'm not that impressed with the product, documentation, or anything else to do with Fedora-DS.
Ian
kiran madala wrote:
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. I was wondering if you ever have got it running successfully?
Thank you.
Date: Thu, 3 Jan 2008 12:26:44 +1030 From: ian@ikel.id.au To: fedora-directory-users@redhat.com Subject: Re: [Fedora-directory-users] Windows console
Just for the record, here's my BAT file as well... echo off rem BEGIN COPYRIGHT BLOCK rem Copyright (C) 2005 Red Hat, Inc. rem All rights reserved. rem rem This library is free software; you can redistribute it and/or rem modify it under the terms of the GNU Lesser General Public rem License as published by the Free Software Foundation version rem 2.1 of the License. rem
rem This library is distributed in the hope that it will be useful, rem but WITHOUT ANY WARRANTY; without even the implied warranty of rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU rem Lesser General Public License for more details. rem
rem You should have received a copy of the GNU Lesser General Public rem License along with this library; if not, write to the Free Software rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA rem END COPYRIGHT BLOCK
rem set the JAVA to use here rem set JAVA=C:\j2sdk1.4.2_15\bin\java
if not "%JAVA%foo"=="foo" goto launch
where java > nul 2>&1 || goto findjre
set JAVA=java goto launch
:findjre rem look for Java Runtime Environment in registry reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" > nul 2>&1 || goto findjdk
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem apparently not, in a batch file rem goto launch echo The Java Runtime Environment is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full path of echo java.exe pause goto end
:findjdk reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" > nul 2>&1 || goto nojava
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem goto launch echo The Java Development Kit is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full path of echo java.exe pause goto end
:nojava echo Java does not appear to be installed on this machine. Please download and install the Java Runtime Environment and make sure the java.exe command is in the PATH of this command. pause goto end
:launch set BASEPATH=. set FIDMCONSOLEJARDIR=%BASEPATH% set CONSOLEJARDIR=%BASEPATH% set JSSDIR=%BASEPATH% set LDAPJARDIR=%BASEPATH%
set PATH=%BASEPATH%;%PATH%
rem rem Launch the Console rem echo on "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp
"%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"
-Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console com.netscape.management.client.console.Console %*
:end
Ian Blackwell wrote:
On closer inspection at home, I see that I didn't set the JAVA
value, I
changed the PC so that the path to JAVA.EXE was in the
environment. The
script is able to detect this and then works.
Try adding the path to your Java installation to your environment via the Windows Control Panel and System applet.
Ian
kiran madala wrote:
Hi,
Thanks for the reply. Where exactly do I need to set my java variable path?
I set the java path in the .bat file its not working. I am not
sure if
i did it the right way. below is my .bat file with changes in bold. Thanks in advance
rem rem This library is free software; you can redistribute it and/or rem modify it under the terms of the GNU Lesser General Public rem License as published by the Free Software Foundation version rem 2.1 of the License. rem
rem This library is distributed in the hope that it will be useful, rem but WITHOUT ANY WARRANTY; without even the implied warranty of rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU rem Lesser General Public License for more details. rem
rem You should have received a copy of the GNU Lesser General Public rem License along with this library; if not, write to the Free
Software
rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA rem END COPYRIGHT BLOCK
rem set the JAVA to use here rem set JAVA=C:\Program Files\Java\jre1.6.0_03\bin\java
if not "%JAVA%foo"=="foo" goto launch
where java > nul 2>&1 || goto findjre
set JAVA=java goto launch
:findjre rem look for Java Runtime Environment in registry reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" > nul
2>&1
|| goto findjdk
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem apparently not, in a batch file rem goto launch echo The Java Runtime Environment is installed on this machine,
but the
echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full
path of
echo java.exe pause goto end
:findjdk reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" > nul 2>&1 || goto nojava
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem goto launch echo The Java Development Kit is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full
path of
echo java.exe pause goto end
:nojava echo Java does not appear to be installed on this machine. Please download and install the Java Runtime Environment and make sure the java.exe command is in the PATH of this command. pause goto end
:launch set BASEPATH=. set FIDMCONSOLEJARDIR=%BASEPATH% set CONSOLEJARDIR=%BASEPATH% set JSSDIR=%BASEPATH% set LDAPJARDIR=%BASEPATH%
set PATH=%BASEPATH%;%PATH%
rem rem Launch the Console rem echo on "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp
"%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"
-Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console com.netscape.management.client.console.Console %*
:end
Date: Thu, 3 Jan 2008 07:59:42 +1030 From: ian@ikel.id.au To: fedora-directory-users@redhat.com Subject: Re: [Fedora-directory-users] Windows console
Hi,
This happened to me as well. I think the installer can't cope with or doesn't look for Java in your "Program Files" area, which is where you will find the newer Javas 1.6. Edit the .bat file and set the Java variable yourself and it should work from then on.
Regards,
Ian kiran madala wrote:
Hi,
The windows console for 1.1 server does not work it gives me this error
F:\Program Files\Fedora Identity Management Console>echo off The Java Runtime Environment is installed on this machine, but the command java.exe is not in your PATH. You can either make sure java.exe is in the PATH, or edit this script to set JAVA to the full path of java.exe Press any key to continue . . .
All my java programs work. The java in my class path and also in my registry . Any idea whats causing the problem?
HO HO HO, if you've been naughty this year, email Santa! Visit asksanta.ca to learn more! http://asksanta.ca/?icid=SANTAENCA005
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com
mailto:Fedora-directory-users@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-directory-users
HO HO HO, if you've been nice this year, email Santa! Visit asksanta.ca to learn more! http://asksanta.ca/?icid=SANTAENCA005
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
HO HO HO, if you've been naughty this year, email Santa! Visit asksanta.ca to learn more! http://asksanta.ca/?icid=SANTAENCA005
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
Ian Blackwell wrote:
Nope. I can get the console connection window where I enter my login details, but it won't connect.
Please try adding the -D 9 arguments to the end of the command line. This will cause lots of debugging information to spew forth.
I've still got stacks of problems with my implementation that I'm trying to get resolved via this forum as well.
Most (if not all) of the developers have been on vacation from December 21 until now.
To be frank, I'm not that impressed with the product, documentation, or anything else to do with Fedora-DS.
Can you be more specific?
Ian
kiran madala wrote:
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. I was wondering if you ever have got it running successfully?
Thank you.
Date: Thu, 3 Jan 2008 12:26:44 +1030 From: ian@ikel.id.au To: fedora-directory-users@redhat.com Subject: Re: [Fedora-directory-users] Windows console
Just for the record, here's my BAT file as well... echo off rem BEGIN COPYRIGHT BLOCK rem Copyright (C) 2005 Red Hat, Inc. rem All rights reserved. rem rem This library is free software; you can redistribute it and/or rem modify it under the terms of the GNU Lesser General Public rem License as published by the Free Software Foundation version rem 2.1 of the License. rem
rem This library is distributed in the hope that it will be useful, rem but WITHOUT ANY WARRANTY; without even the implied warranty of rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU rem Lesser General Public License for more details. rem
rem You should have received a copy of the GNU Lesser General Public rem License along with this library; if not, write to the Free
Software
rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA rem END COPYRIGHT BLOCK
rem set the JAVA to use here rem set JAVA=C:\j2sdk1.4.2_15\bin\java
if not "%JAVA%foo"=="foo" goto launch
where java > nul 2>&1 || goto findjre
set JAVA=java goto launch
:findjre rem look for Java Runtime Environment in registry reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" > nul 2>&1 || goto findjdk
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem apparently not, in a batch file rem goto launch echo The Java Runtime Environment is installed on this machine, but
the
echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full
path of
echo java.exe pause goto end
:findjdk reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" > nul 2>&1 || goto nojava
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem goto launch echo The Java Development Kit is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full
path of
echo java.exe pause goto end
:nojava echo Java does not appear to be installed on this machine. Please download and install the Java Runtime Environment and make sure the java.exe command is in the PATH of this command. pause goto end
:launch set BASEPATH=. set FIDMCONSOLEJARDIR=%BASEPATH% set CONSOLEJARDIR=%BASEPATH% set JSSDIR=%BASEPATH% set LDAPJARDIR=%BASEPATH%
set PATH=%BASEPATH%;%PATH%
rem rem Launch the Console rem echo on "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp
"%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"
-Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console com.netscape.management.client.console.Console %*
:end
Ian Blackwell wrote:
On closer inspection at home, I see that I didn't set the JAVA
value, I
changed the PC so that the path to JAVA.EXE was in the
environment. The
script is able to detect this and then works.
Try adding the path to your Java installation to your environment
via
the Windows Control Panel and System applet.
Ian
kiran madala wrote:
Hi,
Thanks for the reply. Where exactly do I need to set my java
variable
path?
I set the java path in the .bat file its not working. I am not
sure if
i did it the right way. below is my .bat file with changes in bold. Thanks in advance
rem rem This library is free software; you can redistribute it and/or rem modify it under the terms of the GNU Lesser General Public rem License as published by the Free Software Foundation version rem 2.1 of the License. rem
rem This library is distributed in the hope that it will be useful, rem but WITHOUT ANY WARRANTY; without even the implied warranty of rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU
rem Lesser General Public License for more details. rem
rem You should have received a copy of the GNU Lesser General
Public
rem License along with this library; if not, write to the Free
Software
rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA rem END COPYRIGHT BLOCK
rem set the JAVA to use here rem set JAVA=C:\Program Files\Java\jre1.6.0_03\bin\java
if not "%JAVA%foo"=="foo" goto launch
where java > nul 2>&1 || goto findjre
set JAVA=java goto launch
:findjre rem look for Java Runtime Environment in registry reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" >
nul 2>&1
|| goto findjdk
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem apparently not, in a batch file rem goto launch echo The Java Runtime Environment is installed on this machine,
but the
echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full
path of
echo java.exe pause goto end
:findjdk reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" > nul
2>&1 ||
goto nojava
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem goto launch echo The Java Development Kit is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full
path of
echo java.exe pause goto end
:nojava echo Java does not appear to be installed on this machine. Please download and install the Java Runtime Environment and make sure the java.exe command is in the PATH of this command. pause goto end
:launch set BASEPATH=. set FIDMCONSOLEJARDIR=%BASEPATH% set CONSOLEJARDIR=%BASEPATH% set JSSDIR=%BASEPATH% set LDAPJARDIR=%BASEPATH%
set PATH=%BASEPATH%;%PATH%
rem rem Launch the Console rem echo on "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp
"%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"
-Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console com.netscape.management.client.console.Console %*
:end
Date: Thu, 3 Jan 2008 07:59:42 +1030 From: ian@ikel.id.au To: fedora-directory-users@redhat.com Subject: Re: [Fedora-directory-users] Windows console
Hi,
This happened to me as well. I think the installer can't cope with or doesn't look for Java in your "Program Files" area, which is where you will find the newer Javas 1.6. Edit the .bat file and set the Java variable yourself and it should work from then on.
Regards,
Ian kiran madala wrote:
Hi,
The windows console for 1.1 server does not work it gives me this error
F:\Program Files\Fedora Identity Management Console>echo off The Java Runtime Environment is installed on this machine, but the command java.exe is not in your PATH. You can either make sure java.exe is in the PATH, or edit this script to set JAVA to the full path of java.exe Press any key to continue . . .
All my java programs work. The java in my class path and also in my registry . Any idea whats causing the problem?
HO HO HO, if you've been naughty this year, email Santa! Visit asksanta.ca to learn more! http://asksanta.ca/?icid=SANTAENCA005
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com
mailto:Fedora-directory-users@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-directory-users
HO HO HO, if you've been nice this year, email Santa! Visit asksanta.ca to learn more! http://asksanta.ca/?icid=SANTAENCA005
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
HO HO HO, if you've been naughty this year, email Santa! Visit asksanta.ca to learn more! http://asksanta.ca/?icid=SANTAENCA005
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
Hi again,
I've been using Red Hat and Fedora for almost 9 years now (just last month I decommissioned my oldest RH7.2 server). I've had LDAP servers working with FC5 and haven't had a problem. I'm a RH Technician and am hoping to gain Engineer qualifications next month, so I feel familiar with Fedora and RH products.
In December I built a new server for my home network based on Fedora 8 and decided to use Fedora Directory Services as well. Perhaps the fresh install contributed to my jaundiced view of FDS, because I had more problems than I expected getting my new server working the way I wanted (Postfix/Cyrus issue predominately).
Anyway, when I got to FDS it would be fair to say I was annoyed with F8. I even downloaded Ubuntu and almost got to the point of burning a DVD to see if it might be easier than F8. In this frame of mind I wasn't able to cope well with the frustration of trying to get FDS 1.1 working, using the documentation from the FDS website. I found it particularly unhelpful with respect to FDS 1.1 and F8. I found stacks of information about FC6 and 1.0.4, but had real trouble finding useful doco about F8 and FDS 1.1. The confusion about what was in and out of the release, the packaging changes, and having problems accessing the console just made be p---ed off. I also had trouble finding where the yum updates were, which was my fault for not reading properly the doco that was useful.
Anyway, I'm back on track now and will persevere until I get it working. Yours and other posts to this forum have helped me to see how other users are working with FDS, and I am confident I'll have an operational server fairly soon. Now that I have console access, it all seems much easier...
Regards,
Ian
Rich Megginson wrote:
Ian Blackwell wrote:
Nope. I can get the console connection window where I enter my login details, but it won't connect.
Please try adding the -D 9 arguments to the end of the command line. This will cause lots of debugging information to spew forth.
I've still got stacks of problems with my implementation that I'm trying to get resolved via this forum as well.
Most (if not all) of the developers have been on vacation from December 21 until now.
To be frank, I'm not that impressed with the product, documentation, or anything else to do with Fedora-DS.
Can you be more specific?
Ian
kiran madala wrote:
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. I was wondering if you ever have got it running successfully?
Thank you.
Date: Thu, 3 Jan 2008 12:26:44 +1030 From: ian@ikel.id.au To: fedora-directory-users@redhat.com Subject: Re: [Fedora-directory-users] Windows console
Just for the record, here's my BAT file as well... echo off rem BEGIN COPYRIGHT BLOCK rem Copyright (C) 2005 Red Hat, Inc. rem All rights reserved. rem rem This library is free software; you can redistribute it and/or rem modify it under the terms of the GNU Lesser General Public rem License as published by the Free Software Foundation version rem 2.1 of the License. rem
rem This library is distributed in the hope that it will be useful, rem but WITHOUT ANY WARRANTY; without even the implied warranty of rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU rem Lesser General Public License for more details. rem
rem You should have received a copy of the GNU Lesser General Public rem License along with this library; if not, write to the Free
Software
rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA rem END COPYRIGHT BLOCK
rem set the JAVA to use here rem set JAVA=C:\j2sdk1.4.2_15\bin\java
if not "%JAVA%foo"=="foo" goto launch
where java > nul 2>&1 || goto findjre
set JAVA=java goto launch
:findjre rem look for Java Runtime Environment in registry reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" > nul
2>&1
|| goto findjdk
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem apparently not, in a batch file rem goto launch echo The Java Runtime Environment is installed on this machine,
but the
echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full
path of
echo java.exe pause goto end
:findjdk reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" > nul 2>&1 || goto nojava
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem goto launch echo The Java Development Kit is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full
path of
echo java.exe pause goto end
:nojava echo Java does not appear to be installed on this machine. Please download and install the Java Runtime Environment and make sure the java.exe command is in the PATH of this command. pause goto end
:launch set BASEPATH=. set FIDMCONSOLEJARDIR=%BASEPATH% set CONSOLEJARDIR=%BASEPATH% set JSSDIR=%BASEPATH% set LDAPJARDIR=%BASEPATH%
set PATH=%BASEPATH%;%PATH%
rem rem Launch the Console rem echo on "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp
"%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"
-Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console com.netscape.management.client.console.Console %*
:end
Ian Blackwell wrote:
On closer inspection at home, I see that I didn't set the JAVA
value, I
changed the PC so that the path to JAVA.EXE was in the
environment. The
script is able to detect this and then works.
Try adding the path to your Java installation to your
environment via
the Windows Control Panel and System applet.
Ian
kiran madala wrote:
Hi,
Thanks for the reply. Where exactly do I need to set my java
variable
path?
I set the java path in the .bat file its not working. I am not
sure if
i did it the right way. below is my .bat file with changes in
bold.
Thanks in advance
rem rem This library is free software; you can redistribute it and/or rem modify it under the terms of the GNU Lesser General Public rem License as published by the Free Software Foundation version rem 2.1 of the License. rem
rem This library is distributed in the hope that it will be
useful,
rem but WITHOUT ANY WARRANTY; without even the implied warranty of rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
the GNU
rem Lesser General Public License for more details. rem
rem You should have received a copy of the GNU Lesser General
Public
rem License along with this library; if not, write to the Free
Software
rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA rem END COPYRIGHT BLOCK
rem set the JAVA to use here rem set JAVA=C:\Program Files\Java\jre1.6.0_03\bin\java
if not "%JAVA%foo"=="foo" goto launch
where java > nul 2>&1 || goto findjre
set JAVA=java goto launch
:findjre rem look for Java Runtime Environment in registry reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" >
nul 2>&1
|| goto findjdk
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem apparently not, in a batch file rem goto launch echo The Java Runtime Environment is installed on this machine,
but the
echo command java.exe is not in your PATH. You can either make
sure
java.exe echo is in the PATH, or edit this script to set JAVA to the
full path of
echo java.exe pause goto end
:findjdk reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" > nul
2>&1 ||
goto nojava
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem goto launch echo The Java Development Kit is installed on this machine, but
the
echo command java.exe is not in your PATH. You can either make
sure
java.exe echo is in the PATH, or edit this script to set JAVA to the
full path of
echo java.exe pause goto end
:nojava echo Java does not appear to be installed on this machine. Please download and install the Java Runtime Environment and make sure
the
java.exe command is in the PATH of this command. pause goto end
:launch set BASEPATH=. set FIDMCONSOLEJARDIR=%BASEPATH% set CONSOLEJARDIR=%BASEPATH% set JSSDIR=%BASEPATH% set LDAPJARDIR=%BASEPATH%
set PATH=%BASEPATH%;%PATH%
rem rem Launch the Console rem echo on "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp
"%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"
-Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console com.netscape.management.client.console.Console %*
:end
Date: Thu, 3 Jan 2008 07:59:42 +1030 From: ian@ikel.id.au To: fedora-directory-users@redhat.com Subject: Re: [Fedora-directory-users] Windows console
Hi,
This happened to me as well. I think the installer can't cope with or doesn't look for Java in your "Program Files" area, which is where you will find the newer Javas 1.6. Edit the .bat file and set the Java variable yourself and it should work from then
on.
Regards,
Ian kiran madala wrote:
Hi,
The windows console for 1.1 server does not work it gives me this error
F:\Program Files\Fedora Identity Management Console>echo off The Java Runtime Environment is installed on this machine, but the command java.exe is not in your PATH. You can either make sure java.exe is in the PATH, or edit this script to set JAVA to the full path of java.exe Press any key to continue . . .
All my java programs work. The java in my class path and also in my registry . Any idea whats causing the problem?
HO HO HO, if you've been naughty this year, email Santa! Visit asksanta.ca to learn more! http://asksanta.ca/?icid=SANTAENCA005
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com
mailto:Fedora-directory-users@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-directory-users
HO HO HO, if you've been nice this year, email Santa! Visit asksanta.ca to learn more! http://asksanta.ca/?icid=SANTAENCA005
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
HO HO HO, if you've been naughty this year, email Santa! Visit asksanta.ca to learn more! http://asksanta.ca/?icid=SANTAENCA005
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
Ian Blackwell wrote:
Hi again,
I've been using Red Hat and Fedora for almost 9 years now (just last month I decommissioned my oldest RH7.2 server). I've had LDAP servers working with FC5 and haven't had a problem. I'm a RH Technician and am hoping to gain Engineer qualifications next month, so I feel familiar with Fedora and RH products.
In December I built a new server for my home network based on Fedora 8 and decided to use Fedora Directory Services as well. Perhaps the fresh install contributed to my jaundiced view of FDS, because I had more problems than I expected getting my new server working the way I wanted (Postfix/Cyrus issue predominately).
If these are issues with Postfix/Cyrus integration with Fedora DS, I'd like to know what they are.
Anyway, when I got to FDS it would be fair to say I was annoyed with F8. I even downloaded Ubuntu and almost got to the point of burning a DVD to see if it might be easier than F8. In this frame of mind I wasn't able to cope well with the frustration of trying to get FDS 1.1 working, using the documentation from the FDS website. I found it particularly unhelpful with respect to FDS 1.1 and F8. I found stacks of information about FC6 and 1.0.4, but had real trouble finding useful doco about F8 and FDS 1.1. The confusion about what was in and out of the release, the packaging changes, and having problems accessing the console just made be p---ed off. I also had trouble finding where the yum updates were, which was my fault for not reading properly the doco that was useful.
I've seen no problems reported with using the Fedora Core 6 bits of Fedora DS 1.0.4 on Fedora 7 and higher. What problems have you run into?
Fedora DS 1.1 will fully support Fedora 7 and higher. I'm just waiting for the bits to be released and pushed out to the mirror sites - that's only holdup with the official final Fedora DS 1.1 release.
Getting Fedora DS running on Ubuntu will be much harder than getting it running on Fedora. I would like this to change, provided someone with some time and Debian/Ubuntu expertise can help out the project. Now that everything is fully autotool-ized and FHS-ized (at least the Fedora DS bits) it should be easy to build it on platforms other than RHEL/Fedora. If you're interested, see http://directory.fedoraproject.org/wiki/Building
Anyway, I'm back on track now and will persevere until I get it working. Yours and other posts to this forum have helped me to see how other users are working with FDS, and I am confident I'll have an operational server fairly soon. Now that I have console access, it all seems much easier...
Regards,
Ian
Rich Megginson wrote:
Ian Blackwell wrote:
Nope. I can get the console connection window where I enter my login details, but it won't connect.
Please try adding the -D 9 arguments to the end of the command line. This will cause lots of debugging information to spew forth.
I've still got stacks of problems with my implementation that I'm trying to get resolved via this forum as well.
Most (if not all) of the developers have been on vacation from December 21 until now.
To be frank, I'm not that impressed with the product, documentation, or anything else to do with Fedora-DS.
Can you be more specific?
Ian
kiran madala wrote:
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. I was wondering if you ever have got it running successfully?
Thank you.
Date: Thu, 3 Jan 2008 12:26:44 +1030 From: ian@ikel.id.au To: fedora-directory-users@redhat.com Subject: Re: [Fedora-directory-users] Windows console
Just for the record, here's my BAT file as well... echo off rem BEGIN COPYRIGHT BLOCK rem Copyright (C) 2005 Red Hat, Inc. rem All rights reserved. rem rem This library is free software; you can redistribute it and/or rem modify it under the terms of the GNU Lesser General Public rem License as published by the Free Software Foundation version rem 2.1 of the License. rem
rem This library is distributed in the hope that it will be useful, rem but WITHOUT ANY WARRANTY; without even the implied warranty of rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU rem Lesser General Public License for more details. rem
rem You should have received a copy of the GNU Lesser General Public rem License along with this library; if not, write to the Free
Software
rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA rem END COPYRIGHT BLOCK
rem set the JAVA to use here rem set JAVA=C:\j2sdk1.4.2_15\bin\java
if not "%JAVA%foo"=="foo" goto launch
where java > nul 2>&1 || goto findjre
set JAVA=java goto launch
:findjre rem look for Java Runtime Environment in registry reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" > nul
2>&1
|| goto findjdk
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem apparently not, in a batch file rem goto launch echo The Java Runtime Environment is installed on this machine,
but the
echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full
path of
echo java.exe pause goto end
:findjdk reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" > nul
2>&1 ||
goto nojava
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem goto launch echo The Java Development Kit is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full
path of
echo java.exe pause goto end
:nojava echo Java does not appear to be installed on this machine. Please download and install the Java Runtime Environment and make sure the java.exe command is in the PATH of this command. pause goto end
:launch set BASEPATH=. set FIDMCONSOLEJARDIR=%BASEPATH% set CONSOLEJARDIR=%BASEPATH% set JSSDIR=%BASEPATH% set LDAPJARDIR=%BASEPATH%
set PATH=%BASEPATH%;%PATH%
rem rem Launch the Console rem echo on "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp
"%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"
-Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console com.netscape.management.client.console.Console %*
:end
Ian Blackwell wrote:
On closer inspection at home, I see that I didn't set the JAVA
value, I
changed the PC so that the path to JAVA.EXE was in the
environment. The
script is able to detect this and then works.
Try adding the path to your Java installation to your
environment via
the Windows Control Panel and System applet.
Ian
kiran madala wrote:
> Hi, > > Thanks for the reply. Where exactly do I need to set my java
variable
> path? > > I set the java path in the .bat file its not working. I am not
sure if
> i did it the right way. below is my .bat file with changes in
bold.
> Thanks in advance > > > rem > rem This library is free software; you can redistribute it and/or > rem modify it under the terms of the GNU Lesser General Public > rem License as published by the Free Software Foundation version > rem 2.1 of the License. > rem > > rem This library is distributed in the hope that it will be
useful,
> rem but WITHOUT ANY WARRANTY; without even the implied
warranty of
> rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
the GNU
> rem Lesser General Public License for more details. > rem > > rem You should have received a copy of the GNU Lesser General
Public
> rem License along with this library; if not, write to the Free
Software
> rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA > 02110-1301 USA > rem END COPYRIGHT BLOCK > > rem set the JAVA to use here > rem set JAVA=C:\Program Files\Java\jre1.6.0_03\bin\java > > if not "%JAVA%foo"=="foo" goto launch > > where java > nul 2>&1 || goto findjre > > set JAVA=java > goto launch > > :findjre > rem look for Java Runtime Environment in registry > reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" >
nul 2>&1
> || goto findjdk > > rem can we grab the java location from the registry? > rem set JAVA=path\bin\java > rem apparently not, in a batch file > rem goto launch > echo The Java Runtime Environment is installed on this
machine, but the
> echo command java.exe is not in your PATH. You can either make
sure
> java.exe > echo is in the PATH, or edit this script to set JAVA to the
full path of
> echo java.exe > pause > goto end > > :findjdk > reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" > nul
2>&1 ||
> goto nojava > > rem can we grab the java location from the registry? > rem set JAVA=path\bin\java > rem goto launch > echo The Java Development Kit is installed on this machine,
but the
> echo command java.exe is not in your PATH. You can either make
sure
> java.exe > echo is in the PATH, or edit this script to set JAVA to the
full path of
> echo java.exe > pause > goto end > > :nojava > echo Java does not appear to be installed on this machine. Please > download and install the Java Runtime Environment and make
sure the
> java.exe command is in the PATH of this command. > pause > goto end > > :launch > set BASEPATH=. > set FIDMCONSOLEJARDIR=%BASEPATH% > set CONSOLEJARDIR=%BASEPATH% > set JSSDIR=%BASEPATH% > set LDAPJARDIR=%BASEPATH% > > set PATH=%BASEPATH%;%PATH% > > rem > rem Launch the Console > rem > echo on > "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp >
"%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"
> -Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console > -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console > com.netscape.management.client.console.Console %* > > :end > > > >
> Date: Thu, 3 Jan 2008 07:59:42 +1030 > From: ian@ikel.id.au > To: fedora-directory-users@redhat.com > Subject: Re: [Fedora-directory-users] Windows console > > Hi, > > This happened to me as well. I think the installer can't cope > with or doesn't look for Java in your "Program Files" area, which > is where you will find the newer Javas 1.6. Edit the .bat file > and set the Java variable yourself and it should work from
then on.
> > Regards, > > Ian > kiran madala wrote: > > Hi, > > The windows console for 1.1 server does not work it gives me > this error > > F:\Program Files\Fedora Identity Management Console>echo off > The Java Runtime Environment is installed on this machine, but
the
> command java.exe is not in your PATH. You can either make > sure java.exe > is in the PATH, or edit this script to set JAVA to the full > path of > java.exe > Press any key to continue . . . > > > All my java programs work. The java in my class path and also > in my registry . Any idea whats causing the problem? > > > > >
> HO HO HO, if you've been naughty this year, email Santa! Visit > asksanta.ca to learn more! > http://asksanta.ca/?icid=SANTAENCA005 > >
> > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com
mailto:Fedora-directory-users@redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-users > > > > >
> HO HO HO, if you've been nice this year, email Santa! Visit > asksanta.ca to learn more!
http://asksanta.ca/?icid=SANTAENCA005
>
> > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users > >
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
HO HO HO, if you've been naughty this year, email Santa! Visit asksanta.ca to learn more! http://asksanta.ca/?icid=SANTAENCA005
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
Hi Rich,
My Postfix/Cyrus problems were before I started with Fedora-DS. My next task is to integrate the three products. Do you know of any good documentation around? I have seen Dovecot documentation on the FDS site, but nothing about Cyrus.
I didn't use any FDS1.0.4 software because F8 installed 1.1 for me.
Ubuntu didn't make it from download to DVD - it is still on my HDD as an ISO. Because I've solved my problems so far, I'll stick with F8.
Thanks,
Ian
Rich Megginson wrote:
Ian Blackwell wrote:
Hi again,
I've been using Red Hat and Fedora for almost 9 years now (just last month I decommissioned my oldest RH7.2 server). I've had LDAP servers working with FC5 and haven't had a problem. I'm a RH Technician and am hoping to gain Engineer qualifications next month, so I feel familiar with Fedora and RH products.
In December I built a new server for my home network based on Fedora 8 and decided to use Fedora Directory Services as well. Perhaps the fresh install contributed to my jaundiced view of FDS, because I had more problems than I expected getting my new server working the way I wanted (Postfix/Cyrus issue predominately).
If these are issues with Postfix/Cyrus integration with Fedora DS, I'd like to know what they are.
Anyway, when I got to FDS it would be fair to say I was annoyed with F8. I even downloaded Ubuntu and almost got to the point of burning a DVD to see if it might be easier than F8. In this frame of mind I wasn't able to cope well with the frustration of trying to get FDS 1.1 working, using the documentation from the FDS website. I found it particularly unhelpful with respect to FDS 1.1 and F8. I found stacks of information about FC6 and 1.0.4, but had real trouble finding useful doco about F8 and FDS 1.1. The confusion about what was in and out of the release, the packaging changes, and having problems accessing the console just made be p---ed off. I also had trouble finding where the yum updates were, which was my fault for not reading properly the doco that was useful.
I've seen no problems reported with using the Fedora Core 6 bits of Fedora DS 1.0.4 on Fedora 7 and higher. What problems have you run into?
Fedora DS 1.1 will fully support Fedora 7 and higher. I'm just waiting for the bits to be released and pushed out to the mirror sites
- that's only holdup with the official final Fedora DS 1.1 release.
Getting Fedora DS running on Ubuntu will be much harder than getting it running on Fedora. I would like this to change, provided someone with some time and Debian/Ubuntu expertise can help out the project. Now that everything is fully autotool-ized and FHS-ized (at least the Fedora DS bits) it should be easy to build it on platforms other than RHEL/Fedora. If you're interested, see http://directory.fedoraproject.org/wiki/Building
Anyway, I'm back on track now and will persevere until I get it working. Yours and other posts to this forum have helped me to see how other users are working with FDS, and I am confident I'll have an operational server fairly soon. Now that I have console access, it all seems much easier...
Regards,
Ian
Rich Megginson wrote:
Ian Blackwell wrote:
Nope. I can get the console connection window where I enter my login details, but it won't connect.
Please try adding the -D 9 arguments to the end of the command line. This will cause lots of debugging information to spew forth.
I've still got stacks of problems with my implementation that I'm trying to get resolved via this forum as well.
Most (if not all) of the developers have been on vacation from December 21 until now.
To be frank, I'm not that impressed with the product, documentation, or anything else to do with Fedora-DS.
Can you be more specific?
Ian
kiran madala wrote:
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. I was wondering if you ever have got it running successfully?
Thank you.
Date: Thu, 3 Jan 2008 12:26:44 +1030 From: ian@ikel.id.au To: fedora-directory-users@redhat.com Subject: Re: [Fedora-directory-users] Windows console
Just for the record, here's my BAT file as well... echo off rem BEGIN COPYRIGHT BLOCK rem Copyright (C) 2005 Red Hat, Inc. rem All rights reserved. rem rem This library is free software; you can redistribute it and/or rem modify it under the terms of the GNU Lesser General Public rem License as published by the Free Software Foundation version rem 2.1 of the License. rem
rem This library is distributed in the hope that it will be useful, rem but WITHOUT ANY WARRANTY; without even the implied warranty of rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU
rem Lesser General Public License for more details. rem
rem You should have received a copy of the GNU Lesser General
Public
rem License along with this library; if not, write to the Free
Software
rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA rem END COPYRIGHT BLOCK
rem set the JAVA to use here rem set JAVA=C:\j2sdk1.4.2_15\bin\java
if not "%JAVA%foo"=="foo" goto launch
where java > nul 2>&1 || goto findjre
set JAVA=java goto launch
:findjre rem look for Java Runtime Environment in registry reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" >
nul 2>&1
|| goto findjdk
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem apparently not, in a batch file rem goto launch echo The Java Runtime Environment is installed on this machine,
but the
echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full
path of
echo java.exe pause goto end
:findjdk reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" > nul
2>&1 ||
goto nojava
rem can we grab the java location from the registry? rem set JAVA=path\bin\java rem goto launch echo The Java Development Kit is installed on this machine, but the echo command java.exe is not in your PATH. You can either make sure java.exe echo is in the PATH, or edit this script to set JAVA to the full
path of
echo java.exe pause goto end
:nojava echo Java does not appear to be installed on this machine. Please download and install the Java Runtime Environment and make sure the java.exe command is in the PATH of this command. pause goto end
:launch set BASEPATH=. set FIDMCONSOLEJARDIR=%BASEPATH% set CONSOLEJARDIR=%BASEPATH% set JSSDIR=%BASEPATH% set LDAPJARDIR=%BASEPATH%
set PATH=%BASEPATH%;%PATH%
rem rem Launch the Console rem echo on "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp
"%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"
-Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console com.netscape.management.client.console.Console %*
:end
Ian Blackwell wrote: > On closer inspection at home, I see that I didn't set the JAVA
value, I
> changed the PC so that the path to JAVA.EXE was in the
environment. The
> script is able to detect this and then works. > > Try adding the path to your Java installation to your
environment via
> the Windows Control Panel and System applet. > > Ian > > kiran madala wrote: > >> Hi, >> >> Thanks for the reply. Where exactly do I need to set my java
variable
>> path? >> >> I set the java path in the .bat file its not working. I am
not sure if
>> i did it the right way. below is my .bat file with changes in
bold.
>> Thanks in advance >> >> >> rem >> rem This library is free software; you can redistribute it
and/or
>> rem modify it under the terms of the GNU Lesser General Public >> rem License as published by the Free Software Foundation version >> rem 2.1 of the License. >> rem >> >> rem This library is distributed in the hope that it will be
useful,
>> rem but WITHOUT ANY WARRANTY; without even the implied
warranty of
>> rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
the GNU
>> rem Lesser General Public License for more details. >> rem >> >> rem You should have received a copy of the GNU Lesser General
Public
>> rem License along with this library; if not, write to the
Free Software
>> rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA >> 02110-1301 USA >> rem END COPYRIGHT BLOCK >> >> rem set the JAVA to use here >> rem set JAVA=C:\Program Files\Java\jre1.6.0_03\bin\java >> >> if not "%JAVA%foo"=="foo" goto launch >> >> where java > nul 2>&1 || goto findjre >> >> set JAVA=java >> goto launch >> >> :findjre >> rem look for Java Runtime Environment in registry >> reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Runtime Environment" >
nul 2>&1
>> || goto findjdk >> >> rem can we grab the java location from the registry? >> rem set JAVA=path\bin\java >> rem apparently not, in a batch file >> rem goto launch >> echo The Java Runtime Environment is installed on this
machine, but the
>> echo command java.exe is not in your PATH. You can either
make sure
>> java.exe >> echo is in the PATH, or edit this script to set JAVA to the
full path of
>> echo java.exe >> pause >> goto end >> >> :findjdk >> reg QUERY "HKLM\SOFTWARE\JavaSoft\Java Development Kit" > nul
2>&1 ||
>> goto nojava >> >> rem can we grab the java location from the registry? >> rem set JAVA=path\bin\java >> rem goto launch >> echo The Java Development Kit is installed on this machine,
but the
>> echo command java.exe is not in your PATH. You can either
make sure
>> java.exe >> echo is in the PATH, or edit this script to set JAVA to the
full path of
>> echo java.exe >> pause >> goto end >> >> :nojava >> echo Java does not appear to be installed on this machine.
Please
>> download and install the Java Runtime Environment and make
sure the
>> java.exe command is in the PATH of this command. >> pause >> goto end >> >> :launch >> set BASEPATH=. >> set FIDMCONSOLEJARDIR=%BASEPATH% >> set CONSOLEJARDIR=%BASEPATH% >> set JSSDIR=%BASEPATH% >> set LDAPJARDIR=%BASEPATH% >> >> set PATH=%BASEPATH%;%PATH% >> >> rem >> rem Launch the Console >> rem >> echo on >> "%JAVA%" "-Djava.library.path=%JSSDIR%" -cp >>
"%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"
>> -Djava.util.prefs.systemRoot=%HOME%/.fedora-idm-console >> -Djava.util.prefs.userRoot=%HOME%/.fedora-idm-console >> com.netscape.management.client.console.Console %* >> >> :end >> >> >> >>
>> Date: Thu, 3 Jan 2008 07:59:42 +1030 >> From: ian@ikel.id.au >> To: fedora-directory-users@redhat.com >> Subject: Re: [Fedora-directory-users] Windows console >> >> Hi, >> >> This happened to me as well. I think the installer can't cope >> with or doesn't look for Java in your "Program Files" area,
which
>> is where you will find the newer Javas 1.6. Edit the .bat file >> and set the Java variable yourself and it should work from
then on.
>> >> Regards, >> >> Ian >> kiran madala wrote: >> >> Hi, >> >> The windows console for 1.1 server does not work it gives me >> this error >> >> F:\Program Files\Fedora Identity Management Console>echo off >> The Java Runtime Environment is installed on this machine,
but the
>> command java.exe is not in your PATH. You can either make >> sure java.exe >> is in the PATH, or edit this script to set JAVA to the full >> path of >> java.exe >> Press any key to continue . . . >> >> >> All my java programs work. The java in my class path and also >> in my registry . Any idea whats causing the problem? >> >> >> >> >>
>> HO HO HO, if you've been naughty this year, email Santa! Visit >> asksanta.ca to learn more! >> http://asksanta.ca/?icid=SANTAENCA005 >> >>
>> >> -- >> Fedora-directory-users mailing list >> Fedora-directory-users@redhat.com
mailto:Fedora-directory-users@redhat.com
>> https://www.redhat.com/mailman/listinfo/fedora-directory-users >> >> >> >> >>
>> HO HO HO, if you've been nice this year, email Santa! Visit >> asksanta.ca to learn more!
http://asksanta.ca/?icid=SANTAENCA005
>>
>> >> -- >> Fedora-directory-users mailing list >> Fedora-directory-users@redhat.com >> https://www.redhat.com/mailman/listinfo/fedora-directory-users >> >> > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users > >
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
HO HO HO, if you've been naughty this year, email Santa! Visit asksanta.ca to learn more! http://asksanta.ca/?icid=SANTAENCA005
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
-- Fedora-directory-users mailing list Fedora-directory-users@redhat.com https://www.redhat.com/mailman/listinfo/fedora-directory-users
389-users@lists.fedoraproject.org