How do I use IntelliJ to browse and debug a read-only Java application installation?

There is a Java application installed on my machine for which I have jar files, source, and documentation. It is installed by the adminstrator so I do not have write permissions for the directories that contain it. I don't need to build this application, but I would like to use the IDE to browse the source and run the debugger. I can't figure out how to create an IntelliJ project that allows me to do this. If I try to create project from source, IntelliJ wants to write its *.iml files in the directory to which I don't have write permissions.

How do I create a project to browse and debug a Java application for which I don't have write permissions?

2 comments
Comment actions Permalink


Select "Create project from scratch" instead.
Select a "Project files location" in another writable directory.
Select the read-only folder as content root.
Select a module file location in the writable directory.
In the content root mark the source folder as source.

You can select locations for project and module files somewhere else and can later specify
On 09.09.2011 23:05, William McNeill wrote:

There is a Java application installed on my machine for which I have jar files, source, and documentation. It is installed by the adminstrator so I do not have write permissions for the directories that contain it. I don't need to build this application, but I would like to use the IDE to browse the source and run the debugger. I can't figure out how to create an IntelliJ project that allows me to do this. If I try to create project from source, IntelliJ wants to write its *.iml files in the directory to which I don't have write permissions.

>

How do I create a project to browse and debug a Java application for which I don't have write permissions?

>

---
Original message URL: http://devnet.jetbrains.net/message/5318959#5318959


0
Comment actions Permalink

Thanks. That worked.

Note that if you want to debug libraries that you aren't building, you should uncheck the "Before launch->Make" box in the Run configuration and ensure that the compiled libraries are added as dependencies in the Project Settings.

0

Please sign in to leave a comment.