Discussion Overview
The discussion revolves around the ability to open and operate external programs, such as TextEdit or the Terminal, using Java on a Mac. Participants explore methods for launching these applications from Java code, addressing issues related to permissions and code syntax.
Discussion Character
- Technical explanation
- Exploratory
- Homework-related
Main Points Raised
- One participant inquires about the possibility of launching external programs from Java code on a Mac.
- Another participant suggests using the Runtime class's exec functions to achieve this and provides links to resources for further exploration.
- A participant reports encountering a "permission denied" error when attempting to run their code, which uses ProcessBuilder to launch an application.
- There is a clarification regarding the use of arguments in the ProcessBuilder code, indicating that the placeholder "myArg" may not be necessary unless intended as a parameter.
- Concerns are raised about the potential cause of the permission issue, with speculation that it may be related to the operating system rather than Java itself.
Areas of Agreement / Disagreement
Participants express uncertainty regarding the permission issue, and there is no consensus on how to resolve it. The discussion remains unresolved regarding the best approach to launch external applications and handle permissions on a Mac.
Contextual Notes
Participants note confusion over certain terms and concepts related to the Java documentation, which may affect their understanding and implementation of the solutions discussed.