The result of the example above should look as follows:
If you cannot successfully execute this example program, ensure that the system and user information contains the correct values. Also check that the Class Path contains the SAP JCo directory and the actual example program. If it still does not work, there may be a network or configuration problem. If this is the case, inform your SAP NetWeaver administrator.
For the complete example program for establishing a direct connection, see: