Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
    
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
add comment

4 Answers 4

up vote 3 down vote accepted

You may wish to give a chance to 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.

enter image description here Screenshot from the official site.

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.

enter image description here Screenshot from the official site.

Good luck!

share|improve this answer
add comment

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|improve this answer
    
isn't it only for windows? –  Web-E Jul 24 '12 at 4:29
1  
@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). –  Eliah Kagan Jul 24 '12 at 17:44
add comment

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

share|improve this answer
add comment

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

enter image description here

share|improve this answer
    
I use Eclipse everything for work, and i haven't found a better IDE to date. –  ThiagoPonte Jan 22 '13 at 11:23
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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