Skip to content

LearnDifferent/java-utility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

java-utility

Tools and utilities, written in Java.

Table of Contents

Cloning the repository

Clone the repository into a local directory:

# Clone the repository
git clone git@github.com:LearnDifferent/java-utility.git

# Go into the repository
cd java-utility

Or you can click here to download the zip file containing the code.

Building and Running

Compile a Java file and execute it

Take "CalibreTool" for example. The directory is CalibreTool:

# Go into the directory 
cd CalibreTool

# Go into the source directory
cd src

# Compile the Java file
javac CalibreTool.java -encoding UTF-8

# Run the Java program
java CalibreTool

Build a JAR file and run it

Take "Markdown Tool" for example. The directory is Markdown and the Main Class is MarkdownTool :

# Go into the directory 
cd Markdown

# Build a JAR file
javac MarkdownTool.java -encoding UTF-8
jar -cfev markdownTool.jar MarkdownTool MarkdownTool.class

# Run the JAR file
java -jar markdownTool.jar

Build a JAR file with Maven and run it

Take "Fanfou Album Download Tool" for example. The directory is FanfouAlbumDownloadTool :

# Go into the directory 
cd FanfouAlbumDownloadTool

# Build a JAR file
mvn package

# Rename the JAR file and move it to current directory
mv target/FanfouAlbumDownloadTool.jar tool.jar

# Run the JAR file
java -jar tool.jar

Remember to use the JAR file WITHOUT the suffix SNAPSHOT.

License

Released under the Apache License 2.0.

About

Tools and utilities, written in Java

Resources

License

Stars

Watchers

Forks

Languages