NetBeans Forums

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

Netbeans as default IDE for php

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



Joined: 09 Jan 2012
Posts: 2

PostPosted: Mon Jan 09, 2012 7:39 am    Post subject: Netbeans as default IDE for php Reply with quote

I just removed Netbeans 6.9.1 and installed the latest Netbeans 7.1 (I tried both a full install and the smaller php-only install).

In 6.9 I set Netbeans as the default editor for php files. All files with the extension .php will by default be opened in Netbeans.

In Netbeans 7.1 I cannot get this to work.

What I know and also tried:
Right-mouse on a .php file open with... Look for the Netbeans IDE (C:\Program Files\Netbeans 7.1\bin\netbeans.exe), select, click open and next it doesn't appear in my list with programs. Is there another way to do this or do I need to select a parameter somewhere?

I tried this on windows 7(desktop) and windows vista(notebook), both previously worked with version 6.9
Back to top
Jeffrey Rubinoff
Posted via mailing list.





PostPosted: Mon Jan 09, 2012 12:08 pm    Post subject: Netbeans as default IDE for php Reply with quote

I guess saying that this is because Windows sucks doesn't really help
you, does it?

As a fellow Windows sufferer, I strongly suggest you open your Control
Panel, search for Default Programs (I can never find anything in their
GUI icon layout), click Associate a File Type or Protocol with a
specific program, select .php from the list, and then browse for your
latest NetBeans installation.
Note that you will have to repeat this every time you update NetBeans.
You have probably confused Windows by deleting the default php editor
(C:\Program Files\NetBeans 6.9.1\bin\netbeans.exe) and then trying to
get it to use a program with the same filename but a different path.


Jeff


On 1/9/2012 8:39 AM, wildow wrote:
Quote:
I just removed Netbeans 6.9.1 and installed the latest Netbeans 7.1 (I tried both a full install and the smaller php-only install).

In 6.9 I set Netbeans as the default editor for php files. All files with the extension .php will by default be opened in Netbeans.

In Netbeans 7.1 I cannot get this to work.

What I know and also tried:
Right-mouse on a .php file open with... Look for the Netbeans IDE (C:\Program Files\Netbeans 7.1\bin\netbeans.exe), select, click open and next it doesn't appear in my list with programs. Is there another way to do this or do I need to select a parameter somewhere?

I tried this on windows 7(desktop) and windows vista(notebook), both previously worked with version 6.9



Back to top
wildow



Joined: 09 Jan 2012
Posts: 2

PostPosted: Mon Jan 09, 2012 7:11 pm    Post subject: Reply with quote

Great, this is the solution.

Thanks for your quick reply!
Back to top
born2code



Joined: 02 Jan 2009
Posts: 6
Location: NY

PostPosted: Fri Jan 20, 2012 8:19 pm    Post subject: Reply with quote

same issue for me.

This method didn't help in my Windows 7.

Click .php
Click Change program..
Select NetBeans 7.1..

Still doesn't show in the list so that I can finalize the default program.

So weird.
Back to top
mtgcs2000



Joined: 02 Feb 2012
Posts: 1

PostPosted: Thu Feb 02, 2012 1:54 am    Post subject: Reply with quote

I had the same problem of going from Netbeans 7.0.1 -> Netbeans 7.1 and couldn't set .php files to open with netbeans any more. But I've found a fix!

Taken from: http://stackoverflow.com/questions/7296853/how-to-associate-netbeans-ide-with-certain-file-extensions

I went to the path it mentions (open regedit, then go to HKEY_CLASSES_ROOT -> Applications -> netbeans.exe -> shell -> open -> command) and then in that command folder on the right hand side you will see (Default) REG_SZ and the path to your netbeans exe file. Simply change that path (By right clicking on the "(Default)" and clicking Modify) to:

"C:\Program Files (x86)\NetBeans 7.1\bin\netbeans.exe" "%1"

Or wherever you installed Netbeans if you didn't put it in the default directory.

Then your php files should open with Netbeans 7.1 instead of the old version.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP 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
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo