jFUSE Examples
Assuming you have built the parent project (mvn package), you can run these examples directly from the shell.
These examples require JDK 22 or newer. You may want to adjust paths, such as the java.library.path.
Running the hello world example:
$JAVA_HOME/bin/java \
-Djava.library.path=/usr/local/lib \
-p target/classes:target/mods \
--enable-native-access=org.cryptomator.jfuse.mac,org.cryptom ator.jfuse.linux.arm64,org.cryptomator.jfuse.linux.amd64 \
-m org.cryptomator.jfuse.examples/org.cryptomator.jfuse.example s.HelloWorldFileSystem \
/path/to/mountpoint
-Djava.library.path=/usr/local/lib \
-p target/classes:target/mods \
--enable-native-access=org.cryptomator.jfuse.mac,org.cryptom ator.jfuse.linux.arm64,org.cryptomator.jfuse.linux.amd64 \
-m org.cryptomator.jfuse.examples/org.cryptomator.jfuse.example s.HelloWorldFileSystem \
/path/to/mountpoint
Running the POSIX mirror example:
$JAVA_HOME/bin/java \
-Djava.library.path=/usr/local/lib \
-p target/classes:target/mods \
--enable-native-access=org.cryptomator.jfuse.mac,org.cryptom ator.jfuse.linux.arm64,org.cryptomator.jfuse.linux.amd64 \
-m org.cryptomator.jfuse.examples/org.cryptomator.jfuse.example s.PosixMirrorFileSystem \
/path/to/to-be-mirrored/dir /path/to/mountpoint
-Djava.library.path=/usr/local/lib \
-p target/classes:target/mods \
--enable-native-access=org.cryptomator.jfuse.mac,org.cryptom ator.jfuse.linux.arm64,org.cryptomator.jfuse.linux.amd64 \
-m org.cryptomator.jfuse.examples/org.cryptomator.jfuse.example s.PosixMirrorFileSystem \
/path/to/to-be-mirrored/dir /path/to/mountpoint
Running the Windows mirror example:
$JAVA_HOME/bin/java \
-Djava.library.path=/usr/local/lib \
-p target/classes:target/mods \
--enable-native-access=org.cryptomator.jfuse.win \
-m org.cryptomator.jfuse.examples/org.cryptomator.jfuse.example s.WindowsMirrorFileSystem \
C:/path/to/to-be-mirrored/dir M:
-Djava.library.path=/usr/local/lib \
-p target/classes:target/mods \
--enable-native-access=org.cryptomator.jfuse.win \
-m org.cryptomator.jfuse.examples/org.cryptomator.jfuse.example s.WindowsMirrorFileSystem \
C:/path/to/to-be-mirrored/dir M: