How to set ClassPath of Java?

Hi, there. I’m new to Linux, especially to Manjaro. I’m learning Java. And I just wanna set ClassPath. There are a lot of content to set it on Google. But they are not for manjaro. Please help me out. Now I don’t have ClassPath for Java on my pc. How can I create it, use it and then modify it?
If there’s a complete guide about it. Please share with me.

You mean something like path and classpaths ?

2 Likes

I’ve marked the below answer as the solution to your question as it is by far the best answer you’ll get.

However, if you disagree with my choice, please feel free to take any other answer as the solution to your question or even remove the solution altogether: You are in control! (I just want to avoid even more subjective opinions being posted and confusing you even more)

:innocent:
P.S. In the future, please don’t forget to come back and click the 3 dots below the answer to mark a solution like this below the answer that helped you most :
Solution
so that the next person that has the exact same problem you just had will benefit from your post as well as your question will now be in the “solved” status.

1 Like