2007 Feb 12 12:42 PM
Hi,
Has anybody created java web start application which connects to sap (by using sapjco.jar)?
My compiled application works correctly when I open it directly by pressing demo.jar (sapjco.jar is in appropriate directory), but when I've created .jnlp file which is responsible for calling my application, the error during calling method addClientPool is thrown. I am pretty sure that it occurs, because the application (in java web start version can't find sapjco.jar). I checked the file many times and it seems to be correct.
Did anybody face similar problem?
Pls help me if u know anything about that.
I list my .jnlp file below (quite a lot of code is in comment, so i suggest to focus on <resources>):
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for SwingSet2 Demo Application -->
<jnlp spec="1.2+"
codebase="file:."
href="demo.jnlp">
<information>
<title>JBapi Connector - demo 1</title>
<vendor>Wapice - [email protected]</vendor>
<!--
<homepage href="docs/help.html"/>
-->
<description>SwingSet2 Demo Application</description>
<description kind="short">A demo of the capabilities
of the Swing Graphical User Interface.</description>
<!--
<icon href="images/swingset2.jpg"/>
<icon kind="splash" href="images/splash.gif"/>
-->
<offline-allowed/>
<!--
<association mime-type="application-x/swingset2-file" extensions="swingset2">
<shortcut online="false">
<desktop/>
<menu submenu="My Corporation Apps"/>
</shortcut>
-->
</information>
<information os="linux">
<title> SwingSet2 Demo on Linux </title>
<!--
<homepage href="docs/linuxhelp.html">
-->
</information>
<!--
<security>
<all-permissions/>
</security>
-->
<resources>
<j2se version="1.2+"/>
<jar href="demo.jar" main="true"/>
<jar href="sapjco.jar"/>
</resources>
<application-desc main-class="com.wapice.connector.JBapiConnector"/>
</jnlp>
BR,
Rafal
Hi,
Has anybody created java web start application which connects to sap (by using sapjco.jar)?
My compiled application works correctly when I open it directly by pressing demo.jar (sapjco.jar is in appropriate directory), but when I've created .jnlp file which is responsible for calling my application, the error during calling method addClientPool is thrown. I am pretty sure that it occurs, because the application (in java web start version can't find sapjco.jar). I checked the file many times and it seems to be correct.
Did anybody face similar problem?
Pls help me if u know anything about that.
I list my .jnlp file below (quite a lot of code is in comment, so i suggest to focus on <resources>):
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for SwingSet2 Demo Application -->
<jnlp spec="1.2+"
codebase="file:."
href="demo.jnlp">
<information>
<title>JBapi Connector - demo 1</title>
<vendor>Wapice - [email protected]</vendor>
<!--
<homepage href="docs/help.html"/>
-->
<description>SwingSet2 Demo Application</description>
<description kind="short">A demo of the capabilities
of the Swing Graphical User Interface.</description>
<!--
<icon href="images/swingset2.jpg"/>
<icon kind="splash" href="images/splash.gif"/>
-->
<offline-allowed/>
<!--
<association mime-type="application-x/swingset2-file" extensions="swingset2">
<shortcut online="false">
<desktop/>
<menu submenu="My Corporation Apps"/>
</shortcut>
-->
</information>
<information os="linux">
<title> SwingSet2 Demo on Linux </title>
<!--
<homepage href="docs/linuxhelp.html">
-->
</information>
<!--
<security>
<all-permissions/>
</security>
-->
<resources>
<j2se version="1.2+"/>
<jar href="demo.jar" main="true"/>
<jar href="sapjco.jar"/>
</resources>
<application-desc main-class="com.wapice.connector.JBapiConnector"/>
</jnlp>
BR,
Rafal
2007 Feb 12 1:24 PM
2007 Feb 13 11:57 AM
Problem solved.
Explanation by Denis:
"
Maybe you fotgot two dlls which are necessary for sapjco works?
Try to put:
<resources os="Windows">
<nativelib href="sapjcodll.jar"/>
</resources>
into your jnlp file and the sapjcodll.jar is a wrapper for the two dlls needed and you have to put them into the top level in the sapjcodll.jar.
Wish it helps.
Dennis
"
If you need an advice, just ask.
Br,
Rafal
null
2007 Apr 12 9:11 AM
2007 Jun 26 9:00 AM
Hi All,
If possible could any one mail me sapjco.jar file to me on my mail id [email protected]
I am stuck in get connected to the sap application.
Regards
Gautam
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |