I have downloaded and installed Eclipse for PHP Developers from here:
http://www.eclipse.org/downloads/
I also need to write some Java applications. How can I add Java support to my PHP Eclipse version? Do I have to install second Eclipse for Java?
You should be able to install the JAVA components, using Help > Install New Software.
In the list of components, there should be Programming Languages > Eclipse Java Development Tools.
Here's a screenshot :
(source: pascal-martin.fr)
Because it is so trivial to have multiple Eclipse instances, I do just that to seperate php and java environments. This reduces the plugins loaded and you can somewhat keep Eclipse lean. Of course the choice is totally yours.
On my version of eclipse:
Help menu->install new software
Choose the download page for your version of eclipse
There is a category "programming language" which should have Java.
What you downloaded was basically the eclipse core project and a list of standard "addon" packages that might help in PHP development. According tho this comparison chart you're only missing two packages to now make eclipse ready for java development:
GEF
JDT
You could just download those two packages from eclipse by going to
Help->Install new software
to have the standard "Eclipse for Java Development" setup.
Related
I give a computer programming course I have written, and I recently switched to recommending Visual Studio Code in the course. We are starting out with the basics, so I just wanted a simple editor. We started learning Git, and one student's repository suddenly had all sorts of cruft in it, including:
.settings/
.vscode/
.classpath
.project
In particular the .settings directory had all sorts of Eclipse settings, such as I would expect to see in an Eclipse project.
The student explained to me that these came from VS Code after installing its Java extensions. But why are the VS Code Java extensions creating Eclipse files? And where is all this documented, so that I can update my lessons with the exact details and avoid this problem in the future?
Thanks in advance.
Simplified the Language Support for Java™ by Red Hat is the headless Eclipse Java IDE integrated into Visual Studio Code via the Language Server Protocol (LSP). See the self-description of the extension:
Provides Java™ language support via Eclipse JDT Language Server, which
utilizes Eclipse JDT, M2Eclipse and Buildship.
Except for .vscode/, the mentioned files are Eclipse Java IDE files.
Because in Eclipse these files are not intended to be edited manually, there is little or no documentation about them (the Java compiler settings in .settings/org.eclipse.jdt.core.prefs are similar to the command line arguments of the Eclipse batch compiler).
For example, the documentation of the Java extension recommends using the Eclipse Java IDE to edit the formatter settings (which are also stored in .settings/org.eclipse.jdt.core.prefs) and concludes:
No it's not an ideal solution, but it should be done only once, unless
you regularly change your formatter settings.
I need to JSP functions on Eclipse for JAVA (not an Eclipse for Java EE Developers Edition).
Since I already installed Eclipse for pure JAVA, I need to install some plugins for
JSP pages.
Go to the Help menu and choose Install New Software. Look for and install the Eclipse Java Web Developers Tools.
Eclipse marketplace is good.You will get all kinda supporting plugins there.
goto
help/Eclipse Market Place
Ok here is the question. I don't want to have two eclipses, I just want to have one for c/c++ and Java EE. In the packages comparison link at eclipse.org is a list with the features per package. As can be seen there I think that if I have the "JAVA EE" I just need to add "EGit", "Linux Tools" and "CDT" in order to have both complete packages.
But I ask, is this that transparent? Just add those and that's it?
If this is true, how can I do that? Just add those three to the Java EE I already have? I mean what would be the procedure to achieve this integration?
Yes, that's it. Btw you don't need EGit properly speaking. EGit is for Eclipse integration with Git repositories and has nothing to do with Java and/or C++.
IMHO I strongly suggest you having one Eclipse for Java and another one for C++. This way you can install relevant plugins for each one and not oversaturate Eclipse with plugins, which consume a lot of memory.
I use Eclipse Java EE IDE for Web Developers, Version: Neon.3 Release (4.6.3RC2) on Ubuntu. Here are the steps I installed C++ plugins:
Help > Eclipse Marketplaces..
Find: C++, press Enter
Scroll down to locate Eclipse C/C++ IDE CDT 9.2 (Neon.2)
Click Install
Note: you may see different C/C++ IDE CDT version if you have a different version of Eclipse Java EE IDE
I want to know the required software which is needed for J2ME programs
I am having the JDK 1.6.0
I do not want to use an IDE at this moment.
Now you need to install the J2ME Wireless Toolkit,
Have a look at this tutorial : J2ME Tutorial
If you don't want to go with the IDE then you only need mobile sdk from oracle for compiling your midlets avaliable here: http://www.oracle.com/technetwork/java/javame/javamobile/download/overview/index.html
I would strongly encourage you to switch into IDE like Netbeans for J2ME as it would get much easier for you to run/test and deploy your mobile applications
J2SDK1.6.0
Eclipse 3.7: one of the best Java IDE ;-)
J2ME Wireless toolkit 2.5
EclipseME 1.7: Eclipse plugin to help develop J2ME code
ProGuard 4.7: class file shrinker and obfuscator.
How do I find which Eclipse version I have on my Ubuntu system?
This is what "About Eclipse SDK" says.
Eclipse SDK
Version: 3.5.2
Build id: M20100211-1343
I am not sure if its the Eclipse IDE for Java Developers or the Eclipse Classic version.
What I would like to do is use Eclipse for
Java based Web Application Development
Ant Builds
Deploy using Tomcat
including HTML, CSS Editing
Please help me decide which version I should choose? I would like to upgrade my Eclipse setup from whatever version it is now to a version that supports all the above. Should I go for Eclipse IDE for Java EE Developers?
Should I download a totally new version from Eclipse site or can I just ADD necessary features/plugins to my current Eclipse setup.
Please suggest.
See Compare Eclipse Packages for a nice chart
What I would like to do is use Eclipse for (...)
The Eclipse IDE for Java EE Developers allows to do what you're asking for out of the box.
Should I download a totally new version from Eclipse site or can I just ADD necessary features/plugins to my current Eclipse setup.
Both would work, although it would be simpler to just get directly the Eclipse IDE for Java EE Developers (especially if you don't know exactly what plugin(s) you're looking for). Personally, I don't use the version you can get from the repository but download Eclipse from the official website and install it in user mode.
If you are using Eclipse for only Enterprise Development, then as everybody has recommended I would use the Eclipse Java EE version. If you plan on occasionally using it for other development purposes then I would consider downloading a separate classic version as well.
The reason for this is that everybody is well aware of eclipse's plugin capabilities. Unfortunately, Eclipse can get bogged down with too many plugins or add on tools. What I have experienced is that if you are using it for Enterprise Development(J2EE) it might be a good idea to keep that as a separate environment then your other Java Development. That way you can download the plugins,tools,libraries,etc for your enterprise development, and you can use your classic version for any other development you might need.
The downside is you will have two versions, but this is not a problem granted you do not run them simultaneously.
If you want to play with Web development, then the Eclipse java EE for Developers is for you. It is shipped with components to make Java Enterprise applications to create Enterprise Applications (and bundle it in an Enterprise ARchiver, known as EAR file or Web ARchive, known as WAR file).
The default Eclipse shipping with Ubuntu is the Classic version, and you can add more plugins.
I would recommend, however, to download th eJEE version manually and unzip it and run. Then you have a local installation outside the system files.