7

I want an editor that is as good as TextPad (for Windows) for compiling and running Java programs on Ubuntu 12.04. Please suggest one.

Eliah Kagan
  • 117,780
Ankit
  • 6,779
  • Please write a bit more about what features you need and maybe what you don't like in other editors you have seen so far. That would make it much easier to suggest programs that fit your needs, even for people not knowing Textpad. – Florian Diesch Jul 23 '12 at 22:25
  • i want features like:- 1> compile and run from the editor 2> Syntax highlighting 3> want to see the actual errors notifications from JVM. Currently i am using eclipse but it's very user friendly (ctrl + k ) does all the job. – Ankit Jul 23 '12 at 22:33
  • As mentioned by @Yems, NetBeans is as powerful as Eclipse, and it covers exactly your needs on 1> Compiling and running from the editor, 2> Syntax errors highligting, 3> JVM actual errors notifications. I was about to suggest you the NetBeans but Yems did it already. – Geppettvs D'Constanzo Jul 23 '12 at 22:38
  • thanks for the information; but i want a lightweight text editor with same functionality and some keyboard shortcuts would be very helpful. Like if could configure vi/vim to recognize java syntax and compile and run the programs with some keyboard shortcuts. – Ankit Jul 23 '12 at 22:47

6 Answers6

6

Geany

From the official site:

Geany is a text editor using the GTK2 toolkit with basic features of an integrated development environment. It was developed to provide a small and fast IDE, which has only a few dependencies from other packages. It supports many filetypes and has some nice features.

Screenshot from the official site


jEdit

Additionally, jEdit (man page) seems to be another excellent option for your tasks.

From the man site:

jEdit is a cross-platform text editor written in Java. It has an extensive feature set that includes syntax highlighting, auto indent, folding, word wrap, abbreviation expansion, multiple clipboards, powerful search and replace and much more.

Furthermore, jEdit is extremely customizable, and extensible, using either macros written in the BeanShell scripting language, or plugins written in Java. With plugins, you can create a very powerful development environment for HTML, XML, C/C++, Python, Perl, Ruby, Lisp, Scheme, and many others.

jEdit Requires Sun Java 2 version 1.5.

jEdit is released under the GNU General Public License, which can be found in the online help.

Screenshot from the official site

David Foerster
  • 36,264
  • 56
  • 94
  • 147
3

I suggest Eclipse! It have a lot of documentation in diferent languages and it's a wonderfull IDE

enter image description here

Suhaib
  • 4,110
3

IntelliJ IDEA, a fully fledged Java IDE by Jetbrains, has gained a lot of traction during the recent years. It provides integration with many common frameworks and tools like Git, Web development, Java application servers and Android.

official IntelliJ screenshot

I consider it to be a worthy successor to Eclipse, which has become slow and collected a lot of cruft and asinine behaviour.

IntelliJ IDEA “Community Edition” is free, open-source software (and the base for the “Ultimate Edition” which includes a bunch of features based on closed-source, proprietary extensions geared towards professional collaborative software development with larger code bases).

David Foerster
  • 36,264
  • 56
  • 94
  • 147
2

Look, there is an IDE called NetBeans in which you can edit, compile and run Java programs. This program is for editing in java. I've tried it on Ubuntu 11.10 without any complication for University homework and I have read that it runs natively on 12.04

enter image description here

NetBeans includes its own editor which has several features useful for programming, download it in: http://www.oracle.com/technetwork/java/javase/downloads/index.html

Sorry my English, I am using a translator since my native language is the Spanish. Best regards

Suhaib
  • 4,110
Yems
  • 41
1

Notepad ++ is a better notepad. You could also look for eclipse or Netbeans for java editting.

Here are links for eclipse which is what I use: http://www.eclipse.org/downloads/ I use the classic version but have the EE installed as well

0

Emacs, of course.

Install with:

sudo apt install emacs
haziz
  • 2,929