on 08-15-2010 5:12 PM
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!
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()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.