[Operation and maintenance experience] Apache Directory cannot find the solution to the java path

Table of contents

What is Apache Directory?

Description of the problem

Solution steps

Summarize


This article is because I did not find similar problems and articles on the Internet, so I can only rely on myself to solve it. Now that I have solved it, I should share it, hoping to help friends in need.

What is Apache Directory?

Friends who have used LDAP or ADS probably know this tool, but few people usually use it. By chance, it happens that I will often deal with LDAP in the future, so I learned a little bit. People who often read my articles know that I personally like to define a tool in one sentence, so Apache Directory is a visual tool for maintaining LDAP.

If you want to know more, and your English is not bad, you can refer to this website: Introduction to Apache Directory

Description of the problem

ApacheDirectory has already been installed on a computer and can be used. However, considering some recent events, I may not be working in the office, so I also planned to make a copy on the notebook, but something went wrong. As shown in the picture:

Experienced friends know that this is because the java JDK cannot be found. At first I thought that the JDK was not installed on the notebook, but I found that this is not the problem. JDK has been installed very early:

Solution steps

  1. So, first of all, I suspected that the JDK version was too long, so I went directly to the official website to download the JDK. The download process was very simple, but there was a strange phenomenon: when the JDK was downloaded, it was very slow at the beginning, only 3K/S, and later found that the download Automatically interrupted. Then click to download again, and suddenly found that the speed suddenly changed to 300K/S, 80M, and it was downloaded in a few minutes. I don't know if you have found this problem on the official website?
  2. Uninstall the old version of JDK and install the new version of JDK, but it still doesn't work, the same error.
  3. I feel that the idea is wrong. After checking the error message, I found that the problem is something wrong with the parameters in the path? After careful comparison, it was found that there was an extra java path in the path, pointing to another non-existing path (probably caused by manual modification of the path in the old version of java version), and it was deleted as expected, only the one in the figure below was retained Default java path.
  4. Immediately re-run ApacheDirectory, the result is still an error? ! In doubt, I accidentally double-clicked the Apache Directory to run, but I didn't expect it to succeed! It seems that the path is probably also cached.

Summarize

The above picture is the correct way to open ApacheDirectory, just create a new connection.

After solving the problem, looking back, I still made a small mistake and wasted time. You should check the parameters in the path for the first time instead of reinstalling the JDK. Make a special note to avoid making similar thinking mistakes next time.

Finally, I would like to say that Apache Directory is a green software, which I like very much.

Guess you like

Origin blog.csdn.net/hehuii/article/details/128078991