Ou : tar -cJf openjdk-jdk-1.8.0u265-x64.tar.xz openjdk-jdk-1.8.0u265-x64/. ^^ Mais, oui, les options de tar sont pénibles à retenir. :-
tar -cJf openjdk-jdk-1.8.0u265-x64.tar.xz openjdk-jdk-1.8.0u265-x64/
tar