I currently use Textmate for most of my editing, but am taking a Java course and am wondering if there's a better editor out there, especially one that might have some form of intellisense or active debugging.
Most, if not all of the usual suspects when it comes to Java IDEs work on OS X. I've personally used Eclipse and NetBeans on OS X - in fact I still have NetBeans installed as it's also a good environment for writing Ruby code.
Of course if you're just looking for an editor and not an IDE, you might want to try out Aquamacs...
If you want code completion, you are not looking for an editor but an IDE.
Eclipse, Netbeans, IntelliJ IDEA all work well on OS X. JDeveloper I have not tried but the generic version runs under OS X.
Choose the one your instructor recommends (because then he can help you getting started).
Eclipse works okay. It has awesome features, but is somewhat buggy / crashy. It has very good "look and feel" for a Java app on OSX. Feature parity (as best as I can tell) with Windows/Linux.
I use Eclipse quite heavily on OS X. Lots of plugins, artifact downloading/caching, building, etc. Just make sure you've got the latest Java installed on OS X, and maybe verify that your system will launch Eclipse using Java 6, 64-bit, and make sure you're running Eclipse 3.5, and you should be good to go.
I leave mine running for days at a time, but your mileage may vary depending upon plugins.
I like NetBeans and Eclipse, but Xcode comes with Mac OS X and TextWrangler is a great stand-alone programming editor.
Go for eclipse. Faster than Netbeans and has lots of plugins.
Related
I'm trying to get Eclipse 4.5.2 running on Macs with OS X 10.10.5 and Oracle Java 8u73 I got to the point where trying to start Eclipse results in
The JVM shared library "$JAVA_HOME/bin../jre/lib/server/libjvm.dylib" does not contain the JNI_CreateJavaVM symbol.
Googling this returns a whole bunch of suggestions, none of which work. Some say you absolutely MUST have the JDK (I'm using the JRE). Others emphatically say the JRE is all you need. Some suggest editing an Info.plist or another, with people responding "Yeah that worked!" right along with "That didn't work"
How do I get past this message?
You need the JDK because, well, to be honest Apple hates Java and has done a thorough job of screwing up what used to be the best OS for Java development.
The "you need legacy Java" message was from OS X, not Eclipse. The advice to download and install it is bad advice, but sadly nothing that Eclipse can remedy. Installing "legacy Java" just reverts your system to a VERY outdated JRE and renders much Java-based software, including Eclipse, broken.
Eclipse requires Java 7 or above (this year's release of Eclipse packages in June will require Java 8 ), so the best thing is to download JDK 1.8 (not just the JRE), install that, then point your eclipse.ini file to it's exact location per the instructions at the eclipse.ini wiki page.
Oracle JDK download links change often, so it's best to Google for "JDK 8 download" and you'll find it. Here's the page as it stands at the time I'm writing this.
[quoted from this Eclipse forums message]
I'm pretty new to programming and to Java, so I'm really not sure.
I know that JDK has its own compiler and the JRE too so would I really need Eclipse?
You need the JRE to run java code on your computer and the JDK to write it. However, many programmers tend to prefer an IDE (Integrated Development Environment) to use along side for actually writing the code, debugging, and execute it much more efficiently. Eclipse is a good example of one, and one of the many used/preferred IDE's (in my opinion at least) out there. However, others exist too:
DrJava
Netbeans
BlueJ
JCreator
These editors are much more preferred because they make it easier to learn / write code. However, you may choose a normal text editor (like sublime, atom, textedit, notepad, textmate, etc..) or even the command line. Mac & Linux have "vim" built in which is a command line editor too which I tend to prefer.
Yes, the JDK and JRE are necessary to run java but Eclipse is the tool that will allow you to code, debug and execute easier.
Think of JDK as the engine of a car and Eclipse or any other IDE like the wheel.
I am currently using JRE in Eclipse. I am wondering if using JDK is going to speed up Eclipse. I use Eclipse only for PHP development, and not for any Java-related work.
Using the JDK won't speed up Eclipse. If you aren't doing any Java development work, there's no reason to use it.
Download a JDK if you're doing real Java development as you'll need it for that. If you're doing C/C++, PHP, or something else, you might never need it and can just use a Java Runtime Environment (JRE). Eclipse already comes ready to use that and probably already works without you doing anything.
To speed up eclipse,keep JDK on a RAM disk.It just needs 300mb space and it doesnt required by other programs.
I installed Eclipse IDE for C/C++ Linux Developers to write some cpp codes. As I understood it, no matter which version of Eclipse I use, it always can be used to writing some java source codes.
I did this:
File->New>Java Project->...
Wrote a simple "hello world". I have confidence that my hello world is correct.
When I wrote my code, Everything went well.
But when I right clicked my new project, I found there was no "Run as","Debug as"
Press Ctrl+F11. It said "the selection cannot be launched, and there are no recent launches"
Run->Run Configurations. I double clicked Java Application. It said "No tab group defined for launch configuration type org.eclipse.jdt.launching.localJavaApplication"
What should I do?
How can I run my java applications?
Quite contrary to what you assume, eclipse isn't a Java IDE with some other addons. Eclipse is just a platform. As the package comparison shows, the C/C++ package doesn't come with the Java development tools.
Make sure you have correct eclipse version is downloaded? There will be separate eclipse version available for Eclipse for java.
http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/indigor
Hope this help.
If you have the JDT installed, then make sure you are in the Java perspective. Either:
Window->Open Perspective->Java (default)
Use the perspective switching tab, usually the top-right of your code editor
You can install the JDT, if you don't have it by using:
Help->Install New Software...
Try to install follow this link http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/indigor if it's work. i think your eclipsec/c++ may be have a problems while install java. You can reinstall or using eclipse for java.
Is eclipse platform independent?
As per my knowledge, eclipse is written in java. If it is so eclipse should be platform independent. But there are different eclipse for different OS???
No, you need to download a platform specific version because of SWT which accesses the native GUI libraries of the operating system using JNI. Note that Eclipse provides versions for most platforms (see for example All Platforms for the Eclipse SDK 3.5.1).
There are distributions of Eclipse for most Intel/AMD based platforms and for major UNIXs.
You are also supposed to be able to compile and build it yourself on other platforms.
The differences stem primarily from three issues:
1) Availability of needed Java distribution on the platform (e.g., late introduction of newer Java versions on Mac).
2) 32bit vs. 64bit
3) Underlying UI toolkit
While Eclipse can run under Swing, it may look like crap and perform pretty badly.
People often expect more from the IDE, so the SWT can use some native widgets. Some plug-ins also need more direct access to the graphic subsystem. This, there are specific distributions of Eclipse that use specific platform graphic infrastructure. The most notable example is again Mac OS, where there was initially a version for Carbon, but only much later did a Cocoa version show up.
Most OS should support Eclipse. As long as it supports Java and SWT
If it is 100% java-based application, yes it will be platform independent. The problem is some code of Eclipse is not Java, so it's obvious that because of this code, Eclipse is not 100% platform independent. You can however just change that particular native jars with the suitable jars for your platform and Eclipse will then run correctly.