# Message error when trying to run java on node

**URL:** https://forum.codewithmosh.com/t/message-error-when-trying-to-run-java-on-node/16935
**Category:** Java
**Created:** [December 9, 2022, 11:35am UTC](https://forum.codewithmosh.com/t/message-error-when-trying-to-run-java-on-node/16935 "2022-12-09T11:35:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![YuriAmancio](https://avatars.discourse-cdn.com/v4/letter/y/e47c2d/32.png) [@YuriAmancio](https://forum.codewithmosh.com/u/YuriAmancio)
#### Post date: [December 9, 2022, 11:35am UTC](https://forum.codewithmosh.com/t/message-error-when-trying-to-run-java-on-node/16935/1 "2022-12-09T11:35:20Z")

</div>

Hi everyone,  
anyone knows why am I getting this error message when I try to run javascript on node using the terminal? Thanks

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/4/4bb3c1e892b9c33db6f022c23e72532f0490eb71.png)

---

<div class="post-metadata">

### Author: ![UniqueNospaceShort](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/uniquenospaceshort/32/1814_2.png) [@UniqueNospaceShort](https://forum.codewithmosh.com/u/UniqueNospaceShort)
#### Post date: [December 9, 2022, 8:10pm UTC](https://forum.codewithmosh.com/t/message-error-when-trying-to-run-java-on-node/16935/2 "2022-12-09T20:10:24Z")

</div>

Sorry I do not know node outside of typing the few commands I need.

But I tried this and it works.

![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/b/b37e7400d8a5c595162b0b4153f435549384bbfd.png)

I noticed afterwards you put a $ in front of node. Remove it.

Regards.
