https://github.com/prestodb/presto-jdbc-java6
Presto JDBC driver compatible with Java 6
https://github.com/prestodb/presto-jdbc-java6
Last synced: 3 months ago
JSON representation
Presto JDBC driver compatible with Java 6
- Host: GitHub
- URL: https://github.com/prestodb/presto-jdbc-java6
- Owner: prestodb
- License: apache-2.0
- Created: 2015-06-04T18:49:54.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-03-27T22:20:44.000Z (over 6 years ago)
- Last Synced: 2025-04-04T04:51:08.928Z (3 months ago)
- Language: Java
- Size: 106 KB
- Stars: 18
- Watchers: 25
- Forks: 5
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# presto-jdbc-java6
[](https://travis-ci.org/prestodb/presto-jdbc-java6)
Presto JDBC driver compatible with Java 6
# Motivation
Many companies are still using Java 6 VM's for for old systems.
The purpose of this project to allow such companies to connect
to Presto database through JDBC. This cannot be done using official
Presto JDBC driver as it requires Java 8 VM.# Building
## Setup JDK 6 toolchain
Build script is `mvn` based and depends on [`toolchains`](https://maven.apache.org/guides/mini/guide-using-toolchains.html) feature of Maven.
We need that as new version of maven require JRE 7 to run itself.
And we want to compile project with JDK 6.To configure Java 6 toolchain in `~/.m2/toolchains.xml` put
```
jdk
1.6
sun
/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/
```
Replace contents of `jdkHome` with path matching your machine.
## Build
To build without tests execute:
```
mvn install -DskipTests=true
```## Tests
To run integration tests you need to explicitly specify path to JDK 8, which
will be used to spawn mock Presto instance.Run tests with command:
```
mvn test -Djava8.home=/usr/lib/jvm/java-8-oracle
```Replace value of `java8.home` property with path valid on your system.
## Artifacts
Build produces single library artifact `presto-jdbc-java6-.jar`.
Artifact does not depend on any external libraries.After build, library will be available in `~/.m2/repository/com/facebook/presto/presto-jdbc-java6`.
Currently we do not publish artifacts from this project to central maven repository.