title: How to Start a Java Project with package declaration on Visual Studio Code?
body: <p>I am learning Java on Visual Studio Code. I have installed the &quot;Microsoft  extension for Java&quot; in it. My basic Java programs runs fine without package declaration. But I would like to package my program. How ?</p>
  <p>Earlier I used &quot;IntelliJ IDEA&quot;. I used to start a New Project and declare &quot;package com.java.learn&quot;. In Visual Studio Code there is no option to create New java Project. There is an option to create Workspace but I still have the same issue.</p>
  <p>I have two java class. &quot;Index.java&quot; &amp; &quot;InputHelper.java&quot;. Index.java is the main java file. InputHelper is a seperate class which I use in Index.java. I want to make a project and package both ( or more ) files.</p>
  <p>Error Message:</p>
  <pre><code>The declared package &quot;com.java.learn&quot; does not match the expected package
  </code></pre>
  <p><a href="https://i.stack.imgur.com/elZ2S.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/elZ2S.png" alt="enter image description here" /></a></p>