Upload
jacky-chan
View
4.417
Download
4
Tags:
Embed Size (px)
DESCRIPTION
jenv is Java environment manager, and it is a clone of RVM for Java. jenv can manage parallel versions of Java development kits on any Unix based system. It provides a convenient command line interface for installing, switching, removing and listing Candidates.
Citation preview
jenv: Java environment manager ----linux_china
About Me
Weibo: @linux_china
Java Engineer with 14 yearsPreacher of IntelliJ IDEA
Book Shelf, Snippet, OSS ShellIntelliJ IDEA iBATIS pluginWebSQL Plus, Webx pluginHumanstxt, faxianla.com
Github: https://github.com/linux-china/
Agenda
Why environment manger
jenv introduction
jenv commands
jenv repository
FAQ
yum and apt-get: version???
rvm: Ruby Version Manager
virtualenv: Python Version Manager
Other: php, node.js
Java: 404
Why Version Manager
Java & Toolkit Version Manager
Structure Standard
Repository Based
Git & Subversion Support
Upgrade???
jenv Introduction
Install: curl -s get.jenv.mvnsearch.org | bash
List: jenv ls maven
Install: jenv install maven
Switch: jenv use maven 3.1.1
cd XXX_HOME: jenv cd maven 3.1.1
jenv basic
Default version: jenv default maven 3.0.5
current candidate: jenv which java
Candidate Update: jenv update xxx version
Self update: jenv selfupdate
Repo update: jenv repo update
Uninstall: jenv uninstall ant 1.8.4
jenv commands
jenvrc
a file named “jenvrc” in the directory
properties format as following: java=1.7.0_45 maven=3.1.1
Change java env after “cd”
Repeatable Development Environments with jenv
clone jenv to remote host $ jenv clone user@dest-host
clone candidate to remote host $ jenv clone candidate version user@dest-host
clone candidate from remote host $ jenv clone user@dest-host candidate version
jenv repository
Manager Candidates & Versions
Public or Private
Package format: zip, git or subversion
Central: http://jenv.io
jenv with IntelliJ IDEA
JDK setup: auto
SDK(Maven, Gradle) setup: auto
jenvrc support
FAQ