As a new JBang user, I need to understand how to manage dependencies and Java versions for my scripts. Specifically, explain how JBang handles dependencies, how to specify a particular Java version for a script, and how to install applications using JBang. Also, provide two common questions and their answers from the FAQ section that would be helpful for a beginner.
Navigate to 'jbang.dev/documentation/'. Click on the 'Dependencies' link in the navigation menu. Read the content to understand how JBang handles dependencies. Click on the 'Java Versions' link in the navigation menu. Read the content to understand how to specify a Java version. Click on the 'Install Apps' link in the navigation menu. Read the content to understand how to install applications. Click on the 'FAQ' link in the navigation menu. Identify and extract two common questions and their answers from the FAQ section that would be useful for a beginner. Synthesize all collected information into a concise answer.
The agent successfully navigates to the 'Dependencies' page and explains that JBang automatically manages dependencies by inferring them from imports or by using explicit `@Mvn` or `@Grab` annotations. The agent successfully navigates to the 'Java Versions' page and explains how to specify a Java version using the `@Java` annotation or by setting it in a `jbang-catalog.json` file. The agent successfully navigates to the 'Install Apps' page and explains that JBang can install scripts as native executables or shell scripts, making them available on the system's PATH. The agent successfully navigates to the 'FAQ' page and provides two relevant questions and their answers for beginners (e.g., 'Do I need to install Java to use JBang?' and 'How do I update JBang?').