RVM is a very popular tool for managing versions in Ruby. Like many other Ruby users and developers (who also are partial to the JVM), I use RVM every day. When I switch between rvm
and jenv
, I always forgot the commands because they are so different.
It would be great if jenv
could align more with RVM in the following two ways:
jvm
(short for Java Version Manager)use
and list
(at a minimum)The alias jvm
is just crying out to be used. It has the follow things going for it:
As for the commands, it would be great if I could simply type:
$ jvm list
to get a list of all my versions and
$ jvm use 1.8
To switch my shell (yes, the shell) to my 1.8 alias. I think the scope (local or global) should be moved to an option flag, like:
$ jvm use 1.8 --local
Perhaps these command aliases are only available when using the jvm
alias, since the intention is to provide alignment with RVM.
Hi,
jenv is an java-adapted-fork of rbenv, the concurrent of RVM ;)
So every command are similar to this one, and I would not change this in "jenv" command.
But providing a RVM-like command wrapper (jvm sounds good) could be envisaged.
I will try this after Christmas and New year :)
But providing a RVM-like command wrapper (jvm sounds good) could be envisaged.
Exactly! :+1:
Wouldn't that be confusing with JVM (Java Virtual Machine)? Even though we don't have a 'jvm' command, but use 'java', using 'jvm' as a command name could make things become overloaded and confusing.
Just my opinion though :)
I will point out that someone has ported RVM to java; albeit with a poor name. You can find that project here: https://github.com/linux-china/jenv
Most helpful comment
Wouldn't that be confusing with JVM (Java Virtual Machine)? Even though we don't have a 'jvm' command, but use 'java', using 'jvm' as a command name could make things become overloaded and confusing.
Just my opinion though :)