# Unexpected token error

**URL:** https://forum.codewithmosh.com/t/unexpected-token-error/10094
**Category:** Java
**Created:** [January 20, 2022, 7:44pm UTC](https://forum.codewithmosh.com/t/unexpected-token-error/10094 "2022-01-20T19:44:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Lppur3ps3](https://avatars.discourse-cdn.com/v4/letter/l/bc8723/32.png) [@Lppur3ps3](https://forum.codewithmosh.com/u/Lppur3ps3)
#### Post date: [January 20, 2022, 7:44pm UTC](https://forum.codewithmosh.com/t/unexpected-token-error/10094/1 "2022-01-20T19:44:39Z")

</div>

Hi I’m following the Java fundamental course and on video 4 and I’m getting this error:

 ![error](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/5/5368b6f9f61e797d52f0170377d00fac235e1b3e.jpeg)

What’s going on?

This is being run in the terminal

---

<div class="post-metadata">

### Author: ![SAM](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/sam/32/167_2.png) [@SAM](https://forum.codewithmosh.com/u/SAM)
#### Post date: [January 21, 2022, 6:02am UTC](https://forum.codewithmosh.com/t/unexpected-token-error/10094/2 "2022-01-21T06:02:10Z")

</div>

Don’t type the `$` - it’s part of Mosh’s prompt. The command is `javac` not `$javac`.
