Solved

Creating a JAR File

Posted on 2006-11-22
3
222 Views
Last Modified: 2010-03-31
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
Comment
Question by:ishcmc
  • 3
3 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 17999775
You need to add %JAVA_HOME%\bin to your path
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 17999782
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 18001451
:-)
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question