Created
September 8, 2011 23:32
-
-
Save davelnewton/1205093 to your computer and use it in GitHub Desktop.
Basic Java stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tree | |
. | |
├── ClassFiles | |
│ └── Main.class | |
├── JavaFiles | |
│ └── Main.java | |
├── META-INF | |
│ └── MANIFEST.MF | |
└── Project.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ jar -cfe Project.jar ClassFiles.Main JavaFiles ClassFiles | |
$ java -jar Project.jar | |
Wat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tree | |
. | |
├── ClassFiles | |
│ └── Main.class | |
├── JavaFiles | |
│ └── Main.java | |
├── META-INF | |
│ └── MANIFEST.MF | |
└── Project.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tree | |
. | |
├── ClassFiles | |
│ └── Main.class | |
├── JavaFiles | |
│ └── Main.java | |
├── META-INF | |
│ └── MANIFEST.MF | |
└── Project.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ClassFiles; | |
public class Main { | |
public static void main(String[] args) { | |
System.out.println("Wat"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment