What editor is as good as TextPad for compiling and running Java programs?

12,306

Solution 1

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

Solution 2

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

enter image description here

Solution 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).

Solution 4

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

Solution 5

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

Share:
12,306

Related videos on Youtube

Ankit
Author by

Ankit

Linux user since December, 2010. Have worked on various linux distros like red-hat, CENTOS and Ubuntu-desktop. Believe me Ubuntu-d is the best i have used. Junior Java Developer

Updated on September 18, 2022

Comments

  • Ankit
    Ankit over 1 year

    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.

    • Christopher B. Adkins
      Christopher B. Adkins almost 12 years
      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.
    • Geppettvs D'Constanzo
      Geppettvs D'Constanzo almost 12 years
      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.
    • Ankit
      Ankit almost 12 years
      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.
  • Web-E
    Web-E almost 12 years
    isn't it only for windows?
  • Eliah Kagan
    Eliah Kagan almost 12 years
    @Web-E It runs well in Ubuntu with Wine. I still prefer a native editor, but I haven't had any problems with Notepad++ via Wine (though apparently some features don't work).
  • ThiagoPonte
    ThiagoPonte over 11 years
    I use Eclipse everything for work, and i haven't found a better IDE to date.
  • Prahlad Yeri
    Prahlad Yeri over 8 years
    Don't use Mars if you are into Android development though. It crashes terribly on my ubuntu 14.04.
  • Prahlad Yeri
    Prahlad Yeri over 8 years
    WINE is a second-class citizen in linux world, and should only be resorted to if NO other alternative is available. In this case, there are a plethora of native editors in linux world. I used to be a Notepad++ fan earlier, but found that with a little bit of tweaking, Geany can surpass Notepad++.