on 02-12-2007 12:21 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 - rako@wapice.com</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>
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
by the way, you may also want to load the libraries explicitly by adding the following lines into ur application.
static {
System.loadlibrary("librfc32")
System.loadlibrary("sapjcorfc");
}
If this helps, please reward points.
Dennis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.