summaryrefslogtreecommitdiffstats
path: root/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx')
-rw-r--r--jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx
index 8649bd121b89..0c5e26398d9e 100644
--- a/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx
+++ b/jvmfwk/plugins/sunmajor/javaenvsetup/javaldx.cxx
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <iostream>
#include "sal/main.h"
#include "sal/types.h"
#include "osl/thread.h"
@@ -101,9 +102,9 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv)
OString sPaths = getLD_LIBRARY_PATH(aInfo->arVendorData);
fprintf(stdout, "%s\n", sPaths.getStr());
}
- catch (const std::exception&)
+ catch (const std::exception& e)
{
- fprintf(stderr,"javaldx failed!\n");
+ std::cerr << "javaldx failed! " << e.what() << std::endl;
return -1;
}