A Java application for converting documents between different formats, including Excel to JSON, Access to JSON, JSON to Excel, and JSON to Access.
- Excel to JSON: Converts Excel files to JSON format
- Access to JSON: Converts Access database files to JSON format
- JSON to Excel: Converts JSON files to Excel format
- JSON to Access: Converts JSON files to Access database format
- Directory Management: Automatically handles the creation of necessary directories
- Error Handling: Provides detailed error messages for troubleshooting
- Java 21
- Maven
- Dependencies:
com.fasterxml.jackson.core:jackson-databind:2.15.2
org.apache.poi:poi-ooxml:5.2.3
net.sf.ucanaccess:ucanaccess:5.0.1
org.apache.logging.log4j:log4j-core:2.20.0
Add this dependency to your pom.xml
:
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.15.2</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>5.2.3</version>
</dependency>
<dependency>
<groupId>net.sf.ucanaccess</groupId>
<artifactId>ucanaccess</artifactId>
<version>5.0.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.20.0</version>
</dependency>
- Create an
assets
directory in the project root and add your files there. - Run the application:
mvn exec:java -Dexec.mainClass="org.fisayo.DocumentConverter"
- Follow the menu prompts to select the type of conversion and handle the conversion process.
import org.fisayo.DocumentConverter;
public class Main {
public static void main(String[] args) {
DocumentConverter.main(new String[]{});
}
}
assets
: Directory to place input files.results
: Directory where output files will be saved.
- Clone the repository:
git clone https://github.com/DroneCodes/document_converter.git
- Build with Maven:
cd document-converter
mvn clean install
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have questions, please file an issue on the GitHub repository.
- Inspired by the need for a versatile document conversion tool
- Built using Java and various libraries for optimal performance
- Designed to handle multiple document formats and conversions