• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

Creating a JAR File

The basic format of the command for creating a JAR file is:
jar cf jar-file input-file(s)

I ran cmd
ran exactly as above but replaced with my file

jar cf quiz simplequiz.java

but receive an error 'jar' is not recognise.
do I have to run this command in the java installation folder? if so which one because there are so many
0
ishcmc
Asked:
ishcmc
  • 3
1 Solution
 
CEHJCommented:
You need to add %JAVA_HOME%\bin to your path
0
 
CEHJCommented:
:-)
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now