3

I have installed java and eclipse in my raspberry-pi.Installed eclipse using

enter image description here

sudo apt-get install eclipse

Eclipse is installed and i am able to open the IDE through VNC.But there is no run configurations set in eclipse.It is asking for new run configurations.enter image description here

Even in the run configuration there is no JRE option.

enter image description here

I also want to add external jar files.Searched the web but didn't get much for eclipse configuration on raspberry-pi

Tried this also with no success.

sudo apt-get install eclipse-jdt

enter image description here

3

eclipse is just a runtime, part of a framework (Eclipse RCP) based upon OSGi that helps build portable applications, Rich client applications that are quick to develop and easy, fast and cheap to deploy.

In computer programming, Eclipse is an integrated development environment (IDE). It contains a base workspace and an extensible plug-in system for customizing the environment. Written mostly in Java, Eclipse can be used to develop applications. By means of various plug-ins, Eclipse may also be used to develop applications in other programming languages. Source: Wikipedia

If you want development environments you will need to install them separately. For example, for java

sudo apt-get install eclipse-jdt

... or for C/C++

sudo apt-get install eclipse-cdt

Then everything is installed.

Now, you have to create a "Java Project"

Before being allowed to run a class as a java program because the project metadata explains how to run them. In your screenshot, unlike mine I don't see the letter J in the project icons that highlight their Java nature.

And now as my project is setup, I can execute a class.

  • Tried this ..but eclipse-jdt is already installed.. See my edit above – slaveCoder Jul 9 '14 at 17:45
  • I have updated my answer. Your projects seems to lack the java nature. Eclipse in in java so eclipse knows how to use a jre. – Jean Jul 11 '14 at 11:16
  • Thanks .. I got it working now. The Java perspective has to be enabled from the windows->preferences option. Now i am able to compile java code from eclipse.. – slaveCoder Jul 11 '14 at 12:39
0

In eclipse goto windows->preferences enable java perspective.

  • You may want to give a little more detail. about how you determined this worked. Not everyone will read the above comments -you should strive to make your answers stand alone. – Steve Robillard Aug 4 '14 at 10:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.