LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-27-2005, 09:25 PM   #1
efm
Member
 
Registered: Apr 2005
Location: indonesia
Distribution: suse 10
Posts: 101

Rep: Reputation: 15
questions about programming...


hello,

what do you guys make in linux using j2ee?

i'm interested in j2ee, can someone tell me what it is? (because i can't get any point in
java.sun website). and to start learning it, what do i need to do? do i need netbeans?
are there any good website for tutorials?

i'm a programmer (windows) and a common linux user, but a totally newbie about
linux+j2ee,

thank you
 
Old 11-27-2005, 09:41 PM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 58
sun microsystems developed the Java programming language, which is what you are talking about.

to start.. youll need to download the JDK (java development kit) in order to compile/run your apps.. or you can use gcj.. i have never tried the latter.

after that, just jump right in.. read the java docs and tutorials no the sun site (you said you cant get to the site? why not?) or find another similar resource (however sun's one is excellent).

what can you make? anything any other programming language can make..

again.. the best way to start is to jump right in, reading up about it and following the tutorials and try the examples they show you.. after you get the basics you can accomplish quite a bit

edit: sorry i skipped the part where u said you are a programmer.. i was writting this with the impression that you were completly new to any computer programming language...

now, after knowing this.. have you ever written anything in java?

Last edited by nadroj; 11-27-2005 at 09:43 PM.
 
Old 11-27-2005, 10:29 PM   #3
efm
Member
 
Registered: Apr 2005
Location: indonesia
Distribution: suse 10
Posts: 101

Original Poster
Rep: Reputation: 15
hey, thanks for the reply,

well...i was into anything but java shame on me i learned vb, delphi, .net, but never java (i learned
java and c/c++ once, but i left them behind to focus on those visual programming, but i totally regret it,
so i guess the development of java has left me behind )

i visit sun.java website, but there are so many options, tutorials, and i don't know where to step first,
and to download, there are so many options...sdk this, sdk that....and to your opinion, which one do
i have to download?
so i put my questions here to you all java programmers,

Quote:
what can you make? anything any other programming language can make..
but mostly, do you make applications like those made with vb or .net? and what ide do you use (i only
know netbeans), and if i want to make a web application with j2ee, is apache webserver enough?

thank you
 
Old 11-27-2005, 11:19 PM   #4
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 58
i started with vb also.. but v6.0; .NET wasnt developed yet.
i dont think its a bad language to start out with, especially .Net

to start programming in java, you need the sdk.. go to the downloads page
from here, click "Download J2SE SDK"

you must accept the license agreement in order to continue to download/install it, so do so (if you agree to what you read )

then simply choose your OS and read the instructions that come with it.

since ur using suse, its obviously linux.. and the easy choice would be to click "RPM in self-extracting file" under "Linux Platform - Java(TM) 2 SDK, Standard Edition 1.4.2_10" heading.

click here for help about installing the rpm.

what do you mean make 'make apps like in vb or .net'? you mean graphical/GUI? of course, if you want to. not sure what ur asking here though.

dunno about ur web question, i dont use it to make web apps.

IDE? without a doubt is Eclipse (eclipse.org)... superb IDE.

good luck

::EDIT::
_STRONGLY_ recommend reading this excellent beginner tutorial about java by someone here at lq.org (clicky)

note the 'getting started' section.. it mentions about the tools youll need to use java to compile/run programs.. and how to setup the path if its not recognized already.

Last edited by nadroj; 11-27-2005 at 11:39 PM.
 
Old 11-27-2005, 11:37 PM   #5
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

"Java" and "J2EE" are really two different things.

The netbeans IDE is a very good way to learn both:
http://www.netbeans.org/

As far as Sun's tutorials, you can look here:

a) Java ("Java 2 Standard Edition": the Java "language"):
http://java.sun.com/docs/index.html

b) J2EE ("Java 2 Enterprise Edition": a distributed infrastructure):
http://java.sun.com/j2ee/1.4/docs/index.html

But I would strongly recommend either of these two books:

Headfirst Java:
http://www.bookpool.com/sm/0596009208

Headfirst Servlets and JSP:
http://www.bookpool.com/sm/0596005407
... or ...
JBoss: A Developer's Notebook
http://www.bookpool.com/sm/0596100078

There are lots of good introductory books on Java (J2SE). "Headfirst Java" is good for many people, "Just Java" or "Core Java" are equally preferred by a different group of people. Any of the three (and many other equally good books) are well written and have solid technical content.

There really *aren't* that many good books on J2EE (at least not that I've seen). Rather, I'd recommend one (or both) of the following:

a) Focus on the JSP aspects of J2EE (such as in the "Headfirst Servlets and JSP" text)
... or ...
b) Get a J2EE container and play with J2EE stuff (the open-source "JBoss" project is an excellent choice)

I'd again like to emphasize that the open-source NetBeans IDE lets you play with Java, with JDBC and JSP, with J2EE, and with everything in between. It's much better than its closest competitor (the open-source Eclipse IDE) in that respect.

'Hope that helps .. PSM
 
