« Return to Thread: Cannot run freetts libraries in NB 6.5 (Using Java Libraries in Rails Application tutorial)

Re: Cannot run freetts libraries in NB 6.5 (Using Java Libraries in Rails Application tutorial)

by Jeff Rubinoff :: Rate this Message:

Reply to Author | View in Thread

martin,
Thanks. I wasn't clear in my post--I'm using NB 6.5, but trying out the 6.1 tutorial to see if it works. I've taken over upkeep on these tutorials from Chris. I'm trying to find out if there is something that I'm doing wrong, or if the tutorial instructions won't work, or if the tutorial simply doesn't work at all with 6.5/latest JRuby/JDK 6.

Jeff
Martin Krauskopf wrote:
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

 « Return to Thread: Cannot run freetts libraries in NB 6.5 (Using Java Libraries in Rails Application tutorial)