Skip to content

Latest commit

 

History

History

jfuse-examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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.cryptomator.jfuse.linux.arm64,org.cryptomator.jfuse.linux.amd64 \
  -m org.cryptomator.jfuse.examples/org.cryptomator.jfuse.examples.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.cryptomator.jfuse.linux.arm64,org.cryptomator.jfuse.linux.amd64 \
  -m org.cryptomator.jfuse.examples/org.cryptomator.jfuse.examples.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.examples.WindowsMirrorFileSystem \
  C:/path/to/to-be-mirrored/dir M: