LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-29-2003, 01:09 PM   #1
newbieX
LQ Newbie
 
Registered: Oct 2003
Posts: 6

Rep: Reputation: 0
Question programming with java in linux?


hi i am new to linux and i like it so far. i am taking classes in school where i have to program in java. i have been doing it in windows in 'text pad' without no difficulty's. i cant figure out how i am suppose to do it in linux. i am running a 'knoppix' on a toshiba laptop. any advice?
 
Old 12-29-2003, 04:12 PM   #2
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Rep: Reputation: 30
eclipse
 
Old 12-29-2003, 04:22 PM   #3
darin3200
LQ Guru
 
Registered: Dec 2002
Distribution: Gentoo!
Posts: 1,153

Rep: Reputation: 45
I wrote a linuxanswers article on java in linux which you can find here although you can probably skip the part about installing the java 2sdk because I'm pretty sure knopix comes with it.
 
Old 12-29-2003, 08:27 PM   #4
sharper
Member
 
Registered: Aug 2002
Location: MN USA
Distribution: slakware 9.0
Posts: 121

Rep: Reputation: 15
Use whatever text editor you like. I've used both vi and emacs for some simple programming. Only thing is, if your instructor wants to look at the source code on a windows box the line breaks are all messed up. I ended up after wrting the program having to open the source in a dos edit window and then save it without making any changes. That changed all the line breaks from unix to windows.
 
Old 12-29-2003, 08:36 PM   #5
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Linux is an excellent platform for programming, and Java is no problem either. Get the j2sdk package from Sun, install it, and then go with your favourite editor.

I use gvim (aka vim-gtk) when I write code, it offers pretty syntax highlighting and zillions of features. It also lets you choose which text file format you want to save as - MS-DOS (Windows), Unix (Linux) or Macintosh. Works a charm!


Håkan
 
Old 12-29-2003, 10:12 PM   #6
darin3200
LQ Guru
 
Registered: Dec 2002
Distribution: Gentoo!
Posts: 1,153

Rep: Reputation: 45
My favorite java editor is kwrite. Once if you start by saving it as a .java file it colors that text, does highlighting, and makes code boxes collapsable.
 
Old 12-30-2003, 05:46 AM   #7
UltimaGuy
Member
 
Registered: Aug 2003
Location: Chennai, India
Distribution: PCLinuxOS .92, FC4
Posts: 840

Rep: Reputation: 31
Download and install the Netbeans from here --> http://www.netbeans.org/.
 
Old 12-30-2003, 06:05 AM   #8
nephilim
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Debian (server), Kubuntu (desktop)
Posts: 248

Rep: Reputation: 30
Quote:
Originally posted by Joey.Dale
eclipse
What he said
 
Old 12-30-2003, 06:50 AM   #9
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
I would suggest *not* using a full-blown IDE like Eclipse. It takes more effort to learn how Eclipse works than to learn Java and it distracts attention from the programming itself.

That's my two cents anyway.


Håkan
 
Old 12-30-2003, 07:39 AM   #10
nephilim
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Debian (server), Kubuntu (desktop)
Posts: 248

Rep: Reputation: 30
It's true that mastering eclipse is not that easy, but once you learn the most important features of eclipse, you will no doubt realize it is extremely powerful.

As in most cases, it all depends on what you are going to do with it. Writing small programs that are not too complex? You can do that with a simple text editor. Writing complex programs? Use eclipse.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Programming in Linux alexgsummer Programming 35 03-29-2005 10:03 AM
java programming on linux cyborg_jt Programming 20 02-04-2004 07:42 PM
Programming java in linux heming Linux - Software 4 02-28-2003 03:40 PM
Java programming in linux heming Linux - Newbie 4 02-28-2003 09:34 AM
Java programming in linux heming Linux - General 3 02-28-2003 09:32 AM


All times are GMT -5. The time now is 07:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration