Current method for using eclipse for java and php? - php

super easy question that i can't find the answer to on eclipse's website....
i have a new laptop and am installing eclipse on it. things seem to have a changed a bit since the 3.5 version i have on my current comp. i recall dloading eclipse just once, and then installing some plugins for stuff like php editing. but the new downloads page seems to have entirely different versions for the different languages:
http://www.eclipse.org/downloads/
so will i need to do one install for java, one for php, one for anything else? or is the method the same as before?
thanks,
jonah

You can install different development platforms onto your base Eclipse installation. Go to Help > Install new software and then try typing in PDT into the Work with text field. You should see it autocomplete with http://download.eclipse.org/tools/pdt/updates/. If selecting it doesn't automatically populate the area below, try the Add button.
You should eventually see options for the PDT SDK that you can select to install.
See also:
the official installation wiki
the package comparison page.

Related

Netbeans PHP project - can't create a new one

netbeans noob - first time running ubuntu and ever using netbeans just a heads up..
I can't create a new project in netbeans. I downloaded the plugins i wanted for PHP
When i go to File -> New Project the only item i see under categories is "Samples." Samples is broken down into two sub-categories which are ApiSupport and PHP.
Any ideas on how to fix this?
Thanks in advance..
Make sure that you have PHP Plugin installed and active.
Click Tools (menu) -> Plugins (menu) -> Installed (tab).
You should see window like this:
If there is no PHP Plugin - install it (go to Available and search for PHP with description similar to mine).
If there is PHP Plugin but inactive - select it in "Select" table column and press "Activate" button.
If there is PHP Plugin and it is active - reinstall it by using Plugin window.
I realize this is an old thread, but I was looking for the answer today and ran into the same issue. Though the previous answer is technically correct, it was not the issue I was having as I already had the plugin (it came with the Netbeans download). That said, the issue was not having a lamp environment. Once installed apache, php, and mysql, the PHP category showed up. Instructions from Netbeans can be found on their website, but if you are using Ubuntu (or anything Debian based) you can run
sudo apt-get install php5 php5-mysql mysql
PHP5 has a dependency for Apache so it will ask if you want to install dependencies. You just say yes. If my memory serves, Redhat (CentOS and Fedora) would be:
yum install php php-mysql mysql

html/css/jquery/javascript code completion in php file phpEclipse

This is my first post at this site. I searched alot but couldn't find what i was looking for so i decided to post the question.
Im a php developer. I was using dreamweaver because i like many features of dreamweaver like code/design view, html/css/jquery/javascript code completion within PHP file. The reason why i am switching from dreamweaver that it doest not provide debugging for php.
I installed phpeclipse and found it very promising but its missing many features i really liked in dreamweaver. I managed to install web page editor for design view but code completion for html css etc in php file is not working.
Is it possible to add all these features in phpeclipse? or
Is it possible to find all these feature in some other php IDE other than phpeclipse?
Thanks!
Yes indeed. There are two ways for the above. Netbeans 7.2 comes with a great support for PHP and also has some good plugins. The other way is that you can install apatana studio plugin in eclipse which provides autocompletion in css,html and JavaScript. Both the IDE's are promising. Try to install Apatana Studio on phpeclipse since it comes as a plugin. This would solve your problem. I would strongly suopport Apatana Studio with your existing setup for PHP in eclipse. Here is the link http://www.aptana.com/products/studio3/download The above mentioned link is the download page.

How to enable PHP support in Netbeans?

On Ubuntu, I have install netbeans but it does not have any option to start a php project. I've looked at the plugin list and php is not in the list, neither is it in the plugins to download list.
I've gone to the netbeans website and I am not sure which php plugin to download.
Can someone please help me with this?
Ubuntu 12.04 64bit has netbeans 7.0.1 in the software repository.
Go to Tools->Plugins.
In the Settings tab ensure that the update center Netbeans Distribution is active.
Then in the Available Plugins tab click on Reload Catalog and you should see PHP.
Also you have to make your LAMP config, this link can help you.
If you have already download the full bundle go in Installed tab and activate PHP.
Please try select the php option from this page and install
http://netbeans.org/downloads/index.html
Click on menu File > New Project
then select PHP from the Categories list, on click you will see PHP being initialized automatically...
For a detailed answer visit
http://digitdrive.blogspot.in/2013/11/developing-php-project-on-netbeans-ide.html
Goto Tools > Plugins > Available Plugins
search for PHP Enhancements .
But first of all you should download netBeans version that support PHP.
there is 2 available distributions, one for PHP and Javescript, the other one is the fully fledged version that support for many programing languages , PHP is included of course.
any of those to distributions should work will on PHP.

Is it possible to "marry" Eclipse PHP with Java EE?

I've already got Eclipse for PHP-developers installed. Must I install a new version for Java EE, or can I "marry" it into the PHP version, for instance trough updates or plug-ins? The reason I ask is 1) I want to save space ('cause I'm greedy), 2) I want to not have to switch programs all the time ('cause I'm lazy). :)
Is it possible?
How do you do it?
get yourself eclipse classic
go to Help > Install new software
install PDT things
install Java EE things
use it while switching the perspectives
P.S. you might want to look into Aptana's eclipse plugin as alternative to PDT, while you're at it . Some people prefer it (ST2 user .. no real stake in this)
It should be possible to install both the PDT Eclipse and the Jave EE eclipse into the same folder i.e. merge the plugin folders.
Then you can use both features in the same Eclipse version.
You can add all the Java EE plugins and add the Java EE functionality to your copy. I actually did this the other way around. I started with Java EE and added the PDT php tools to my eclipse and it works fine.

Eclipse PDT installation

I have a project that's intended to use some PHP as well as Java and Javascript, so I installed the PDT PHP plug-in for Eclipse, using the Install New Software menu option. Now Eclipse agrees PDT is installed, but no PHP features like creating or editing PHP files are appearing anywhere. Is there something else I need to do to activate PDT? (I did restart Eclipse like it said I needed to.)
Right click on your project, Configure (it's at the bottom of the list)->Add PHP Support...
After it's done, you should see a little P symbol in the project's icon.
Just create new project using the wizard, and choose PHP one. After Eclipse will know that your project is actually based on PHP, it will show you all the features.
In case if you have existing project, just open the PHP perspective.
I've once had a similar problem. Eclipse was running with the JRE 1.4, and it seems the JRE 1.5 or later is required to run the PDT. I switched to Java 1.6 and that solved the problem.
I run into this sometimes with eclipse plugins.
Have you tried uninstalling it, removing the jar and files it from eclipse/plugins and eclipse/features, then installing it again?
If you don't feel like doing that. Try installing it in a clean eclipse instance and if it works then it's just a config issue with eclipse.
You might have not installed all of the tools too.
The solution I eventually came up with was to just install Aptana Studio, a PHP IDE based on Eclipse, whose standalone version can coexist happily with the regular Eclipse on the same machine.
In order to have PHP support in eclipse project, you need to add PHPNature to the project. It's a kind of configuration paramter of eclipse project. When you craete a new PHP project using a wizard, check the .project file in a new project directory. There is a PHPNature line. Copy this line into .project of your java project.
Another solution is to separate java and php code in a different projects, each one craeted by right wizard.

Categories