FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

NetBeans 6.5 and JRuby 1.2.0

 
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users
View previous topic :: View next topic  
Author Message
Lars Frantzen
Posted via mailing list.





PostPosted: Wed May 20, 2009 1:25 pm    Post subject: NetBeans 6.5 and JRuby 1.2.0 Reply with quote

Hello,

I installed JRuby on my Ubuntu laptop and used the 'Autodetect
Platforms' feature of NetBeans to detect it, which seemed to work fine.

But when I try to run a JRuby project I get:

Exception in thread "main" java.lang.NoClassDefFoundError: org/jruby/Main
Caused by: java.lang.ClassNotFoundException: org.jruby.Main
...

Would be happy for every hint!

Cheers,
Lars
Back to top
Erno Mononen
Posted via mailing list.





PostPosted: Wed May 20, 2009 2:01 pm    Post subject: NetBeans 6.5 and JRuby 1.2.0 Reply with quote

Hi Lars,

Can you try whether the following works from the command line:

<jruby-1.2.0 install dir>bin/jruby -v


Erno



Lars Frantzen wrote:
Quote:
Hello,

I installed JRuby on my Ubuntu laptop and used the 'Autodetect
Platforms' feature of NetBeans to detect it, which seemed to work fine.

But when I try to run a JRuby project I get:

Exception in thread "main" java.lang.NoClassDefFoundError: org/jruby/Main
Caused by: java.lang.ClassNotFoundException: org.jruby.Main
...

Would be happy for every hint!

Cheers,
Lars






Back to top
Lars Frantzen
Posted via mailing list.





PostPosted: Fri May 22, 2009 12:26 pm    Post subject: NetBeans 6.5 and JRuby 1.2.0 Reply with quote

Hi Erno,

thanks for the reply.

Erno Mononen wrote:
Quote:
Can you try whether the following works from the command line:

<jruby-1.2.0 install dir>bin/jruby -v

yes, it is installed in /usr/local/jruby-1.2.0/ and there is a symlink
to the jruby executable in /usr/local/bin.

I get:

jruby -v
jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-03-16 rev 9419) [amd64-java]

Cheers,
Lars

Quote:


Erno



Lars Frantzen wrote:
Quote:
Hello,

I installed JRuby on my Ubuntu laptop and used the 'Autodetect
Platforms' feature of NetBeans to detect it, which seemed to work fine.

But when I try to run a JRuby project I get:

Exception in thread "main" java.lang.NoClassDefFoundError: org/jruby/Main
Caused by: java.lang.ClassNotFoundException: org.jruby.Main
...

Would be happy for every hint!

Cheers,
Lars












Back to top
Lars Frantzen
Posted via mailing list.





PostPosted: Mon May 25, 2009 2:24 pm    Post subject: NetBeans 6.5 and JRuby 1.2.0 Reply with quote

Hi,

I could fix it by manually adding the JRuby 1.2.0 platform. Something
seems to go wrong when doing the autodetect.

Cheers,
Lars

Erno Mononen wrote:

Lars Frantzen wrote:
Quote:
Hi Erno,

thanks for the reply.

Erno Mononen wrote:
Quote:
Can you try whether the following works from the command line:

<jruby-1.2.0 install dir>bin/jruby -v

yes, it is installed in /usr/local/jruby-1.2.0/ and there is a symlink
to the jruby executable in /usr/local/bin.

I get:

jruby -v
jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-03-16 rev 9419) [amd64-java]

Cheers,
Lars

Quote:

Erno



Lars Frantzen wrote:
Quote:
Hello,

I installed JRuby on my Ubuntu laptop and used the 'Autodetect
Platforms' feature of NetBeans to detect it, which seemed to work fine.

But when I try to run a JRuby project I get:

Exception in thread "main" java.lang.NoClassDefFoundError: org/jruby/Main
Caused by: java.lang.ClassNotFoundException: org.jruby.Main
...

Would be happy for every hint!

Cheers,
Lars

















Back to top
Erno Mononen
Posted via mailing list.





PostPosted: Mon May 25, 2009 3:13 pm    Post subject: NetBeans 6.5 and JRuby 1.2.0 Reply with quote

Hi Lars,

Glad to hear you found a way to add it.

I apparently forgot to reply to this thread earlier (the other thread
about a similar issue got me to forgot this one). Anyway, what I wanted
to reply is that the log file could help us tracking down the problem,
so if you have the time please turn on detailed logging
(http://wiki.netbeans.org/FaqRubyNBLogging), reproduce the issue and
send the log file to me. The root cause here seems to be something else
than in the other thread.

Thanks,
Erno


Lars Frantzen wrote:
Quote:
Hi,

I could fix it by manually adding the JRuby 1.2.0 platform. Something
seems to go wrong when doing the autodetect.

Cheers,
Lars

Erno Mononen wrote:

Lars Frantzen wrote:

Quote:
Hi Erno,

thanks for the reply.

Erno Mononen wrote:

Quote:
Can you try whether the following works from the command line:

<jruby-1.2.0 install dir>bin/jruby -v

yes, it is installed in /usr/local/jruby-1.2.0/ and there is a symlink
to the jruby executable in /usr/local/bin.

I get:

jruby -v
jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-03-16 rev 9419) [amd64-java]

Cheers,
Lars


Quote:
Erno



Lars Frantzen wrote:

Quote:
Hello,

I installed JRuby on my Ubuntu laptop and used the 'Autodetect
Platforms' feature of NetBeans to detect it, which seemed to work fine.

But when I try to run a JRuby project I get:

Exception in thread "main" java.lang.NoClassDefFoundError: org/jruby/Main
Caused by: java.lang.ClassNotFoundException: org.jruby.Main
...

Would be happy for every hint!

Cheers,
Lars
























Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB