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 
  

commandline problem "\NetBeans was unexpected at this time."

 
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users
View previous topic :: View next topic  
Author Message
MyNameIsNick



Joined: 09 Feb 2009
Posts: 2

PostPosted: Mon Feb 09, 2009 8:27 am    Post subject: commandline problem "\NetBeans was unexpected at this time." Reply with quote

Hello, I just installed Netbean 6.5, and try to run some commands under jruby\bin folder, no matter what what command I type, the command is not executed, and I keep receiving "\NetBeans was unexpected at this time." message. I also tried to run under safe mode with only commandline, I still get the same message. I use Vista. However, when I move jruby folder somewhere else, the command works. Currently my jruby folder is under C:\program files(x86)\netbeans6.5\ruby2\jruby1.1.4

Thank you very much
Back to top
View user's profile Send private message
J
Posted via mailing list.





PostPosted: Mon Feb 09, 2009 8:40 am    Post subject: commandline problem "\NetBeans was unexpected at this time." Reply with quote

I assume it has to do with the whitespace in 'C:\program files(x86)' ...
can you try to place NetBeans somewhere else?

- J
Back to top
Erno Mononen
Posted via mailing list.





PostPosted: Mon Feb 09, 2009 8:40 am    Post subject: commandline problem "\NetBeans was unexpected at this time." Reply with quote

Hi,

I guess it's the space in the path that's causing the problem. If that's
the case, I'm not sure whether there is another solution that installing
NB (and hence the bundled JRuby) to a dir without spaces in the path.
Depending on what exactly you try to run, quoting the command / args
might help. Or you might want to try the latest version of JRuby
(available for download at jruby.codehaus.org) and see whether that
would help.

HTH,
Erno

MyNameIsNick wrote:
Quote:
Hello, I just installed Netbean 6.5, and try to run some commands under jruby\bin folder, no matter what what command I type, the command is not executed, and I keep receiving "\NetBeans was unexpected at this time." message. I also tried to run under safe mode with only commandline, I still get the same message. I use Vista. However, when I move jruby folder somewhere else, the command works. Currently my jruby folder is under C:\program files(x86)\netbeans6.5\ruby2\jruby1.1.4



Thank you very much











Back to top
MyNameIsNick



Joined: 09 Feb 2009
Posts: 2

PostPosted: Mon Feb 09, 2009 8:54 am    Post subject: Reply with quote

No matter where I relocated NetBeans folder. After I reinstall it, the Netbean folder itself is named "Netbean 6.5" with a space between the name and the version number.
Back to top
View user's profile Send private message
J
Posted via mailing list.





PostPosted: Mon Feb 09, 2009 8:55 am    Post subject: commandline problem "NetBeans was unexpected at this time." Reply with quote

remove it ...

MyNameIsNick schrieb:
Quote:
No matter where I relocated NetBeans folder. After I reinstall it, the Netbean folder itself is named "Netbean 6.5" with a space between the name and the version number.












Back to top
P.Erectus



Joined: 24 Mar 2009
Posts: 3

PostPosted: Tue Mar 24, 2009 6:26 am    Post subject: I am having the exact same problem myself. Reply with quote

I also just installed NB 6.5. Actually I reinstalled it, because originally it had been installed in \Program Files\, and, this being on Vista, I had run into privilege violations when Ruby attempts to create folders. Being too lazy to struggle with Vista UAC issues--No! Because I wanted to work smarter, not harder Smile -- I uninstalled it, and then reinstalled on \Program Files (x86).

A couple of thoughts occur to me here: First, perhaps using a different Ruby platform would fix the problem. The one from codehaus might be able to handle the problem.

If not, then maybe this: I don't remember for sure if it's possible to do this with a local folder, but would it be possible to assign a new drive letter to \Program Files (x86) and its subfolders, and then reinstall NetBeans using the new drive letter as the root folder location?

I'm nodding off, but I'll try it tomorrow and post my results here if there is no solution yet.
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Tue Mar 24, 2009 9:02 am    Post subject: commandline problem "NetBeans was unexpected at this time." Reply with quote

P.Erectus wrote:
Quote:
I also just installed NB 6.5. Actually I reinstalled it, because originally it had been installed in \Program Files\, and, this being on Vista, I had run into privilege violations when Ruby attempts to create folders. Being too lazy to struggle with Vista UAC issues--No! Because I wanted to work smarter, not harder Smile -- I uninstalled it, and then reinstalled on \Program Files (x86).



