# Java Terminal Issues

**URL:** https://forum.codewithmosh.com/t/java-terminal-issues/13094
**Category:** Java
**Created:** [June 15, 2022, 6:55pm UTC](https://forum.codewithmosh.com/t/java-terminal-issues/13094 "2022-06-15T18:55:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![yasame](https://avatars.discourse-cdn.com/v4/letter/y/ea5d25/32.png) [@yasame](https://forum.codewithmosh.com/u/yasame)
#### Post date: [June 15, 2022, 6:55pm UTC](https://forum.codewithmosh.com/t/java-terminal-issues/13094/1 "2022-06-15T18:55:48Z")

</div>

Hi! This is my very first coding encounter as I am coming from a non-tech background, and my Qs are very basic. I appreciate if anyone could help me. Thanks!

When I am trying to execute my first Java project in IntelliJ Terminal; I am facing two issues:

1. 

I am not seeing the name of the project as my main source and I am seeing:

Microsoft Windows [Version 10.0.19044.1706]  
(c) Microsoft Corporation. All rights reserved.

C:\Users\yasame\IdeaProjects\Hello World\Hello World\src\com\>

1. 

I am also receiving an error message in red or the following message, when I type $javac Main.java :

‘$javac’ is not recognized as an internal or external command,  
operable program or batch file.

---

<div class="post-metadata">

### Author: ![jmrunkle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/jmrunkle/32/3765_2.png) [@jmrunkle](https://forum.codewithmosh.com/u/jmrunkle)
#### Post date: [June 15, 2022, 7:17pm UTC](https://forum.codewithmosh.com/t/java-terminal-issues/13094/2 "2022-06-15T19:17:02Z")

</div>

1. Not sure about that one, but it seems Windows specific and I do not have a Windows computer handy.

2. This looks like you typed `$javac` instead of `javac` - you will sometimes see people write commands that are meant to be written at the command prompt like this:

---

<div class="post-metadata">

### Author: ![jzkm](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@jzkm](https://forum.codewithmosh.com/u/jzkm)
#### Post date: [July 15, 2022, 5:35pm UTC](https://forum.codewithmosh.com/t/java-terminal-issues/13094/3 "2022-07-15T17:35:49Z")

</div>

Hi, i think im facing with similar the same issue, this is the output i get  
Windows PowerShell  
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell [Install PowerShell on Windows, Linux, and macOS - PowerShell | Microsoft Docs](https://aka.ms/pscore6)

PS C:\Users\jason\IdeaProjects\HelloWorld\src\com\codewithmosh\>

 ![Screenshot (10)](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/8/8eb3e87b53878e4e192c0f2cd02ee0850cfbfbee.png)

Really appreciates it if someone can help. Thanks!!

---

<div class="post-metadata">

### Author: ![jmrunkle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/jmrunkle/32/3765_2.png) [@jmrunkle](https://forum.codewithmosh.com/u/jmrunkle)
#### Post date: [July 16, 2022, 2:52am UTC](https://forum.codewithmosh.com/t/java-terminal-issues/13094/4 "2022-07-16T02:52:48Z")

</div>

A terminal is just a tool for being able to run commands. It looks like you have opened the terminal but not issues any commands. What exactly were you trying to do? Did you want to run the Java code you have in the UI? If so, I think VSCode has extensions which can make that easier. You could try clicking on the green arrow next to your main method and see what that does for you. I suspect that triggers an extension which will run the main method in your class there.
