# Try it buttons for compiling multiple files

**URL:** <https://community.codio.com/t/try-it-buttons-for-compiling-multiple-files/29>\
**Category:** Misc. Tips, Tricks and Questions\
**Created:** [February 3, 2022, 9:48pm UTC](https://community.codio.com/t/try-it-buttons-for-compiling-multiple-files/29 "2022-02-03T21:48:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjason](https://yyz2.discourse-cdn.com/flex028/user_avatar/community.codio.com/sjason/32/13_2.png) [@sjason](https://community.codio.com/u/sjason)\
**Post date:** [February 3, 2022, 9:48pm UTC](https://community.codio.com/t/try-it-buttons-for-compiling-multiple-files/29/1 "2022-02-03T21:48:59Z")

</div>

In this example there are 3 Java files to compile and then you run them by with the command “java Main”.

If you have more than three files to compile you have to change line 2 to add more variables and then renumber line 3.

Create a file in guides - bg.sh with the following:

```auto
#!/bin/bash
$1 $2 $3 $4 
$5 $6

```

This is the Try it syntax for the guide:

```auto
{Try it | terminal}(sh .guides/bg.sh javac GenericList.java BinaryFormatException.java Main.java java Main)

```
