Uploaded August 2019 | Updated November 2026, 3 hours ago
Lets explore how you can compile a Java file from scratch without an IDE or other tool. All you will need to be able to do this is the Java Development Kit (JDK). This process is admittedly not one you'll want to do often, but is nice to know. I find understanding what my tools are doing behind the scenes and how the platform I'm working on works extremely useful when working with them.
This process uses two programs. `javac` is the Java Compiler which compiles a `.java` file from the code you have written into java's intermediary language - the Java Byte Code. Java byte code is what is actually read by your computer. Once we have Java Byte Code we will need something that can run it. This is where the `java` command comes in. Given a `.class` file (the compiled byte code file) the `java` command can run that program in the Java Runtime Environment. This is what makes your code actually run!
There is a lot more possibilities behind how all of this can work, but the goal here is to cover the basics of what's going on and step through how to do them. If you want to explore the more complex parts of this like building `.jar` files and running them there is plenty of documentation online to get you started (or leave a comment and I'll see if I can get to it!).
In order to run and your java class you will need to use `javac` to compile the java file and then run the compiled byte code using `java`. If your java class was named `test.java` you would run this:
```sh
javac test.java
# This will output test.class
# Now we run the class we compiled
java test
```
You'll need to a version of the JDK installed to run this code. If you have installed the JDK but do not see `java` or `javac` as options in your command-line you may need to add the JDK to your `PATH`. Your systems `PATH` is used to scan for binary commands inside your shell. How you modify this will depend on your operating system.
Join the World of Zero Discord Server: discord.gg/hU5Kq2u
Lets explore how you can compile a Java file from scratch without an IDE or other tool. All you will need to be able to do this is the Java Development Kit (JDK). This process is admittedly not one you'll want to do often, but is nice to know. I find understanding what my tools are doing behind the scenes and how the platform I'm working on works extremely useful when working with them.
This process uses two programs. `javac` is the Java Compiler which compiles a `.java` file from the code you have written into java's intermediary language - the Java Byte Code. Java byte code is what is actually read by your computer. Once we have Java Byte Code we will need something that can run it. This is where the `java` command comes in. Given a `.class` file (the compiled byte code file) the `java` command can run that program in the Java Runtime Environment. This is what makes your code actually run!
There is a lot more possibilities behind how all of this can work, but the goal here is to cover the basics of what's going on and step through how to do them. If you want to explore the more complex parts of this like building `.jar` files and running them there is plenty of documentation online to get you started (or leave a comment and I'll see if I can get to it!).
In order to run and your java class you will need to use `javac` to compile the java file and then run the compiled byte code using `java`. If your java class was named `test.java` you would run this:
```sh
javac test.java
# This will output test.class
# Now we run the class we compiled
java test
```
You'll need to a version of the JDK installed to run this code. If you have installed the JDK but do not see `java` or `javac` as options in your command-line you may need to add the JDK to your `PATH`. Your systems `PATH` is used to scan for binary commands inside your shell. How you modify this will depend on your operating system.
Join the World of Zero Discord Server: discord.gg/hU5Kq2u

![Sending Real-Time Messages to Unity from a Blazor Website - SignalR in Unity - Part 3
Lets complete our SignalR in Unity experiment by adding a Blazor Website to it. This will allow us to use a browser to send messages directly to Unity to create updates instead of either needing to install a Unity game or run a console app. Well quickly cover some of the components in a Blazor website as well as how some of the architecture works.
Well take a quick detour to chat about Blazor Web Assembly (Blazor WASM) vs Blazor Server because I completely forgot what project template I chose when setting up this test project. 😅
The architecture of our app looks like this:
```mermaid
graph LR
A[Browser App] ˃ B[Blazor Server]
B ˃A
B ˃ C{ASP.NET SignalR Server}
C ˃|Sends Updates to| D[Unity]
E[Console App] ˃ C
```
You can create a new Blazor project using either:
### Blazor Web Assembly
```sh
dotnet new blazorwasm
```
or
### Blazor Server
```sh
dotnet new blazorserver
```
If you want to learn more about Blazor you can get started here: https://aka.ms/getstartedwithblazor
***
If you would like to get started learning SignalR you can learn more at https://aka.ms/getstartedsignalr
My previous SignalR series shared at the [Microsoft Reactor](https://www.youtube.com/c/MicrosoftReactor1/) where we created an interactive canvas you could collaboratively draw on with the rest of the world!
1. [Building Real-Time Web Apps with SignalR](https://www.youtube.com/watch?v=k5rdhYj6TB8)
2. [Connecting a Web App to SignalR](https://www.youtube.com/watch?v=c0zmYjQ8KWA)
3. [Creating a Real-Time Web Canvas](https://www.youtube.com/watch?v=hgq1CYEJg_Q)
You can see some of the other content I have planned outside this channel in the Microsoft Reactor (and even come to our in-person events) at the [Microsoft Reactor San Francisco Meetup Page](https://www.meetup.com/Microsoft-Reactor-San-Francisco/).
***
Join the World of Zero Discord Server: https://discord.gg/hU5Kq2u Sending Real-Time Messages to Unity from a Blazor Website - SignalR in Unity - Part 3](https://i.ytimg.com/vi/6yCrnWcKvpU/mqdefault.jpg)








