Differences between version 9 and revision by previous author of JavaNotes.
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 9 | Last edited on Wednesday, May 2, 2007 8:56:36 am | by BenStaz | Revert |
Older page: | version 6 | Last edited on Sunday, January 11, 2004 5:29:29 am | by StuartYeates | Revert |
@@ -48,7 +48,18 @@
#Check that the the file is in "/some/path/to/a/dircetory/some/package/heirarchy/!ClassName.java" and is called "!ClassName" and in "/some/package/heirarchy/" package
#Check that "/some/path/to/a/dircetory/" is in the the classpath
#Check that the current directory is not in the classpath
#Check the package name again
+
+!The public type <name of class> must be defined in its own file
+Check to make sure that the filename of the .java file has the same name as the class inside the file.
+
+!!!How do I run a jar file?
+
+A JAR file (or Java Archive) is a ZIP file used to distribute a set of Java classes. It is used to store compiled Java classes and associated metadata that can constitute a program.
+
+To run a [Java] application that is inside a .jar file Simply type:
+
+*java -jar <jar_file>
----
UserSubmittedNotes