Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

ensime fails to start because *server* JVM not found #196

Closed
tstgruby opened this Issue Oct 10, 2011 · 1 comment

Comments

Projects
None yet
2 participants

On windows, the ensime server cannot be started anymore since ec62327

Error: missing `server' JVM at `C:\Program Files (x86)\Java\jre7\bin\server\jvm.dll'.

The -server command line option is superfluous, because (http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#compiler_types):

Since Java SE 5.0, with the exception of 32-bit Windows, the server VM will automatically be selected on server-class machines.

and

For 64-bit, only the server system is included.

So, if you're using 32-bit Windows or don't have a /server-class machine/ you better use the client VM. Otherwise, if you're using a 64bit OS, you will automatically get the server VM anyway.

Could you remove the -server option again? Of course I could set ENSIME_JVM_ARGS myself, but I think it's better to let the system decide which compiler system is used / available.

Thanks.

\edit: I've just realized that Escape Analysis is only available in the server VM. How bad. Still, the safest thing (for the best user experience) would be to revert that change, IMHO.

Owner

aemoncannon commented Oct 11, 2011

Ok. Thanks for the info. Will be removing the "-server"....

On Mon, Oct 10, 2011 at 4:35 AM, tstgruby <
reply@reply.github.com>wrote:

On windows, the ensime server cannot be started anymore since
ec62327

Error: missing `server' JVM at `C:\Program Files
(x86)\Java\jre7\bin\server\jvm.dll'.

The -server command line option is superfluous, because (
http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#compiler_types
):

Since Java SE 5.0, with the exception of 32-bit Windows, the server VM
will automatically be selected on server-class machines.

and

For 64-bit, only the server system is included.

So, if you're using 32-bit Windows or don't have a /server-class machine/
you better use the client VM. Otherwise, if you're using a 64bit OS, you
will automatically get the server VM anyway.

Could you remove the -server option again? Of course I could set
ENSIME_JVM_ARGS myself, but I think it's better to let the system decide
which compiler system is used / available.

Thanks.

Reply to this email directly or view it on GitHub:
aemoncannon#196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment