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

Java Runtime Environment

Former Member
0 Likes
365

Can I determine within an ABAP program the current

version of the Java Runtime Environment of the

client workstation, if any?

I need to determine whether the user has version

1.4 installed, because it is needed to support

attaching a file.

1 ACCEPTED SOLUTION
Read only

athavanraja
Active Contributor
0 Likes
328

you can read the system registry from ABAP

for example to read the excel class id i use

CALL METHOD cl_gui_frontend_services=>registry_get_value
  EXPORTING
    root                 = '0'
    key                  = 'Excel.ApplicationClsid'
*    VALUE                =
  IMPORTING
    REG_VALUE            = 'here you will get the class id
*  EXCEPTIONS
*    GET_REGVALUE_FAILED  = 1
*    CNTL_ERROR           = 2
*    ERROR_NO_GUI         = 3
*    NOT_SUPPORTED_BY_GUI = 4
*    others               = 5
        .
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

similarly you can read the jre version

Regards

Raja

1 REPLY 1
Read only

athavanraja
Active Contributor
0 Likes
330

you can read the system registry from ABAP

for example to read the excel class id i use

CALL METHOD cl_gui_frontend_services=>registry_get_value
  EXPORTING
    root                 = '0'
    key                  = 'Excel.ApplicationClsid'
*    VALUE                =
  IMPORTING
    REG_VALUE            = 'here you will get the class id
*  EXCEPTIONS
*    GET_REGVALUE_FAILED  = 1
*    CNTL_ERROR           = 2
*    ERROR_NO_GUI         = 3
*    NOT_SUPPORTED_BY_GUI = 4
*    others               = 5
        .
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

similarly you can read the jre version

Regards

Raja