On Apr 30, 2009, at 2:25 AM, Arun Gupta wrote:
> On my MacBookPro, NB 6.7 beta does not seem to pick/configure the
> default JDK. The default on my box is JDK 6 but NB still configures
> JDK 1.5.0 as the default Java platform in the IDE. And then there
> seems to be no intuitive way to change the default platform from
> within the IDE. Anyway, filed a bug:
>
>
http://www.netbeans.org/issues/show_bug.cgi?id=164133This is a known issue, fixed in the post-beta builds:
http://www.netbeans.org/issues/show_bug.cgi?id=159846
.
>
>
> Moving forward
>
> Trying to create a Rails application and run on GlassFish gem using
> NB 6.7 beta. Because I could not find a way to change the default
> Java platform (other than explicitly passing --jdkhome or editing
> netbeans.conf) to JDK 6, the Rails application can not run on
> GlassFish Gem.
>
> A different error is encountered with NB 6.5.1:
>
> -- cut here --
> /Applications/NetBeans/NetBeans 6.5.1.app/Contents/Resources/
> NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems.rb:578:in
> `report_activate_error': Could not find RubyGem test-spec (>= 0)
> (Gem::LoadError)
>
> from /Applications/NetBeans/NetBeans 6.5.1.app/Contents/
> Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/
> rubygems.rb:134:in `activate'
> from /Applications/NetBeans/NetBeans 6.5.1.app/Contents/
> Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/
> rubygems.rb:158:in `activate'
> from /Applications/NetBeans/NetBeans 6.5.1.app/Contents/
> Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/
> rubygems.rb:157:in `each'
> from /Applications/NetBeans/NetBeans 6.5.1.app/Contents/
> Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/
> rubygems.rb:157:in `activate'
> from /Applications/NetBeans/NetBeans 6.5.1.app/Contents/
> Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/
> rubygems.rb:158:in `activate'
> from /Applications/NetBeans/NetBeans 6.5.1.app/Contents/
> Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/
> rubygems.rb:157:in `each'
> from /Applications/NetBeans/NetBeans 6.5.1.app/Contents/
> Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/
> rubygems.rb:157:in `activate'
> from /Applications/NetBeans/NetBeans 6.5.1.app/Contents/
> Resources/NetBeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/
> rubygems.rb:49:in `gem'
> from /Applications/NetBeans/NetBeans 6.5.1.app/Contents/
> Resources/NetBeans/ruby2/jruby-1.1.4/bin/glassfish_rails:18
> -- cut here --
>
> How do I proceed ?
>
So does it work when you use the --jdkhome parameter and point it to
JDK 6? Is that a suitable workaround?
Petr
> -Arun
> --
> Application Platform, Sun Microsystems, Inc.
> Blog:
http://blogs.sun.com/arungupta>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
dev-unsubscribe@...
> For additional commands, e-mail:
dev-help@...
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
dev-unsubscribe@...
For additional commands, e-mail:
dev-help@...