dev@glassfish.java.net

Re: Shortcuts in PATH to -D

From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Fri, 31 Oct 2008 16:23:04 -0700

Well, if system property JRUBY_HOME is GlassFish's public interface,
we can interpret it the way you want -- that will lead to platform
specific handling of it (remember 8.3 style naming on Windows?).

For a general system property however, this can't be handled specifically
and should be treated verbatim.

Regards,
Kedar

Arun Gupta wrote:
> If 28c is started as:
>
> java -Xmx512m -DJRUBY_HOME=~/tools/jruby-1.4 -jar modules/glassfish.jar
>
> then Rails app can not be deployed and gives the error:
>
> -- cut here --
> SEVERE: Exception while deploying the app : java.lang.RuntimeException:
> JRuby installation not found at ~/tools/jruby-1.1.4 You may like to do
> one of the following:
> - Use updatetool to install JRuby and Rails installation.
> - Check if the jruby.home Java sysytem property is pointing to your
> JRuby installation.
> - If on Unix or Mac, create a symbolic link of your jruby installation
> to ~/tools/jruby-1.1.4 .
> - Install JRuby at ~/tools/jruby-1.1.4
> - Set jruby.home inside
> /Users/arungupta/tools/glassfish/v3/28c/glassfishv3-prelude/glassfish/domains/domain1/config/domain.xml
> to the location of your JRuby directory. Make an entry of
> <jvm-options>-Djruby.home=...</jvm-options> inside <java-config> element
> -- cut here --
>
> Instead if it is started as:
>
> java -Xmx512m -DJRUBY_HOME=/Users/arungupta/tools/jruby-1.4 -jar
> modules/glassfish.jar
>
> then everything works.
>
> It seems OS-specific shortcuts are not recognized. Feature or bug ?
>
> -Arun
>