How do we create a jar file in java?
102403
jar -cvf xxx.jar  *.class\njar -cvmf xxx.mf xxx.jar *.class\n xx.mf is manufest file
879351
For the starters you should use a simple notepad or textpad or edit plus as editors. Installing and using a fancy IDE will take the focus off learning and you will end up struggling with features of IDE. Once you have grasped the concepts, you can switch to Eclipse, or even download NetBeans from sun.java.com\n\nTo save your file as java, just put the file name in double quotes when saving e.g. "MyClass.java", or select '*.*' under file types when saving java file from notepad or any such basic editor.\n\nHTH.
305635
It might be a regular jar file rather than an executable jar file.  If so, you'll have to execute it like:\n\njavaw -cp {thejarfilepath} {themainclasshere}\n\nexample of what this might look like:\n\njavaw -cp c:/Games/mobileGame.jar com.gameco.FunGame
130140
You need to download Java.
821666
May be ur stored the file in a different package name , in that case u need to execute the java command as\n\n                      java pkgname.filename\n\n\n  or if it is in a different folder thn change the current directory to that folder and execute from there
106599
i. JDK - you can download this from java.sun.com \nii. Java IDE - examples are JDeveloper by oracle, JBuilder by borland, and Netbeans.
14263
If you have the JDK installed ( else its here : http://java.sun.com/j2ee/1.4/download.html#sdk )\nand your classpath set \n( add CLASSPATH variable in your environmnet variables - MY Comp rt click properties > Advanced> Environment Variable > new variable >\n\nVariable : CLASSPATH \nValue    : .; \n\nAlso set PATH : <path of your JDK bin folder>\n)\n\nNow write your program in notepad , open cmd, and type \njavac myfile.java \n\nthe filename = classname and is case specific.\nthen if it results in zero errors, \n\ntype:\n\njava myfile\n\nthat would run your program
225657
Try Netbeans at http://www.netbeans.org or\nJcreator @ http://www.jcreator.com
711328
If the files you have downloaded have a .java extension, then these steps will work for you.  If the files have a .class extension, you will have to look fourther down the page to section 'Getting the Command Prompt'.\n\nGetting the Compiler:\n\nYou will need to have the java compiler.  It is free.\nYou should read the read me file here\nhttp://java.sun.com/j2se/1.5.0/README.html\n\nYou are advised to read the 'Installation Instructions', available here\nhttp://java.sun.com/j2se/1.5.0/install.html\nor for windows here\nhttp://java.sun.com/j2se/1.5.0/install-windows.html\n\nThe compiler is available from here.\nLook down the page until you the the section headed 'JDK 5.0 Update 9' and press the '>> Download' button to the right.\nhttp://java.sun.com/javase/downloads/index.jsp\n\n\nGetting the Command Prompt:\n\nAfter getting the compiler and installing it, you need to open the command prompt.\nThis is accessed from the Start Menu, click on the windows 'Start' button.\nClick on 'All Programs'.\nLook for 'Accessories', and click on it (if needed).\nIn here should be 'Command Prompt'.  Click on this.\n\nNow is perhaps the hard part.  You need to navigate through the command prompt to get the to folder you have the java files in.\nFor simplicity, I will call the file that holds these java files, 'C:&#92;code'\nThis means, it is a folder on your C drive.\nYou need to type this into the command prompt, without the quotes.\n'cd C:&#92;code'\nThen press enter.\nYou may need to change this, according to where your files are located.\n\nIf you do not have to compile the '.java' files as you have the '.class' file, go to 'Running the Program'.\nIf you need to compile the '.java' files, continue to 'Compiling the Files'.\n\n\nCompiling the Files:\n\nYou should be in the folder that contains the .java files.\nFor simplicity, I will assume the name of the .java file is 'Example.java'\nType into the command prompt, again without the quotes\n'javac Example.java'\nThe compiler, named 'javac', should compile the code.\nIf there are no errors, it should produce a .class file, named 'Example.class'.\nIf you have errors, hmm, you may have to go back to where you got the file, or ask another question.\n\n\nRunning the Program:\n\nOnce you have the .class files, I will call them 'Example.class', you can compile the program into a functioning program.\nType into the command prompt the following line, without the quotes.\n'java Example'\n\nThis should run the program.\n\n\nNote:\nIf you have more than one file, you will have to compile each file seperately, as mentioned above in 'Compiling the Files', before you can run the program.\n\nIt is the file with the 'public static void main(String[] args)' method that you call from the command prompt with 'java Example'.
761020
You need to make sure that there is a file called cap.java, and that the class in this file has a main() method.\n\nNext, compile the code with\njavac cap.java\n\nThis should produce cap.class\n\njava cap\n\nshould then work. \n\nOh, but I'm assuming that "." is in your classpath. If not, then java won't see stuff in the current directory. As a quick fix, try:\n\njava -classpath "."  cap\n\nand see if it starts working.
504766
First and foremost thing is to set the path in the Environment variables and save the path there. On the My computer icon right click and go to properties and click on the advanced tab button there u find the environment variables click on that option and there u find the label user variables for administrator click on the Path and edit it by adding the path  with a ; as seperator if any other path is already present.\n\nnow save your java file in the bin directory and there\nu type \njavac filename.java \n\nin the place where ur java fils is present\n\n\ncompilation is completed
424816
If you need a "Java Client". Here is the Download site. What you need is the "Java Runtime Enviorment".\n\nhttp://www.java.com/en/download/manual.jsp
1104916
You cannot write code in HTML.\nHave a look at http://freshmeat.net/projects/dmachine/ for a Java batch downloader source code.
64616
If your a biginar , dont confuse with these big answers, set the environment variable path to //jdk../bin  ,its not having its own id, u just type your program in an editor, and go to dos prompt, then compile and execute your java
45645
copy http://www.microsoft.com/java\n\nand paste in  your browsers address bar http://www.microsoft.com/java\n\npress enter !!
453114
Try making sure that you have the latest version of the Java Runtime Enviroment. The free software download is available at http://www.java.com/en\nClick on the link to download free software, follow the directions from there.
2823
The standard Java development kit (JDK) supplied by Sun does not provide a tool to create platform specific executables (This is not suprising really). However, you do have a number of options to choose from that will help you get this done.\n\nFull article:\nhttp://uk.builder.com/programming/java/0,39026606,20283101,00.htm