Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

sapjco.jar and java webstart (jnlp)

Former Member
0 Likes
596

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

4 REPLIES 4
Read only

Former Member
0 Likes
518

Is anybody able to help somehow?

Br,

Rafal

Read only

Former Member
0 Likes
518

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

Read only

Former Member
0 Likes
518

solved

Read only

Former Member
0 Likes
518

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