Netbeans 6.0.1 +ruby on rails + mysql 5

i get the following error when i click on project name ->generate in
netbeans IDE. help please…

java.lang.NullPointerException

  • at
    org.netbeans.modules.ruby.railsprojects.GeneratorPanel.getSelectedGenerator(GeneratorPanel.java:136)
  • at
    org.netbeans.modules.ruby.railsprojects.GeneratorPanel.isValid(GeneratorPanel.java:459)
  • at java.awt.Component.invalidateIfValid(Component.java:2809)*
  • at java.awt.Component.setLocale(Component.java:1879)*
  • at javax.swing.JComponent.(JComponent.java:584)*
  • at javax.swing.JPanel.(JPanel.java:65)*
  • at javax.swing.JPanel.(JPanel.java:92)*
  • at javax.swing.JPanel.(JPanel.java:100)*
  • at
    org.netbeans.modules.ruby.railsprojects.GeneratorPanel.(GeneratorPanel.java:87)
  • at
    org.netbeans.modules.ruby.railsprojects.GenerateAction.generate(GenerateAction.java:148)
  • at
    org.netbeans.modules.ruby.railsprojects.GenerateAction.performAction(GenerateAction.java:127)
  • at
    org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:581)
  • at
    org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.actionPerformed(ActionsBridge.java:111)
  • at
    org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:104)*
  • at
    org.netbeans.modules.openide.actions.ActionsBridgeImpl.invokeAction(ActionsBridgeImpl.java:52)
  • at
    org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.doRun(ActionsBridge.java:102)
  • at
    org.netbeans.modules.openide.util.ActionsBridge$1.run(ActionsBridge.java:71)
  • at
    org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)*
    [catch] at
    org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)

thanks
*
*

On 12 Mar 2011, at 07:28, “Er.SALIM MANDREKAR”
[email protected] wrote:

i get the following error when i click on project name ->generate in netbeans
IDE. help please…

Please don’t post the same message across 4 different threads, all at
the same time.

Fred.

ok…

On Sat, Mar 12, 2011 at 1:28 AM, Er.SALIM MANDREKAR <
[email protected]> wrote:

i get the following error when i click on project name ->generate in
netbeans IDE. help please…

Stop using NetBeans to generate your rails application. Use the command
prompt to do it then import your newly created app into NetBeans for
editing. Follow this guide for learning how to create rails apps:

B.

when i do that using command prompt
rails server
a folder is created “server” into my project directory…
*
*
n further things r not working. please provide the help.
ill also give the list of gems installed…

  • *** LOCAL GEMS *** actionmailer (2.2.3) actionpack (2.2.3)
    activerecord
    (2.2.3) activerecord-odbc-adapter (2.0) activeresource (2.2.3)
    activesupport
    (3.0.5, 2.2.3) builder (3.0.0) dbi (0.4.3) deprecated (3.0.0) minitest
    (2.0.2, 1.6.0) rails (2.2.3) rake (0.8.7) rdoc (2.5.8) *

now guide me with best tutorial

hi Frederick C.

can u suggest me one fulfledge site which provides full tutorial abt
ruby on
rails n mysql using netbeans6.0.1.

sorry for iritating everyone on google groups.
*
*

On Mar 12, 10:51am, salim mandrekar [email protected]
wrote:

when i do that using command prompt
rails server
a folder is created “server” into my project directory…
*

That sounds like you’ve got rails 2.x. With rails 2 you run ruby
script/server to start the server (rails server is for rails 3 and
above)

The use of the rails command line tools change substantially between
2.x and 3.x

Can’t help you with your netbeans troubles - I’ve never used it
before.

Fred

Please stop posting the same message multiple times…

On 12 March 2011 10:51, salim mandrekar [email protected]
wrote:

when i do that using command prompt
rails server
a folder is created “server” into my project directory…

So you have Rails 2.x

n further things r not working. please provide the help.

What “further things”?

ill also give the list of gems installed…
*** LOCAL GEMS *** actionmailer (2.2.3) actionpack (2.2.3) activerecord
(2.2.3) activerecord-odbc-adapter (2.0) activeresource (2.2.3) activesupport
(3.0.5, 2.2.3) builder (3.0.0) dbi (0.4.3) deprecated (3.0.0) minitest
(2.0.2, 1.6.0) rails (2.2.3) rake (0.8.7) rdoc (2.5.8)
now guide me with best tutorial

Well, what tutorials have you followed to get you to this position?
Have you looked at the Ruby on Rails “getting started” guide?

…and google for “Rails getting started” for dozens more links.

BTW You’re asking about Netbeans 6.0, while the current release is
6.9… I’d suggest using the latest release, as it works well, but for
the majority of things you need to use at your level (or arguably at
any level… but let’s not start that again! :slight_smile: any text editor
would be fine. Don’t rely on the IDE to do stuff for you (like
creating projects, generating migrations, running rake takes); but
when you know how to do it yourself, use the IDE if it makes it easier
for you then.

thank you sir for valuable rpy n suggestion…

dude

ruby script/server also gives me an error… which says

C:\demo>ruby script/server
internal:lib/rubygems/custom_require:29:in require': no such file to load -- script/../config/boot (LoadError) from <internal:lib/rubygems/custom_require>:29:inrequire’
from script/server:2:in `’

wil u please tel me why this error occurs.?

thanks