Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse + Zend on Ubuntu
Eclipse + Zend on Ubuntu [message #263310] Sun, 17 August 2008 12:58 Go to next message
Eclipse UserFriend
Originally posted by: vizcarradavid.hotmail.com

(I've been at this for three days now. Right now it's 5:33 AM and I
haven't sleep)

I am trying to get Eclipse + Zend on Ubuntu. I was given two options:

a) 1) Install from command prompt and then 2) install PDT as new feature

b) Install all-in-one from Zend (or Eclipse + PDT)

----------------
I tried a-1 successfully and was able to HelloWorld on Java. My Eclipse
sits nicely at Applications -> Programming -> Eclipse.

I added the eclipse/pdt site but then when I try to install available new
features I get a message that the new feature requires "org.eclipse.wst
(2.0.0)". I don't know that that is but it's not listed in the available
features from eclipse

So I uninstalled eclipse

----------------

I tried b) and it was very easy, I extracted my Eclipse folder to my
desktop (although I much rather have it at Applications -> Programming ->
Eclipse) and I'm able to start Eclipse. However, I set my workspace as
"/var/www" but I could only do it once. Now I get a message that the
workspace cannot be created or it is in use. I did some research and
deleted all ".lock" files in my workspace and Eclipse folders, I've also
read that Eclipse needs to be killed sometimes but "ps -a" only results in
"ps", there's no Eclipse to kill.

So I tried the default /home/"me"/workspace as my workspace, once inside I
tried to change it back to "/var/www" and I get a message that another
instance of Eclipse is using it so I can't do that either.

I re-installed eclipse and uninstalled it, I cleaned up installation
files, I've rebooted like a hundred times now (well.. almost). I've
deleted directories, etc. No luck so far.

Any suggestions on how to fix either the a) or the b) approach?

Thanks in advance
Re: Eclipse + Zend on Ubuntu [message #263313 is a reply to message #263310] Sun, 17 August 2008 15:06 Go to previous messageGo to next message
Paul A. Rubin is currently offline Paul A. RubinFriend
Messages: 188
Registered: July 2009
Senior Member
exquisitus wrote:
> (I've been at this for three days now. Right now it's 5:33 AM and I
> haven't sleep)
>
> I am trying to get Eclipse + Zend on Ubuntu. I was given two options:
>
> a) 1) Install from command prompt and then 2) install PDT as new feature
>
> b) Install all-in-one from Zend (or Eclipse + PDT)
>
> ----------------
> I tried a-1 successfully and was able to HelloWorld on Java. My Eclipse
> sits nicely at Applications -> Programming -> Eclipse.
>
> I added the eclipse/pdt site but then when I try to install available
> new features I get a message that the new feature requires
> "org.eclipse.wst (2.0.0)". I don't know that that is but it's not listed
> in the available features from eclipse
> So I uninstalled eclipse
>
> ----------------
>
> I tried b) and it was very easy, I extracted my Eclipse folder to my
> desktop (although I much rather have it at Applications -> Programming
> -> Eclipse) and I'm able to start Eclipse. However, I set my workspace
> as "/var/www" but I could only do it once. Now I get a message that the
> workspace cannot be created or it is in use. I did some research and
> deleted all ".lock" files in my workspace and Eclipse folders, I've also
> read that Eclipse needs to be killed sometimes but "ps -a" only results
> in "ps", there's no Eclipse to kill.
>
> So I tried the default /home/"me"/workspace as my workspace, once inside
> I tried to change it back to "/var/www" and I get a message that another
> instance of Eclipse is using it so I can't do that either.
>
> I re-installed eclipse and uninstalled it, I cleaned up installation
> files, I've rebooted like a hundred times now (well.. almost). I've
> deleted directories, etc. No luck so far.
>
> Any suggestions on how to fix either the a) or the b) approach?
>
> Thanks in advance
>

You didn't indicate whether your using Eclipse 3.3 (Europa) or 3.4
(Ganymede). Installing PDT with Ganymede is a bit trickier than
installing it with Europa.

I haven't tried making /var/www my workspace, so I don't know for sure,
but if you're running a web server, might that be locking stuff in
/var/www? Why not just put the workspace someplace safe (such as
~/Eclipse)? Note that you can put the PHP files for a project anyplace
accessible (presumably including /var/www) and still work on them from
Eclipse (by importing them into a project). Eclipse stores project
settings etc. in the workspace, but project source files can be elsewhere.

/Paul
Re: Eclipse + Zend on Ubuntu [message #263380 is a reply to message #263313] Tue, 19 August 2008 02:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vizcarradavid.hotmail.com

True, I'm sorry. I'm trying to install 3.4 Ganymede. But if Europa is
easier to install. I my just install it (since I'm new to Eclipse,
anyways).

Thanks for the suggestion.

So you're saying that my workspace can be in a folder (~/Eclipse for
example) and then my PHP files in /var/www/mysite and then import them
into my project? Does this mean that I can continue creating PHP files in
Eclipse and they can be stored in /var/www/mysite rather than in ~/Eclipse
?

David
Re: Eclipse + Zend on Ubuntu [message #263383 is a reply to message #263380] Tue, 19 August 2008 03:10 Go to previous message
Paul A. Rubin is currently offline Paul A. RubinFriend
Messages: 188
Registered: July 2009
Senior Member
Exquisitus wrote:
>
> True, I'm sorry. I'm trying to install 3.4 Ganymede. But if Europa is
> easier to install. I my just install it (since I'm new to Eclipse,
> anyways).
>
> Thanks for the suggestion.

You can get PDT working in Ganymede without *too* much hassle; it's just
not as convenient as with Europa. The instructions at
http://wiki.eclipse.org/PDT/Installation worked for me.
>
> So you're saying that my workspace can be in a folder (~/Eclipse for
> example) and then my PHP files in /var/www/mysite and then import them
> into my project?

Yes.

> Does this mean that I can continue creating PHP files
> in Eclipse and they can be stored in /var/www/mysite rather than in
> ~/Eclipse ?
>

Yes (as long as that directory is writable by whatever account you're
using when you run Eclipse). When you create a new PHP project, the
wizard will ask you to provide a project name. In that dialog, you'll
see "Project contents" with a check on "Use default". Uncheck that and,
in the "Directory" entry, browse to /var/www/mysite. Eclipse will store
both some metadata (.project etc.) and your PHP files there.

Alternatively, you can create a new PHP project the usual way, then
right-click the project in the PHP Explorer view and use Build Path ->
Link Source to link /var/www/mysite to the project. Give the linked
directory a name within the project structure (which could be, say,
'mysite'). That will import whatever is in /var/www/mysite, and any
file you create inside Eclipse in the 'mysite' folder will sit in
/var/www/mysite. The difference with this approach is that the metadata
files will be parked somewhere in the Eclipse workspace, rather than in
/var/www/mysite, and you can create additional folders for the same
project that live in the Eclipse workspace rather than having to put
everything in /var/www/mysite.

/Paul
Previous Topic:compiling ultiple source files
Next Topic:Table width
Goto Forum:
  


Current Time: Fri Apr 26 10:57:23 GMT 2024

Powered by FUDForum. Page generated in 0.08935 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top