linux-china / jenv

Java enVironment Manager
http://jenv.io
Apache License 2.0
603 stars 82 forks source link

Stop! XXX is not a valid candidate. When jenv ls #48

Closed chaopeng closed 8 years ago

chaopeng commented 8 years ago

Here is the log. It looks like missing some line for jenv repo update output. And jenv works well in some machine havenot upgrade...

$ jenv selfupdate

Updating jenv...
Purge existing scripts...
Download new scripts to: /home/chao/.jenv/tmp/jenv-0.1.0.zip
Extract script archive...

jenv upgraded successfully!
$ jenv repo update
Updating all repositories
Update done!
$ jenv ls java
Stop! java is not a valid candidate.
$ jenv ls gradle
Stop! gradle is not a valid candidate.
$ ls .jenv/repo/central/
candidates  candidates.txt  name.txt  url.txt  version
$ cat .jenv/repo/central/candidates
accumulo activator activemq ahc akka android ant antlr apacheds archiva artifactory avatar baratine bazel blur bookkeeper boot brooklyn btrace buildr bukkit burp byteman cassandra ceylon checker clojure crash csrf_tester ctakes datastaxdev dcsdk derby drill druid duke eclipselink elasticmq elasticsearch equinox exhibitor fabric8 felix flink flume flyway forge frege gae gaiden gant gatling gcviewer geronimo giraph gitbucket glassfish glide glu go go-agent go-server golo gora gosu gradle grails greys gridgain griffon groovy groovyhelp groovyserv gwt h2 hadoop hama hawt hazelcast hbase hedwig hive hornetq housemd immutant infinispan ireport jad jarinfo java javadoc jbake jboss jconvert jdsdk jena jenkins jetty jflex jhiccup jmeter jppfadmin jppfdriver jppfnode jrockit jruby jspwiki juddi jvmtop jython kaazing kafka karaf kibana knox kotlin kv lazybones lein liquibase logstash luke mahout mail_catcher marmotta mat maven mongodb mrql nailgun neo4j nexus nutch ofbiz openfire opensearch orientdb pgstudio pig play plugproxy presto proguard qpidbroker quercus redline relproxy resin restclient riak robovm roo rundeck s3cmd s4 sbt sbuild scala scribble seam shark simpleci sockettest solr sonar spark sqoop squirrelsql storm tair tajo tika tomcat tomee torquebox ttorent uima ultraesb vark vertx vfs virgo voldemort weblogic weka wildfly wlp wookie xd xwiki zico zookeeper zorka%
sebyx07 commented 8 years ago

i have the same problem

raymond-wells commented 8 years ago

I'm experiencing this bug as well. For me it also affects installs.

linux-china commented 8 years ago

this is a bug in some version in linux because of alias problem. fixed, please update to last version

bhuwang commented 7 years ago

Refresh: export SDKMAN_DIR="$HOME/.sdkman" && source "$HOME/.sdkman/bin/sdkman-init.sh"