Old 11-27-2005, 11:47 PM   #6
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 58
i was wondering where your first comment came from, but i found it was referring to my first post.

i was not implying they were the same and i know they arent. (i should have been more clear i guess, sorry)

i was just referring to 'java' rather than 'j2ee' because thats what i thought he really meant.. as stated in my edit of the first post i said that i wrote the post thinking that he was a new comer to java and wasnt using the correct terms... someone beginning in java is going to learn with the j2se not j2ee.

anyways, thanks for the catch.

how come you prefer netbeans? i think iv tried it about a year ago, but when i tried eclipse i was amazed
 
Old 11-28-2005, 12:34 AM   #7
efm
Member
 
Registered: Apr 2005
Location: indonesia
Distribution: suse 10
Posts: 101

Original Poster
Rep: Reputation: 15
netbeans is offered in the sun.java website, so i downloaded it,
(and the j2se as well),and i like it, although it seems slow on my computer

Quote:
"Java" and "J2EE" are really two different things.
do you mean about the language, or about how they work and handle things?

nadroj, thanks for the steps the problem i faced was to choose between j2se, j2me, j2ee, and
j2ee with application server, j2ee with etc.....but i'll do your direction

Quote:
someone beginning in java is going to learn with the j2se not j2ee
but it's still ok for me to learn j2ee without learn j2se first, isn't it?

and, i thought eclipse and java (j2xx) are two different things...
 
Old 11-28-2005, 01:37 AM   #8
paulsm4
Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
efm -

If you want to be a J2EE administrator, by all means download JBoss, or a trial version of websphere, and play around with it.

But if you want to *program* in J2EE, you should definitely feel comfortable with J2SE first.

J2SE more or less == "the Java programming language".

I would recommend getting one or more of the books I mentioned above - I do *not* believe on-line tutorials are adequate for learning Java.

I would recommend downloading the basic SDK and learning to compile and run Java from the command line. I believe it's important.

But, in addition to familiarizing yourself with the command-line SDK, by all means try out one or more of the Java IDEs. Netbeans and Eclipse are two of the best open source IDEs. I'm familiar with both, I happen to prefer NetBeans (most of the time ;-)). Idea4J and JBuilder are two popular commercial IDEs. Choose whichever one you're most comfortable with.

'Hope that helps .. pSM
 
Old 11-28-2005, 09:55 PM   #9
efm
Member
 
Registered: Apr 2005
Location: indonesia
Distribution: suse 10
Posts: 101

Original Poster
Rep: Reputation: 15
hi,

i'm trying the j2se 5 and the netbeans 4.1 right now,
btw, there is the term "swing" in netbeans, it's the same as "components" in vb, right? i see that
there are not much swing components in netbeans. is it downloadable somewhere? or there are other
ide which may give me more swing components?

and i really confused about j2se and j2ee. when i get into their website, it seems that j2ee is like
an enormous application, and it really freaks me out...

thank you
 
Old 11-28-2005, 10:08 PM   #10
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 58
ok.. untill your comfortable with J2SE, pretend J2EE does not exist
just dont worry about j2ee or any other java technologies untill your comfortable with the basic/standard J2Se.. thatll make things easier.

swing is a package in java.. it is the newer version of their GUI stuff (the older one is AWT).
dont worry about swing or awt or any of that stuff till you have got your feet wet and know the basics of OOP with java.. thatll help you out later.

but if you are curious.. this page is about swing, from the sun site.

again.. dont worry about anything but J2Se untill your comfortable with most of it... and dont worry about swing/awt/GUI programming untill you have done this too.

(my recommendation.)
 
Old 11-29-2005, 05:30 AM   #11
vivekr
Member
 
Registered: Nov 2005
Location: Coimbatore,India
Distribution: Fedora Core4
Posts: 68

Rep: Reputation: 15
Quote:
Originally posted by paulsm4
efm -
J2SE more or less == "the Java programming language".
Is there any difference between conventioonal Java and J2SE? I know java but I am confused by this statement. Can u explain?
 
Old 11-29-2005, 08:10 AM   #12
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 58
J2SE is one of the many java technologies... if you say you know 'standard java', this would be what you are talking about (Java2 Standard Edition)
 
Old 11-29-2005, 01:58 PM   #13
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,010

Rep: Reputation: 624Reputation: 624Reputation: 624Reputation: 624Reputation: 624Reputation: 624
symantically this is prolly a correct statement.

i think for these intent and purposes j2re/ j2se/ j2ee are all the same so long that they each contain the 'javac' compiler and the 'java' executable.

hth
____

edit: added 'i think' to the beginning of my statement.

Last edited by schneidz; 11-29-2005 at 02:00 PM.
 
  


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
2 programming questions hk_michael Programming 4 02-01-2005 12:02 AM
HELP!!!! 5 questions about linux programming jormuocu Programming 4 01-30-2005 05:17 PM
Programming Questions/Poll name_in_use450 Programming 10 07-15-2004 08:09 PM
programming questions eboats Linux - General 19 10-22-2001 05:15 PM
programming questions eboats Programming 4 10-17-2001 02:15 AM


All times are GMT -5. The time now is 05:32 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration