src/jdk.jpackage/linux/native/jpackageapplauncher/launcher.cpp
branchJDK-8200758-branch
changeset 58302 718bd56695b3
parent 57106 ea870b9ce89a
equal deleted inserted replaced
58301:e0efb29609bd 58302:718bd56695b3
    55     void* library = NULL;
    55     void* library = NULL;
    56 
    56 
    57     {
    57     {
    58         std::string programPath = GetProgramPath();
    58         std::string programPath = GetProgramPath();
    59         std::string libraryName = dirname((char*)programPath.c_str());
    59         std::string libraryName = dirname((char*)programPath.c_str());
    60         libraryName += "/libapplauncher.so";
    60         libraryName += "/../lib/libapplauncher.so";
    61         library = dlopen(libraryName.c_str(), RTLD_LAZY);
    61         library = dlopen(libraryName.c_str(), RTLD_LAZY);
    62 
    62 
    63         if (library == NULL) {
    63         if (library == NULL) {
    64             fprintf(stderr, "dlopen failed: %s\n", dlerror());
    64             fprintf(stderr, "dlopen failed: %s\n", dlerror());
    65             fprintf(stderr, "%s not found.\n", libraryName.c_str());
    65             fprintf(stderr, "%s not found.\n", libraryName.c_str());