Hi Alice,

I suspect it's the usage type of jdk1.4. I'm using server type for running 
jdk1.4 and it works fine. When I ran the james service installation script, 
I typed:

<script name> <jdk home dir> <james ins dir> server

The service then runs okay.

Here's my james service installation script:

@echo off
echo --------
echo Usage:   %0 jdk_home james_home (classic/hotspot/server)
echo NOTE:    You MAY NOT use spaces in the path names.
echo          JDK 1.3 does not come with hotpot server by default, you must
echo          install this seperately if you wish to use it.
echo Example: %0 c:\progra~1\jdk c:\progra~1\james classic
echo --------

if "%1" == "" goto eof
if "%2" == "" goto eof
if "%3" == "" goto eof

copy JavaService.exe %2\bin\James.exe > nul

%2\bin\James.exe -install JamesMailServer %1\jre\bin\%3\jvm.dll -ms128m 
-mx128m -Djava.ext.dirs=%2\lib -Dphoenix.home=%2 
-Djava.security.policy=jar:file:%2/bin/phoenix-loader.jar!/META-INF/java.policy 
-Djava.class.path=%CLASSPATH%;%2\bin\phoenix-loader.jar;%2\bin\phoenix-engine.jar 
-start org.apache.avalon.phoenix.launcher.Main -out %2\logs\stdout.log -err 
%2\logs\stderr.log -current %2\bin

goto eof

:eof


And here's my uninstallation script:

@echo off
James -uninstall JamesMailServer


As an example, I typed: InstallJamesNTService e:\jdk1.4 f:\James server

Hope this helps.

Rgds,

Sam.


Earn BIG! Save BIG! Give away SUPER STORES online FREE! Saving and earning 
has never been easier! Get yours FREE TODAY!
http://www.freestoreclub.com/go/ssadek

>From: "Alice K" Reply-To: "James Users List" To: 
>[EMAIL PROTECTED] Subject: Re: NT Service configuration with 
>jdk1.4 Date: Tue, 23 Jul 2002 11:05:39 +0000
>
>
>Thank sam,
>
>Yes. This is what I did. It installed successfully on both jdk1.3 or jdk1.4
>
>While starting the services, jdk1.3 is OK. However, it could not start the 
>service under JDK1.4.
>
>I am looking for script to make it works under JDK 1.4.
>
>Anyone know the tricks.
>
>Thanks.
>
>Alice
>
>>
>>Hi Alice,
>>
>>There's a misprint on the faq.
>>
>>The line that reads:
>>
>>copy JavaService.exe %2\bin\James.exe > nul %2\bin\James.exe -install 
>>JamesMailServer %1\jre\bin\%3\jvm.dll -Djava.ext.dirs=%2\lib 
>>-Djava.class.path=%CLASSPATH%;%2\bin\phoenix-loader.jar;%2\bin\phoenix-engine.jar 
>>-start org.apache.avalon.phoenix.launcher.Main -out %2\logs\stdout.log 
>>-err %2\logs\stderr.log
>>
>>is separated into 2 lines as shown below:
>>
>>line 1: copy JavaService.exe %2\bin\James.exe > nul
>>
>>line 2: %2\bin\James.exe -install JamesMailServer %1\jre\bin\%3\jvm.dll 
>>-Djava.ext.dirs=%2\lib 
>>-Djava.class.path=%CLASSPATH%;%2\bin\phoenix-loader.jar;%2\bin\phoenix-engine.jar 
>>-start org.apache.avalon.phoenix.launcher.Main -out %2\logs\stdout.log 
>>-err %2\logs\stderr.log
>>
>>The latter is all one single line.
>>
>>Rgds,
>>
>>Sam.
>>
>>>From: "Alice K" Reply-To: "James Users List" To: 
>>>[EMAIL PROTECTED] Subject: NT Service configuration with 
>>>jdk1.4 Date: Mon, 22 Jul 2002 20:51:51 +0000
>>>
>>>Based on the faq and I successfully installed james as NT Service.
>>>
>>>http://www.alexandriasc.com/software/JavaService/index.html 
>>>http://jakarta.apache.org/james/FAQ.html#10
>>>
>>>However, when i start the services, Could not load the Java Virtual 
>>>Machine.
>>>
>>>The LoadLibrary function failed for the following reason: The specified 
>>>module could not be found. .
>>>
>>>This is jdk 1.4. If I switch to jdk1.3. It is working fine. Any one have 
>>>a script to run under jdk1.4
>>>
>>>Thanks a lots.
>>>
>>>ALice
>>>
>>>
>>>
>>>_________________________________________________________________ Send 
>>>and receive Hotmail on your mobile device: http://mobile.msn.com
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:
>>>
>>>For additional commands, e-mail:
>>>
>>>
>>
>>
>>Earn BIG! Save BIG! Give away SUPER STORES online FREE! Saving and earning 
>>has never been easier! Get yours FREE TODAY! 
>>http://www.freestoreclub.com/go/ssadek
>>
>>_________________________________________________________________ Send and 
>>receive Hotmail on your mobile device: http://mobile.msn.com
>>
>>
>>--
>>To unsubscribe, e-mail:
>>
>>For additional commands, e-mail:
>>
>
>
>
>
>_________________________________________________________________ MSN 
>Photos is the easiest way to share and print your photos: 
>http://photos.msn.com/support/worldwide.aspx
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to