• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: Java in Linux

 
HaoZhe Xu
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Windows 2k now, I've written some pieces of code for my SCJD project, but I will use Linux from now on, is there any IDE in Linux for java? Can I just save my finished code and use it in Linux? What about the GUI in Linux, does XWindows support Swing/Awt? What system does the examiner use?
 
Ken Krebs
Ranch Hand
Posts: 451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HaoZhe,
It really doesn't matter which OS you use but hte assignment MUST be able run on either. You could also do it on a Mac if that's your preference. Your code should follow the Sun WORA mantra: "Write Once, Run Anywhere". Many have argued that it should be WORATE: "Write Once, Run Anywhere, Test Everywhere" but the application is simple enough that OS portability shouldn't be an issue. Swing and AWT provide an abstraction level above the OS's ui toolkit so there should be no difficulty here.
It's unknown which OS the tester will be using. It could even be Sun's own version of Unix, Solaris.

You don't really need an IDE to do the assignment but I prefer to use one that has support for refactoring for all my Java work. I use the free IDE, Eclipse, which is truly excellent and is well supported on Windows and Linux.
 
Matt R. Hansen
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HaoZhe,
Many IDE's written for Java Development will run on Linux. A couple of other ideas might be:
NetBeans (This can also be downloaded as a co-bundle with a linux JDK),
IntelliJ (My personal favorite, but isn't free),
JBuilder (also not free),
etc...
90% of my development is done on Linux, so if you have any other questions, feel free to email Me: mhansen55555(@hotmail.com).
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi HaoZhe,
I think Ken has done an excellent job of answering your questions.
Personally I did all my development work under Linux, and that is what I stated in my submission.
If you have not already noticed, we have a Linux/Unix forum here at JavaRanch, and if you have issues with Java or your IDE under Linux, you can also ask them there.
As Ken said, Eclipse is a very good (and free) IDE. I have also used JBuilder under Linux with excellent results (there is a free version).
Regards, Andrew
 
Jay Bromley
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello HaoZhe,
I've got a couple more thoughts for you on the IDE. I exclusively use Linux and have tried a variety of IDEs so here's my two cents.
Eclipse is good and free. If you're used to a visual IDE this one is for you. The only real problem I had with it is that it is HUGE, both in terms of download size and resource usage. If your machine isn't a newer one it can be quite slow. For example, I've got a Pentium II 266 MHz with 320 Mb and an 8.5 Gb IDE drive and despite the fact that I liked Eclipse very much, it just wasn't fast enough for me.
NetBeans seems like it could be quite comparable to Eclipse, but for me it lacked something. Maybe it was the clutter of the interface, I don't know, but I never liked it as much as Eclipse. It's GUI editor seems like it could be useful, though.
jEdit with a variety of plugins is a bit simpler, smaller, and quicker than either of the previous. With the right plugins you can actually get something fairly usable, though admittedly it will lack some of the more sophisticated features of Eclipse.
Emacs with JDEE is a possibility, but probably only if you already like Emacs. The JDEE is fairly good, though it does lack good debugger support (I believe this is the focus of the next release of JDEE).
Anyway, there are a lot of options and people here that can help you with any of them, so good luck.
Regards,
Jay Bromley
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic