Unix Technical Forum

Developing Java Programs under Slackware.

This is a discussion on Developing Java Programs under Slackware. within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi, I take a computer science course in school and the language we use is Java. I installed Slackware ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 05:38 PM
Jack Wang
 
Posts: n/a
Default Developing Java Programs under Slackware.

Hi, I take a computer science course in school and the language we use
is Java. I installed Slackware 10.2 and JDK 1.50_01. Where can I find
programs (IDEs) so I can start write and run my java code? I compiled a
sample program with javac, now how do I run it? Will awt and Swing work
the same way as on Windows?

Thanks for helping!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 05:38 PM
Realto Margarino
 
Posts: n/a
Default Re: Developing Java Programs under Slackware.

Jack Wang <wk1989@gmail.com> trolled:
> Hi, I take a computer science course in school and the language we use
> is Java. I installed Slackware 10.2 and JDK 1.50_01. Where can I find
> programs (IDEs) so I can start write and run my java code? I compiled a
> sample program with javac, now how do I run it? Will awt and Swing work
> the same way as on Windows?


Go on google and type "java ide linux" and you'll find all kinds of
free stuff.

Most of the people here use their own "ides" using X and the
operating system from the command line. It is easy to use multiple
copies of vi/emacs and bash shells in multiple xterm windows, to get
something a lot easier to work with than an ide.

cordially, as always,

rm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 05:38 PM
Eivind E
 
Posts: n/a
Default Re: Developing Java Programs under Slackware.

Den Wed, 10 May 2006 14:45:08 -0700, skrev Jack Wang:

> Hi, I take a computer science course in school and the language we use is
> Java. I installed Slackware 10.2 and JDK 1.50_01. Where can I find
> programs (IDEs) so I can start write and run my java code? I compiled a
> sample program with javac, now how do I run it? Will awt and Swing work
> the same way as on Windows?
>
> Thanks for helping!


Well, for java I prefer using Eclipse (see http://www.eclipse.org)
which works decent, and even have cvs-support that works, atleast for
sourcefiles, I've had some problems with binary files of different kind.
Dunno if that's important to you though.

I can't say I've compared awt and swing between platforms much, but from
a project where some folks I worked with used Windows, we had no problems
with things working on one platform and not working on the other.

Good luck

--

_
//
_ //
\\ //
\\//
\/

Eivind E

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 05:38 PM
Chris Sorenson
 
Posts: n/a
Default Re: Developing Java Programs under Slackware.

Jack Wang wrote:
> Hi, I take a computer science course in school and the language we use
> is Java. I installed Slackware 10.2 and JDK 1.50_01. Where can I find
> programs (IDEs) so I can start write and run my java code? I compiled a
> sample program with javac, now how do I run it? Will awt and Swing work
> the same way as on Windows?
>
> Thanks for helping!
>


Netbeans has a pretty spiffy IDE:

http://www.netbeans.org/products/ide/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 05:38 PM
Alan Clifford
 
Posts: n/a
Default Re: Developing Java Programs under Slackware.

On Wed, 10 May 2006, Realto Margarino wrote:

RM> Jack Wang <wk1989@gmail.com> trolled:
RM> > Hi, I take a computer science course in school and the language we use
RM> > is Java. I installed Slackware 10.2 and JDK 1.50_01. Where can I find
RM> > programs (IDEs) so I can start write and run my java code? I compiled a
RM> > sample program with javac, now how do I run it? Will awt and Swing work
RM> > the same way as on Windows?
RM>

RM> Most of the people here use their own "ides" using X and the
RM> operating system from the command line. It is easy to use multiple
RM> copies of vi/emacs and bash shells in multiple xterm windows, to get
RM> something a lot easier to work with than an ide.
RM>

Realto, I think there is a bit of a culture problem here - nothing to
click. You needed to state that the java program can be run from the
xterm command prompt and specify what that command line might be. I
haven't used Java for a bit so I have forgotten :-(

Jack, text editor in one window, command line in the other. Just arrow up
to get the command line again. On my linux computer, I have kde set up so
that the focus follows the mouse so switching between windows doesn't even
need a click.


-- Alan

( If replying by mail, please note that all "sardines" are canned.
There is also a password autoresponder but, unless this a very
old message, a "tuna" will swim right through. )

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 05:38 PM
Liam O'Toole
 
Posts: n/a
Default Re: Developing Java Programs under Slackware.

On 10 May 2006 14:45:08 -0700
"Jack Wang" <wk1989@gmail.com> wrote:

> Hi, I take a computer science course in school and the language we use
> is Java. I installed Slackware 10.2 and JDK 1.50_01. Where can I find
> programs (IDEs) so I can start write and run my java code? I compiled
> a sample program with javac, now how do I run it? Will awt and Swing
> work the same way as on Windows?
>
> Thanks for helping!
>


If I were you I would avoid IDEs for the moment. Instead, concentrate on
learning the basics: how to edit, compile, and run Java programs. An IDE
is a completely over-the-top way of achieving these, and in fact can
insulate you from many things you should be appreciating and understanding.

Set yourself up with a terminal (to compile and run programs), an
editor (to edit source code), and a WWW browser (to study Javadoc).
Anything else would be a distraction at this stage.

--

Liam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 05:38 PM
Corrado
 
Posts: n/a
Default Re: Developing Java Programs under Slackware.

Liam O'Toole ha scritto:
> Set yourself up with a terminal (to compile and run programs), an
> editor (to edit source code), and a WWW browser (to study Javadoc).
> Anything else would be a distraction at this stage.


Yeah, completely right. If you want to *understand* and not just
compile&run for your school exercise, of course..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 05:38 PM
Jack
 
Posts: n/a
Default Re: Developing Java Programs under Slackware.

Thanks, I'm pretty much all set now.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2008, 05:38 PM
Miguel De Anda
 
Posts: n/a
Default Re: Developing Java Programs under Slackware.

Corrado wrote:

> Liam O'Toole ha scritto:
>> Set yourself up with a terminal (to compile and run programs), an
>> editor (to edit source code), and a WWW browser (to study Javadoc).
>> Anything else would be a distraction at this stage.

>
> Yeah, completely right. If you want to *understand* and not just
> compile&run for your school exercise, of course..


Heh, "understand", I think schools generally don't even teach about source
control. Name me a school that teaches (basics even) about cvs and
subversion and I'll say "wow".


*** Posted via a free Usenet account from http://www.teranews.com ***
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-20-2008, 05:42 PM
D Herring
 
Posts: n/a
Default Re: Developing Java Programs under Slackware.

Jack Wang wrote:
> Hi, I take a computer science course in school and the language we use
> is Java. I installed Slackware 10.2 and JDK 1.50_01. Where can I find
> programs (IDEs) so I can start write and run my java code? I compiled a
> sample program with javac, now how do I run it? Will awt and Swing work
> the same way as on Windows?


Take a look at jEdit (www.jedit.org). I find the BufferTabs, JDiff,
Project Viewer, and Whitespace plugins to be particularly helpful.

You probably figured it out already, but the basic commands to compile
and run a program are
> javac progname.java
> java progname


AWT and Swing work 99% the same on Linux and Windows. Nothing to worry
about unless you are distributing commercial code.

If you are new to programming, take the time to learn and use
subversion. Worth more than its weight in gold.
subversion.tigris.org
http://svnbook.red-bean.com/
tortoisesvn.tigris.org

- Daniel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:06 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com