Run Java program from IntelliJ's Terminal

preview_player
Показать описание
Demo of running a simple Java application from inside IntelliJ's build in terminal. Also shows displaying command-line arguments.

Covers:
- Create an empty Java project
- Run the project via IntelliJ's build-in terminal
- Print all arguments
- Some possible errors
Рекомендации по теме
Комментарии
Автор

Literally the only clear explanation I could find online. Thank you very much for uploading.

emrebasaran
Автор

After spending 3hrs I got the solution from this Video... Thank Brain :)... Thank you very much for uploading..

mohammedibraheem
Автор

DUDE!!!! I never ever ever comment on videos but this is the video I have been searching for since Saturday (its Wednesday) I may just pass my job assessment because of you #GODBless

bloodfinder
Автор

👍Actually after making changes in your preferred editor you can build and run your program with the following command from your source directory (/src]): javac -d ../out && java -cp ../out ca.demo.terminal.DemoArgs

VANTYCSolutions
Автор

Thank you for your video. Clear explanation.

abrehamish
Автор

What about if I have more complicated path like:
D:\University\Head First Java\Head First\out\production\Head
With two files inside: DrumKit.class and DrumKitTestDrive.class with main()inside and object created from DrumKit.class ?

alexz
Автор

i am faccing probllem in terminal of intelliJ -
Cannot open Local Terminal
Failed to start [powershell.exe], pls help

aayushpandeyimtxlmzgsb
Автор

Hi my Inteleji idea is not reading image and audio files I enter all file location correctly but still it doesn't working maybe in my settings something changed you know how to fix it

sarvarmarimboyev
Автор

Hey, I've got an issue with the run part, I don't get an option to run my class, it just shows edit configurations

And I don't know how to go about it


Please could you help me

veermehta
Автор

it doesn't work for me. It says Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" oefening9 has been compiled by a more recent version of the Java Runtime (class file version 57.0), this version of the Java Runtime only recognizes class file versions up to 52.0. but Ive the newest version?!

jonasverkaap
Автор

thank you because this ide is really confusing coming out of JCreator lol

TheEpocHunter
Автор

Thank you! follow up question... I saw you build the project using intellij GUI but do you know how to do it using command line?

skellep