Friday, January 8, 2010

[Java] basic syntax on java .jar

 

"Common JAR file operations"
Operation Command
To create a JAR file jar cf jar-file input-file(s)
To view the contents of a JAR file jar tf jar-file
To extract the contents of a JAR file jar xf jar-file
To extract specific files from a JAR file jar xf jar-file archived-file(s)

"To invoke an applet packaged as a JAR file"
<applet code=AppletClassName.class
archive="JarFileName.jar"
width=width height=height>
</applet>

public class MainClass {
public static void main(String[] a) {
System.out.println(System.getProperty("file.encoding"));
}
}

__._,_.___
Visit http://aiaiai.com or http://jgame.org for more groups to join.
Java Official Group is created for the following topics: Java 2 Enterprise Edition - J2EE, Java 2 Standard Edition - J2SE, Java 2 Micro Edition - J2ME, XML, XSL, XSD, XPATH, Web Services, Jini, JXTA for all type of Java Geeks.
Whoever posts spam / ads / job related message will be BANNED IMMEDIATELY
.

__,_._,___

No comments:

Post a Comment