Reputation: 1101
I am confused about the instruction when using Kinesis Video Stream
Run DemoAppMain.java in ./src/main/demo with JVM arguments set to
-Daws.accessKeyId={YourAwsAccessKey} -Daws.secretKey={YourAwsSecretKey} -Djava.library.path={NativeLibraryPath}
for non-temporary AWS credential.
How to set these arguments in IntelliJ IDEA?
Upvotes: 71
Views: 222511
Reputation: 77
You can add multiple VM arguments
-Dserver.port=8999 -Dapi.prediction.base.url=https://ags-qa-predictions.azur -Dlogging.level.org.springframework.data.mongodb.core.MongoTemplate=DEBUG -Dspring.jpa.show-sql=true -Dspring.profiles.active=prod
Upvotes: 1
Reputation: 107
go to edit configuration and put
-Dserver.port=9006(required port no)
in the VM options: and apply and run, it will work
Upvotes: 1
Reputation: 29680
Intellij allows you to specify two types of arguments when running a Java program:
String[]
parameter of your main method when the program begins.In the above image, we specify a single system property (under VM Options) named example
that has a value of Hello World!
.
We also specify two program arguments (under Program Arguments): Hello
and World!
.
After clicking either the Apply
button or the OK
button, we can run the following program:
public static void main(String[] args) {
System.out.println(System.getProperty("example"));
System.out.println(args[0] + " " + args[1]);
}
The output of this program is as follows:
Hello World!
Hello World!
To create a Run/Debug Configuration, see: Create and Edit Run/Debug Configurations
Upvotes: 111