Building Java with 3rd Party Dependencies without an IDE

preview_player
Показать описание
In this demonstration, we are challenged with the task of using pure Java, that is, building a Java application that uses third party dependencies (jar files) from the command-line.
We will be starting from scratch and using JDK 18.0.2 on the Windows Operating System. We will be using command-line tools such as java, javac, jar, vim, cURL, and more.
The application that we will be building will send a RESTful API request to an endpoint that returns a JSON array (see link below), save that to a json file, read the file,
use the JSON Simple packages from a Maven repository (see below) to parse the JSON payload, and output the parsed key pair values to the console. The JSON payload contains
information about current bitcoin prices. We will then design a batch script that can compile and run our program using the commands executed previously. This demonstration is
for educational use. I don't mind using IDEs as much anymore. They were hard for me to learn at first, but I have moved passed the learning curve of novel IDEs in recent years.
I practice the manual labor on the back end as demonstrated in this video primarily for understanding how the IDEs work under the hood and to use them more effectively in the workplace.
My Windows machine has many Linux tools enabled (rm, mv, ls, vim) in the environment set-up. These executables live in a CygWin installation in my Program Files directory.

Maven JSON Simple (Third Party Package) Repo

Coindesk BTC API endpoint

Geeks for Geeks JSON Parser in Java Tutorial

Oracle JDK 18.0.2 Installer

Oracle JDK 18.0.2 Installer Tutorial

Cygwin Get that Linux feeling - on Windows

Visit my personal website

For more tutorials and teaching prompts,
watch Teaching Prompts on Topics in Computer Science, Mathematics, and More by Cruz Macias
YouTube Playlist

Content Disclaimer and Limitation of Liability Statement:

Рекомендации по теме
Комментарии
Автор

To save a file in vim use :w to write the file. To exit vim, either use :q to quit or :qa! which will close all buffers and not save any changes made since the last write. To simply quit without saving, use :q!.

cruzmacias
visit shbcf.ru