Open a path with Desktop.open() from java on ubuntu (linux)

后端 未结 4 2125
星月不相逢
星月不相逢 2021-02-15 10:09

From my application written in java I want to open a folder, using the operating system file explorer.

I use Desktop.open(new File(path))

This works fine on wind

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-15 10:35

    I was running into the same issue and decided to give Java 7 a whirl. I'm running java version "1.7.0_147-icedtea" on Ubuntu 11.10_x64 and am able to open file locations in Nautilus quite happily now.

提交回复
热议问题