Mounting a Filesystem

See Also

To work with filesystems that were created outside of the IDE, you must mount them in the IDE. Likewise, for your project to run in the IDE, any libraries that your project depends on need to be mounted.

For Java applications, mounted directories must be mounted at the default package. The sources in the directories must be in packages corresponding to their position relative to the mount point. If a filesystem of Java sources is mounted at the wrong point, the IDE cannot compile the sources. Other problems will also arise.

If you have a library that is in an archive file, you must mount the individual archive as a filesystem. If you mount a directory containing the archive file, the IDE does not recognize the classes in the archive file.

For example, if you have multiple source trees with the package root of each tree grouped together under one directory, you have to mount each package root separately. Observe the following structure:

src
    app
        com
            myapp 
                MyApp.java
    lib
        com
            mylib
                MyLib.java
Here app and lib are the package roots, and you cannot simply mount src. You have to mount app and lib separately.

If you want the classes from a JAR file to be included in the class path for applications you work with in the IDE, you must mount that JAR file individually as an archive file.

To mount a directory in the IDE:

  1. Choose File and choose Mount Filesystem.
  2. In the Choose Template page of the wizard, select the Local Directory node. Click Next.
  3. In the Select Directory page, browse to the directory you want and select that directory. Click Finish.

    You can select multiple directories by pressing Ctrl or Shift while selecting the directories.

To mount a JAR or zip archive in the IDE:

  1. Choose File and choose Mount Filesystem.
  2. In the Choose Template page of the wizard, select the Archive node. Click Next.
  3. In the Select Archive page, browse to the archive you want to mount and select that archive. Click Finish.

    You can select multiple files by pressing Ctrl or Shift while selecting the directories.

Tip The Source Editor has a code completion database, which stores information necessary for such features as Java code completion, Fast Import, and Fast Open. If you want these features to work for a mounted filesystem, you can add that filesystem to the code completion database. Right-click the filesystem's node and choose Tools and choose Update Code Completion Database.
See Also
Filesystems and Application Development
Opening a File not in a Mounted Filesystem
Changing the Mount Order of Filesystems
Specifying Files to Ignore in a Filesystem
Mounting a VCS Working Directory
Code Completion Database

Legal Notices