A couple of thoughts occur to me here: First, perhaps using a different Ruby platform would fix the problem. The one from codehaus might be able to handle the problem.



If not, then maybe this: I don't remember for sure if it's possible to do this with a local folder, but would it be possible to assign a new drive letter to \Program Files (x86) and its subfolders, and then reinstall NetBeans using the new drive letter as the root folder location?



I'm nodding off, but I'll try it tomorrow and post my results here if there is no solution yet.


Please do keep us updated on whether that worked. I'm unfortunately
rather clueless when it comes to Vista, but maybe other Vista users here
can offer some tips.

Erno
Back to top
Anthony Richardson
Posted via mailing list.





PostPosted: Tue Mar 24, 2009 9:44 am    Post subject: commandline problem "NetBeans was unexpected at this time." Reply with quote

I don't use ruby/netbeans on windows, but I do recall there were
problems in the past when using path's that have spaces in them
mentioned in the forums.

Cheers,

Anthony


On Tue, Mar 24, 2009 at 4:57 PM, P.Erectus
<address-removed> wrote:
Quote:

I also just installed NB 6.5.
Back to top
P.Erectus



Joined: 24 Mar 2009
Posts: 3

PostPosted: Tue Mar 24, 2009 5:07 pm    Post subject: Reply with quote

I should mention that I am able to execute the Simple_Ruby_Application from the NetBeans IDE, but when I try to run the unit test on the item class, I get the "\NetBeans Unexpected" error. So moving the root folder to a directory without a space isn't going work, in my opinion. Also, I wasn't able to map the folder to a drive letter, although there may be some administrative fix for that on my system.
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Tue Mar 24, 2009 8:37 pm    Post subject: commandline problem "NetBeans was unexpected at this time." Reply with quote

P.Erectus wrote:
Quote:
I should mention that I am able to execute the Simple_Ruby_Application from the NetBeans IDE, but when I try to run the unit test on the item class, I get the "\NetBeans Unexpected" error. So moving the root folder to a directory without a space isn't going work, in my opinion.
Did you try it? It does seem like a symptom of a space-in-path problem -
of course, it should just work, but as a workaround having no spaces in
the path might help. Also, can you please try whether running the unit
test from the command line works?

Thanks,
Erno
Back to top
P.Erectus



Joined: 24 Mar 2009
Posts: 3

PostPosted: Tue Mar 24, 2009 9:32 pm    Post subject: Re: commandline problem "NetBeans was unexpected at this time." Reply with quote

Erno Mononen wrote:
P.Erectus wrote:
Quote:
I should mention that I am able to execute the Simple_Ruby_Application from the NetBeans IDE, but when I try to run the unit test on the item class, I get the "\NetBeans Unexpected" error. So moving the root folder to a directory without a space isn't going work, in my opinion.
Did you try it? It does seem like a symptom of a space-in-path problem -
of course, it should just work, but as a workaround having no spaces in
the path might help. Also, can you please try whether running the unit
test from the command line works?

Thanks,
Erno
I'd like to exhaust the other possible avenues before uninstalling and reinstalling the IDE. Wouldn't the command line for regular execution also include the NetBeans folder? I am going to try installing a later Ruby platform when I get back later.
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Wed Mar 25, 2009 2:17 pm    Post subject: commandline problem "NetBeans was unexpected at this time." Reply with quote

P.Erectus wrote:
Quote:
Erno Mononen wrote:

Quote:
P.Erectus wrote:



Quote:
Quote:
I should mention that I am able to execute the Simple_Ruby_Application from the NetBeans IDE, but when I try to run the unit test on the item class, I get the "\NetBeans Unexpected" error. So moving the root folder to a directory without a space isn't going work, in my opinion.



Quote:
Did you try it? It does seem like a symptom of a space-in-path problem -



Quote:
of course, it should just work, but as a workaround having no spaces in



Quote:
the path might help. Also, can you please try whether running the unit



Quote:
test from the command line works?





Quote:
Thanks,



Quote:
Erno

I'd like to exhaust the other possible avenues before uninstalling and reinstalling the IDE.

You can also install another copy of the IDE, or even just copy the
contents of the NetBeans folder to another folder. Note though that you
need to change the userdir in <NB Copy>/etc/netbeans.conf if you want to
run both of the instances simultaneously.

Quote:
Wouldn't the command line for regular execution also include the NetBeans folder? I am going to try installing a later Ruby platform when I get back later.


OK, please let us know if you find a solution.

Cheers,
Erno
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