cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Plain J2SE Adapter Engine on Windows 7 64Bit

Former Member
0 Kudos

Hi all,

I try to install the SAP Plain J2SE Adapter Engine on Windows 7 64Bit. The install-folder of the adapter engine is "C:\Program Files (x86)". We use  Java runtime from Java SDK 1.4.2 (32bit).Afterwards we tried to run the service without success.

In the os log we found a permanently alerts:

Error starting SAP Adapter Engine (207).

We have no addional helpful hints about this alert.

Please can somebody help me to resolve this issue.

Thanks and Regards

Alex

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi @all,

thx for the reply. I could solve this Problem. So I have to delete all old dat-files from DATA Folder of the Adapter. After this I restart the Adapter Service. Now It works fine.

Best Regards

Alex

Answers (3)

Answers (3)

stefan_grube
Active Contributor
0 Kudos

I think it will have issues, when the adapter is in a folder woth a space.

Try to put it in another folder like C:\adapterengine or similar.

You can use the latest Java version, there is no need to use Java 1.4

Check if you have all reqired libraries. You have to put jms.jar and servlet.jar in the folder tech_adapter.

Run the bat file run_adapter.bat in command line mode to see the errors.

Former Member
0 Kudos

Hi Stefan,

I have moved the adapter folder on C:\. I also have change the jvm for the latest jvm Version. I changed also 32 Bit Version into 64Bit. After this changes the Adapter Service is installed. The nessesary libraries are available. During the Service is starting the process breaks down.

So I also tried to change the  option  Xmx256m.

Here my script that I use for Service Installation:

@echo off
echo --------
echo install_service.bat: Batch-Script to install the SAP AdapterEngine as a Service 
echo Usage:   install_service.bat [ServiceName] [JavaVM]
echo Example: install_service.bat SAPAdapterEngine C:\JAVA\j2re1.4.2_13\bin\client
echo --------

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

SetLocal

set directory=%~dp0
Set serviceName=%1
Set jvmdllPath=%2
Set jvmoption1=-Xmx256m
Set jvmoption2=-Djava.class.path=%directory%aii_msg_adapter.jar;%directory%aii_msg_runtime.jar;%directory%httpclient.jar;%directory%aii_af_trace.jar;%directory%aii_rfcadapter.jar;%directory%pmi.jar;%directory%exception.jar;%directory%jperflib.jar;%directory%guidgenerator.jar;%directory%aii_utilxi_misc.jar;%directory%aii_util_cimaccess.jar;%directory%sapxmltoolkit.jar;%directory%logging.jar;%directory%lcrclient.jar;%directory%sldclient.jar;%directory%tc_sec_core.jar;%directory%tc_sec_api.jar;%directory%jms.jar;%directory%servlet.jar;%directory%jarm.jar;%directory%security/lib/iaik_jce.jar;%directory%security/lib/iaik_jsse.jar;%directory%security/lib/iaik_smime.jar;%directory%security/lib/iaik_ssl.jar;%directory%security/lib/w3c_http.jar;%CLASSPATH%;
Set commandoption1=start

SAPAdapterService.exe -install %serviceName% %jvmdllPath% %directory% -jvmoptions %jvmoption1% %jvmoption2% -commandoptions %commandoption1%

EndLocal

:eof

Best Regards

Alex

0 Kudos

Hi Alex,

Maybe there's something wrong with the script you're using. You can try again with the following example:

@echo off

echo --------

echo install_service.bat: Batch-Script to install the SAP AdapterEngine as a Service 

echo Usage:   install_service.bat [ServiceName] [JavaVM]

echo Example: install_service.bat SAPAdapterEngine C:\j2sdk1.4.2_01\jre\bin\client\jvm.dll

echo --------

if "%1" == "" goto eof

if "%2" == "" goto eof

SetLocal

set directory=%~dp0

Set serviceName=%1

Set jvmdllPath=%2

Set jvmoption1=-Xmx128m

Set jvmoption2=-Djava.class.path=%directory%com.sap.aii.af.lib.mod.jar;%directory%com.sap.aii.af.sdk.jar;%directory%com.sap.aii.utilxi.core.jar;%directory%com.sap.aii.utilxi.server.jar;%directory%com.sap.exception.facade.jar;%directory%com.sap.xi.technical.adapter.mod.jar;%directory%com.sap.xpi.util.rb.jar;%directory%httpclient.jar;%directory%guidgenerator.jar;%directory%sapxmltoolkit.jar;%directory%logging.jar;%directory%lcr.jar;%directory%servlet.jar;%directory%jarm.jar;%CLASSPATH%;

Set commandoption1=start

SAPAdapterService.exe -install %serviceName% %jvmdllPath% %directory% -jvmoptions %jvmoption1% %jvmoption2% -commandoptions %commandoption1%

EndLocal

:eof

Regards,

Daniel

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Though windows 7 supports both 32 and 64 bit applications.  I think you might need to use Jdk 1.5+  to support 64 bit OS and see how that helps.