Skip to main content

micro virtualenv for Java

Project description

[![PyPI version](https://badge.fury.io/py/jvirtualenv.svg)](https://badge.fury.io/py/jvirtualenv)
[![codebeat badge](https://codebeat.co/badges/7bd988f9-7f2c-4701-951e-92dfe16be5ab)](https://codebeat.co/projects/github-com-minghu6-jvirtualenv-master)
# jvirtualenv
A micro Java environment switch which inspired by `virtualenv`.

## OS Supports:
Linux and any other OS whose shell is bash or zsh.

Windows support is a TBD (low priority though).

## Requirements:
1. JDK(*Oracle JDK*) should be placed on a folder whose name is `java`
and its name should startswith `jdk`. (maybe need `sudo updatedb`)

Exp: `/opt/java/jdk-9`,`/opt/java/jdk1.8.0_144`

Or you can edit the config file directly. (not recommented)

The config file should be as followed:
```
[
{
"tag": "9",
"version": "9",
"bit": "64",
"home": "/opt/java/jdk-9"
},
{
"tag": "1.8:0:64",
"version": "1.8.0_144",
"bit": "32",
"home": "/opt/java/jdk1.8.0_144"
}
]

```

2. Python3

## Usage:

1. `pip3 install jvirtualenv`
2. `jvirtualenv list-tag` (view all jdk tag)
3. `jvirtualenv -j 1.8 <myproject>` (if 1.8 is prefix of someone tag)
4. `source <myproject>/bin/activate` (activate virtual java env)
5. `deactivate` (deactivate the virtualenv)


**FOR EXCELLENT PYTHON3 AND VIRTUALENV!**



Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jvirtualenv, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size jvirtualenv-0.1.0-py3-none-any.whl (11.8 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page