trouble configuring eclipse for Pydev ... linux for 32bit x586 [message #1015485] |
Thu, 28 February 2013 17:25 |
Hugh Foster Messages: 33 Registered: February 2013 |
Member |
|
|
I have had issues running a simple "Hello World" py file in Eclipse. Initially I used the Linux software center to get an image of Eclipse and after numerous attempts to resolve, I tried to address the issues on the ubuntu forums. I removed all java files and downloaded JDK 7 and installed that via the terminal line. I then downloaded and installed Eclipse from the main site, installed in my home folder and used the help menu to download the Pydev software from pydev.org/updates. The Py file opens in the IDE, however when I try to run it the run window opens with only the option to run it as an 'Ant' file. Please can someone help me configure Eclipse for Pydev so it can edit and run files of this type?
Thanks for your consideration
[Updated on: Thu, 28 February 2013 19:23] Report message to a moderator
|
|
|
Re: trouble configuring eclipse for Pydev ... linux for 32bit x586 [message #1015514 is a reply to message #1015485] |
Fri, 01 March 2013 01:25 |
|
On 02/28/2013 11:09 AM, Hugh Foster wrote:
> FOr the past 48 hours, I have had issues running a simple "Hello World"
> py file in Eclipse. Initially I used the Linux software center to get an
> image of Eclipse. After numerous and very time consuming issues, I tried
> to address the issues on the ubuntu forums however only got part of the
> answer I was looking for. So I consulted the Eclipse forum and carried
> out a few steps outlined therein. The IDE crashed and as a result I
> removed all java files and downloaded JDK 7 and installed that via the
> terminal line. I then downloaded and installed Eclipse from the main
> site, installed in my home folder and used the help menu to download the
> Pydev software from pydev.org/updates. The Py file opens in the IDE,
> however when I rty to run it the run window opens with only the option
> to run it as an 'Ant' file. Pleas can someone help me configure Eclipse
> for Pydev so it can edit and run files of this type?
> Thanks for your considerations.
> H :p
First, never ever obtain Eclipse through any Linux software distribution
center. Always get it from eclipse.org.
The PyDev site appears to encourage questions on stackoverflow.com using
the PyDev tag.
http://pydev.org/about.html
|
|
|
|
|
|
Re: trouble configuring eclipse for Pydev ... linux for 32bit x586 [message #1015680 is a reply to message #1015676] |
Fri, 01 March 2013 16:46 |
|
On 3/1/2013 9:31 AM, Hugh Foster wrote:
> I wouldve thought there would be more interest in this error. it looks
> like a really great program but I guess since it has caused this much
> trouble I will just do what I shouldve done 3 days ago and go with
> another editor. I may decide to try again once it gets pertinnet to
> manage java or I have a beter vantage point on configuring it. Have a
> nice weekend, admin
Eclipse isn't an editor. It's an IDE and, with respect to PyDev (Android
is another perfect example), it's a framework in which just about any
project can develop extensions to make their own IDE. Sometimes the
seams fray and show difficulty. How well problems are resolved is a
testimony to how much support there is for it.
Don't confuse PyDev with Eclipse (or Android Development with Eclipse).
I have not used PyDev and have no opinion about it. It's not supported
by this forum. So you're not judging it under adequate light.
I have used Android tools. They work pretty well all things considered,
but similarly this isn't the forum in which to ask about them and
judging them by this forum is unfair.
Etc.
Best of luck.
|
|
|
|
|
Re: trouble configuring eclipse for Pydev ... linux for 32bit x586 [message #1015709 is a reply to message #1015705] |
Fri, 01 March 2013 20:44 |
|
On 3/1/2013 1:33 PM, Hugh Foster wrote:
> the error it encountered was a Java error and this error isnt an Eclipse
> issue and I apologize for my impatience. What is the best way to install
> eclipse so that i do it the right way?
Here's what I'd do. You can read ooey-gooey verbiage at
http://www.javahotchocolate.com/tutorials/eclipse-summary.html
if you want, but these are the steps you can follow if you know how.
Realize that this is how I do it. Others may do it differently. Also, my
instructions assume you're going to develop Java applications. This
won't hurt you if all you're going to do is Python.
1. Download and explode a private Sun JDK (from java.sun.com).
2. Download and explode Eclipse somewhere under /home/hugh.
Which package is best for Python? Beats me, but I'm sure
Eclipse IDE for Java Developers will not hurt you any.
3. Edit eclipse.ini by examining http://wiki.eclipse.org/Eclipse.ini.
You'll want to add the following:
...
-vm
/home/hugh/where-I-put-my-JDK/bin/java
-vmargs
...
4. If you want to create a launcher, do that:
a. Create launcher.
b. Filesystem path is /home/hugh/.../eclipse/eclipse.
c. For icon, use /home/hugh/.../eclipse/icon.xpm
5. Launch Eclipse.
6. Trouble? Come back here.
|
|
|
Re: trouble configuring eclipse for Pydev ... linux for 32bit x586 [message #1015710 is a reply to message #1015709] |
Fri, 01 March 2013 20:47 |
|
On 3/1/2013 1:44 PM, Russell Bateman wrote:
> On 3/1/2013 1:33 PM, Hugh Foster wrote:
>> the error it encountered was a Java error and this error isnt an Eclipse
>> issue and I apologize for my impatience. What is the best way to install
>> eclipse so that i do it the right way?
>
> [snip]
>
> 6. Trouble? Come back here.
Oh yeah, I forgot, now for the PyDev bit...
Once Eclipse is up and running, you'll use Help -> Eclipse Marketplace.
In Find: type pydev
You can take it from here. I think you just click on the Install button
at the bottom right of PyDev - Python IDE for Eclipse.
Best of luck,
Russ
|
|
|
|
|
|
|
|
|
|
Re: trouble configuring eclipse for Pydev ... linux for 32bit x586 [message #1015874 is a reply to message #1015864] |
Mon, 04 March 2013 05:40 |
|
On 03/03/2013 04:20 PM, Hugh Foster wrote:
> it couldnt find -vm but that is probably because I didnt unpack it and
> make it executable.... what is the way to unpack it to the correct
> directory?
(You were on Linux, right?)
eclipse.ini doesn't come with the -vm option in it. When you run Eclipse
without it, it just runs on whatever JRE happens to be available on the
search path.
You pick the directory you want and explode the tarball you downloaded
from eclipse.org there. For instance:
/home/hugh $ tar -zxf eclipse....tgz
/home/hugh $ cd eclipse
/home/hugh/eclipse $ vim eclipse.ini
....
-vm
/home/hugh/jdk1.0.6_20/bin/java
....
:wq
/home/hugh/eclipse $ ./eclipse
....and you're running.
|
|
|
Re: trouble configuring eclipse for Pydev ... linux for 32bit x586 [message #1015875 is a reply to message #1015874] |
Mon, 04 March 2013 05:45 |
|
On 03/03/2013 10:42 PM, Russell Bateman wrote:
> On 03/03/2013 04:20 PM, Hugh Foster wrote:
>> it couldnt find -vm but that is probably because I didnt unpack it and
>> make it executable.... what is the way to unpack it to the correct
>> directory?
>
> (You were on Linux, right?)
>
> eclipse.ini doesn't come with the -vm option in it. When you run Eclipse
> without it, it just runs on whatever JRE happens to be available on the
> search path.
>
> You pick the directory you want and explode the tarball you downloaded
> from eclipse.org there. For instance:
>
> /home/hugh $ tar -zxf eclipse....tgz
> /home/hugh $ cd eclipse
> /home/hugh/eclipse $ vim eclipse.ini
> ...
> -vm
> /home/hugh/jdk1.0.6_20/bin/java
> ...
> :wq
>
> /home/hugh/eclipse $ ./eclipse
>
> ...and you're running.
Oh, yeah, I forgot, you moved Java to under eclipse. That wasn't
necessary, but it is a way to solve the problem. In that case, you don't
need to add the -vm option.
|
|
|
|
|
Re: trouble configuring eclipse for Pydev ... linux for 32bit x586 [message #1016268 is a reply to message #1016266] |
Tue, 05 March 2013 18:12 |
|
On 3/5/2013 11:05 AM, Hugh Foster wrote:
> I moved the .bin file up a directory from inside eclipse in the Home
> folder. Obviously I am new to lINUX and Im noting that the LIGHTNING
> folder, the one you have referred to as 'hugh' is essentially the same
> name as 'Home'.I tried to open the workspace I configured for py files
> and I get this huge error...org.eclipse.core.runtime.CoreException:
> Cannot create extension
The problem is that this has to do with PyDev in Eclipse, which isn't
supported by any Eclipse forum. According to the PyDev web page, their
idea of support is to ask the question in stackoverflow.com carefully
applying the PyDev tag. I've found stackoverflow to be hugely successful
and lightning fast (no pun intended) for answers, especially as compared
to other forums I hang out in.
Best of luck,
Russ
|
|
|
|
|
|
|
|
Re: trouble configuring eclipse for Pydev ... linux for 32bit x586 [message #1016337 is a reply to message #1016332] |
Wed, 06 March 2013 06:09 |
|
On 03/05/2013 10:41 PM, Hugh Foster wrote:
> I thought you would be pleased.... It was mostly due to the zip file I
> downloaded from the Pydev site due to a similar query from stackoverflow
> by framing the question and looking at the results. I also moved the jre
> bin file from the folder I made for it and left it in the Home
> folder.... that seemed to clear up the core dump errors, although Im not
> altogether ceertain that eclipse is using jre1 6 20. Also, I ditched the
> old workspace file I had been using and decided to run the robots test
> and I managed tyo get most of the thing running smoothly. Im sure once
> my python ability improves the true values of the IDE will shine
> through, The next thing for me wouyld naturally begin learning to use
> this platform to develop java. can you recommend a good tutorial I can
> have a look at to get the IDE configuredfor java and maybe crank out an
> app?
They are legion.
In particular, I suggest http://www.vogella.de.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.12107 seconds