Jeff Rubinoff wrote:
> I've been trying the NB 6.1 Using Java Libraries in Rails Application
> tutorial, at
http://www.netbeans.org/kb/61/ruby/java-ruby.html>
http://www.netbeans.org/kb/61/ruby/java-ruby.html . When I run the project,
> I get a java.lang.OutOfMemoryError: Java heap space. Output attached.
>
http://www.nabble.com/file/p21672075/speak.htm speak.htm My guess is that
> there is something about either my JDK (6_u11) or the Ruby/JRuby version
> that doesn't play nicely with freetts, which is from 2005 after all. I've
> double-checked that all my alterations to the rubyweblog project were
> identical with the tutorial, and they are. Has anyone got any idea what is
> wrong?
Hi Jeff,
Usage of NB 6.1 is discouraged. Better to switch to 6.5, and latest JRuby.
In 6.5 you might try to increase the heap by setting e.g. '-Xmx256m' (or
more, or less) in the JVM Arguments (project's properties | Run category).
As you suggested it might be problem of the freetts library itself, or
in the older version of JRuby or in the JVM itself. If increasing of the
heap for the JVM does not help, you might try to file bug against
freetts with some simpler scenario, e.g. reproducing without JRuby. Or
against JRuby, if it is not reproducible without JRuby, etc.
m.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: dev-help@ruby.netbeans.org