views:

243

answers:

2

i was upgrading my Netbeans 6.5 to Netbeans 6.7

and i open my rails application which built on Netbeans 6.5

and i run but it doesnt working , said :

java.lang.NoClassDefFoundError: org/jruby/Main Caused by: java.lang.ClassNotFoundException: org.jruby.Main at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) Could not find the main class: org.jruby.Main. Program will exit. Exception in thread "main"

what heppened??

and also i cant make new project rails with netbeans 6.7

A: 

You need to go into the plugins panel (menu is tools:plugins) and install the ruby plugin.

jsight
Ruby plugin already installed ..
Kuya
If the plugin were installed, you would be able to create new ruby projects. Do you have the "Ruby Platforms" and "Gems" menus under the tools menu? Can you provide a screenshot of your "installed plugins" screen?
jsight
ya i know that.. but there were ruby on rails has been installed at list
Kuya
i mean i have ruby platforms and gems ..
Kuya
A: 

I looks like Netbeans can't find the JRuby classes. Perhaps try pointing your Ruby platforms to the old JRuby directory? Just a guess as I don't use JRuby myself (although I use NB 6.5 and 6.7)

hopeless