cancel
Showing results for 
Search instead for 
Did you mean: 

Getting JCO version as text output

Former Member
0 Kudos

Hi,

I'm using JCo 3.0.5 as a connector between SAP and an application that I write.

I am looking for a way to verify that the JCo JAR that I use is the correct one.

When I run the command "java -jar sapjco3.jar" I get the JAR information in a window.

In order to verify the version I need the output as text to stdout so I can parse it.

Is there a way to accomplish that or this information is only available in a GUI window?

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

A quick look in the API documentation would've given you for example the following static method:

com.sap.conn.jco.JCo.getVersion()

Note that also the About class used when running the jar can provide the information as text output, e.g. you can use

java -jar sapjco3.jar -stdout

or alternatively from Java code

com.sap.conn.jco.About.getFullVersion()