Ready to Start Your Career?

Juliar - 2018 Guide to Running Juliar on your computer

Rattar 's profile image

By: Rattar

January 10, 2018

Hey Everyone,Happy New Year! We've been hard at work working on both Juliar.Future and Juliar BLUE that we decided to merge the two projects into one.The new Juliar inherits the new clean editor from Juliar BLUE. This means that Juliar doesn't depend on JavaFX anymore to run GUI. Instead, Juliar now uses browser to render the interface. (If you are interested in helping improving it, let us know). NOTE: that this is just GUI. The actual logic is done inside Juliar.jar.The new Juliar inherits advanced bug reporting system from Juliar.Future. This means that we can easily find more errors in code and fix them much quicker.I decided to write a new Juliar guide for people that want to use Juliar but are used to old system.When you download Juliar, you might see two files. You only need one file! One file is a juliarlib.jar. It is used if you want to create an Android application using Juliar or want to do something that uses Juliar (it does not include GUI and direct compiler). The Juliar.jar is the main application file that you want to use. Hence, you can delete juliarlib.jar if you want to. Double click juliar.jar to launch it. This should work on any operating system as long as you have Java 1.8 or later installed and that you have a web browser. NOTE: For some linux users double clicking "Juliar.jar" may result in opening the file as an archive. If you experience this, try running Juliar.jar from terminal and using "java -jar Juliar.jar" to run. It's important to note that it's not necessary to launch GUI to interpret or compile Juliar. You can directly compile files using "Juliar.jar" by specifying a file that you want to interpret / compile. If you specify one input for Juliar.jar in terminal, Juliar.jar will interpret the file and output results to a terminal. If you want to save results to a file, just "pipe" using ">". If you specify two inputs, Juliar.jar will compile the file. The first input is the filename that you want to use for compiling (usually denoted with .jrl extension), the second input is the filename that Juliar will call the file once the application is compiled into executable. This is fairly advanced topics. So I've written this guide to allow anyone to use Juliar (without any background experience in programming). So let's double click on "Juliar.jar" This will open up Juliar editor in browser.(If it doesn't try going to in your browser)This is how it should look like:Once the editor launches, you can write the code to your left. For this tutorial, we will just write a hello world program.Type in the following:function main() = {printLine("Hello First Name Last Name");}Replace "First Name" and "Last Name" with your First Name and Last Name.Next, run the application by either going to the menu "Run" and clicking "Interpret" or running the green button in the center of the screen as shown below:This should display the output! You should see on the right side "Hello FirstName LastName" or whatever you put into the code.There is a huge difference between previous version of Juliar and this new version. Juliar continues to run in the background until you explicitly tell it to exit by going to "File"->"Exit" as shown below. The advantage of this is that it allows you to run multiple instances of Juliar without creating a new process. It also allows one to run complex programs without worrying about closing the instance by accident. Therefore, if you need to exit Juliar, just open up "". After you click it, the page should refresh. If Juliar exited, the page should not show up anymore.We really hope that you guys enjoy the new version of Juliar.Thank you for using and supporting Juliar.Please visit us at https://juliar.organd don't forget to join our slack channel at Thank you!
Schedule Demo