Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-6-openjdk/jre"
Caused by:
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-6-openjdk/jre"
at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:108)
...
-----
It seems as if a java compiler, such as the one installed by openjdk-6-jdk, is required for proper operation.
It's however not installed by default.
Installing openjdk-6-jdk fixes the issue.
While not specific to the solr package itself, minor jetty related annoyances include:
a) "/etc/init.d/jetty restart" doesn't stop Jetty if it's running
b) /etc/init.d/jetty says it binds to $HOSTNAME:8080, where HOSTNAME is given from $(uname -n), when it's in fact binding to 127.0.0.1 - which in most cases != the hostname.
I just did 'apt-get install solr-jetty' (1.4.0+ ds1-1ubuntu1) on a fresh server install of Beta 1.
Visiting http:// localhost: 8080/solr/ yields:
-----
HTTP ERROR 500
Problem accessing /solr/. Reason:
Unable to find a javac compiler; tools.javac. Main is not on the classpath. jvm/java- 6-openjdk/ jre"
com.sun.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/
Caused by:
Unable to find a javac compiler; tools.javac. Main is not on the classpath. jvm/java- 6-openjdk/ jre" tools.ant. taskdefs. compilers. CompilerAdapter Factory. getCompiler( CompilerAdapter Factory. java:108)
com.sun.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/
at org.apache.
...
-----
It seems as if a java compiler, such as the one installed by openjdk-6-jdk, is required for proper operation.
It's however not installed by default.
Installing openjdk-6-jdk fixes the issue.
While not specific to the solr package itself, minor jetty related annoyances include:
a) "/etc/init.d/jetty restart" doesn't stop Jetty if it's running
b) /etc/init.d/jetty says it binds to $HOSTNAME:8080, where HOSTNAME is given from $(uname -n), when it's in fact binding to 127.0.0.1 - which in most cases != the hostname.