DEV Community

Cover image for JADE: NEW ON JADE ? How to get JADE up and running on your machine PART 1.
NEEDTOCODEH24
NEEDTOCODEH24

Posted on

JADE: NEW ON JADE ? How to get JADE up and running on your machine PART 1.

level : Noob/New
Version : Windows 10/11
language : java 17.0.10 (jade Framework 4.6.0)

Download and install JADE:

Before moving to anything else, just so you can create any agent you like, keep in mind that building one purely in code is 100% possible, but it's not exactly "time-friendly". You'll be coding everything from scratch and you'll quickly realize it'll eat up your whole week. Unless you're at a hackathon where the challenge is to build the best agent using only raw code... people like that are just built different, haha!

GET TO THE POINT NOW !

Now that you're here, we're going to take it step-by-step. I'll show you how to download and install the JADE framework so you can start building any agent you want. You can always check PART2: Visit part 2

1: First, just hop onto whatever browser you use and search for "JADE Framework: Jade Site.", That's their official spot.

This is the official site where you can download and install it:"https://jade.tilab.com"

2: Click on the first link.

3: Just scroll down until you see the Download link in the bottom right corner "Download Jade version 4.6.0".

showing you exactly where you click on, to download jade version 4.6.0 right bottom

4: Once you click that, it'll take you to another page where they ask you to accept the license terms. Just look for "Continue" and you're good to go.

5: The license pops up next, and you've got two choices, haha: either you actually read the whole thing, or you just scroll straight to the bottom and hit "Yes, I agree." Honestly, scrolling is the ultimate time-saver, but hey, maybe we should read these things sometimes!

6: Then it'll redirect you to a bunch of tables, but the only one we actually care about is the "JADEbin" one.

The first table that will appear to you containing all kinds of jade

7: Go the second one "JADEBin", and click on it.

8: The download should kick off now. Once it's done, just grab it from your browser's download folder and open it up.

9: Now, click the folder icon next to the file, that'll take you straight to the exact location, which we're gonna need later..

10: Now there are two ways to unzip this archive file.
a. The easiest way is just to right click it, hit "Extract All", pick where you want your folder to live, and hit on "Extract" button.

b. Since the official site recommends us to use "jar xvf" by using the cmd, open the CMD line, then make sure java is installed :

`java -version`
Enter fullscreen mode Exit fullscreen mode

Normally, it should show you the version you're working with.

Then, copy the file path of that archive. In our case, it should look something like this, just make sure you use your own actual location

cd C:\Program Files\JADE-examples-4.6.0.zip
Enter fullscreen mode Exit fullscreen mode

Once you hit enter, let's get to actually unzipping the file.

jar xvf JADE-examples-4.6.0.zip
Enter fullscreen mode Exit fullscreen mode

You will see many files scrolling in the terminal.

Once it's finished, your archive turns into a regular folder. The name should be something like "jade" or "Jade-BIN-4.6.0" in my case, it was just "jade".

Personally, I way prefer the first method, but it's totally up to you.

11: Now that everything's set up, just follow this file structure:

yourfolderUnzipped --> jadeFolder -->libFolder
Enter fullscreen mode Exit fullscreen mode

12: Now, just click the address bar and copy the path.

13: Open a new CMD
.
14: Now, you just need to hop into that directory using the "cd" command and the path you just copied. It should look something like this:

cd C:\folders\JADE-bin-4.6.0\jade\lib
Enter fullscreen mode Exit fullscreen mode

15: Once you're in, you need to check if JADE is actually working. Just run this command:

java -cp jade.jar jade.Boot -gui 
Enter fullscreen mode Exit fullscreen mode

Hit enter and you'll see a bunch of files scrolling by. Once it stops, a window will pop up, that's your RMA GUI. If your firewall asks for permission, just hit "Allow" and you're good to go.

END

Now that everything's set up, CONGRATS!! You're all set to build any agent you want. If you're ready for the next step, go check out Part 2:
https://dev.to/needtoknow694/jade-new-on-jade-create-your-first-agent-while-using-your-cmd-part-2-56n5

if this Tutorial was helpful, don't forget to share it with your friends!

Thank you!

Note: don't forget to use your actual file path!.

rma: Remote Monitoring Agent.
-cp : Class Path.
jade.Boot: the main class to start JADE.
jade.jar: the core JADE framework packaged as a Java library.
jar xvf: to extract verbosely from this File.

Top comments (0)