diff options
author | Petr Mladek <pmladek@suse.cz> | 2011-03-30 14:49:41 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2011-03-30 14:49:41 +0200 |
commit | b2db4550ddc21b16d8b64a558d9dd0f578aed70c (patch) | |
tree | 00e5685796922ad2359ac249c1d6732f88a5f62e | |
parent | 25f6c8677810c8c6ccca9d4da6df9b47caeea759 (diff) |
jvmfwk-modified-javavendors-xml.diff: autodetect java (i#99619)
select the java automatically when the system javavendors.xml is modified
do not force to do it the user manually
-rw-r--r-- | jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx index c95a82fcf..9feee7251 100644 --- a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx +++ b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx @@ -82,12 +82,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) JavaInfo * pInfo = NULL; errcode = jfw_getSelectedJRE( & pInfo); - if (errcode == JFW_E_INVALID_SETTINGS) - { - fprintf(stderr,"javaldx failed. User must select a JRE from options dialog!"); - return -1; - } - else if (errcode != JFW_E_NONE) + if (errcode != JFW_E_NONE && errcode != JFW_E_INVALID_SETTINGS) { fprintf(stderr,"javaldx failed! \n"); return -1; |