Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 22nd, 2006, 12:10 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 100
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ~Bean~
Default Java Newbie

I am thinking of learning Java for building website pages or some Java applets, and I have some newbie questions.

-Do Java pages and applets run under Windows servers without any special plug-in or intalls?

-What do I need to start developing Java pages and applets (a compiler?)?

-How do Java applets compare to Flash swf files on the web?

-I see refernces to Java and Java 2...what is the difference? Are they the same thing?


-------------------------
Beware of programmers with screwdrivers...
__________________
-------------------------
Beware of programmers with screwdrivers...
Reply With Quote
  #2 (permalink)  
Old March 22nd, 2006, 12:26 PM
Authorized User
 
Join Date: Mar 2006
Location: , , United Kingdom.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Others can fill in some of the details, but basically you can run Java applets through most browsers without the need for special plugins etc. But I *think* that MS browsers only have support for Java 1.1, and I hope I'm not misleading you. Java 2 is the same as Java 1.2. The latest public release is Java 1.5. So you might need to be careful that you don't code for a version that doesn't run in people's browsers, unless you're happy to direct them to somewhere where they can download them from.

To start developing, you need the Java Development Kit, from java.sun.com somewhere.

Reply With Quote
  #3 (permalink)  
Old March 23rd, 2006, 08:17 AM
Authorized User
 
Join Date: Mar 2006
Location: , , .
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To start Java Programs, be ready with the following things :-

JDK1.5 : Java S/W Installer
EditPlus (IDE) : Best for Beginners
DataBase : MySQL/Oracle/MS-SQL-Server/Access
Next, ur PATH should points to java's bin dir

Actually, these are enough to do stand-alone applications. To do web applications, u need to install Tomcat/JBoss.
U should take care in case of PATH & CLASSPATH settings.


Reply With Quote
  #4 (permalink)  
Old March 23rd, 2006, 11:50 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: , , USA.
Posts: 100
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ~Bean~
Default

OK, its getting clearer but I am still a little confused about what I need.

I am looking at Sun's site and I'm not sure if I should have the J2EE or the J2SE. Is the JDK 1.5 the same thing as the "Java EE 5 SDK"? I don't see a "JDK 1.5", but I do see a "JDK 5.0" which comes with the J2EE package (and also comes with the J2SE package).
I probably will not be using Java Server Pages, I just want to try out a few desktop applications and webpage applets. So I won't need Tomcat, right? But which SDK do I use? I may want my applets to talk to a database, is that possible with applets or do I need .jsp's to do that?

Also, what is "Java Studio Creator"? an IDE?


-------------------------
Beware of programmers with screwdrivers...
Reply With Quote
  #5 (permalink)  
Old March 23rd, 2006, 02:06 PM
Authorized User
 
Join Date: Mar 2006
Location: , , United Kingdom.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can't help with the database part of the question. I'm not sure what EE ('enterprise edition') is for, but I've got SE, which is 'standard edition'. So JDK SE 1.5 (or 5, if they're calling it that) should do you fine.

Reply With Quote
  #6 (permalink)  
Old March 28th, 2006, 09:19 AM
Authorized User
 
Join Date: Mar 2006
Location: , , .
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

JDK SE 1.5 is correct way.

Webservers like Tomcat/JBoss are comes with EE.

Reply With Quote
  #7 (permalink)  
Old March 29th, 2006, 11:55 AM
Friend of Wrox
Points: 1,515, Level: 15
Points: 1,515, Level: 15 Points: 1,515, Level: 15 Points: 1,515, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2003
Location: Oxford, , United Kingdom.
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Lots of answers:

- Yes, M$ browsers /do/ only support up to java 1.1 and they suck in so many other ways, too! However, you can direct people to download the java plugin for their browser and then it will support the latest java.

- Abbreviations
  - 'EE' means 'Enterprise Edition'
  - 'SE' means Standard Edition and
  - 'ME' means Micro(?) Edition.
  - JDK and J2SDK mean Java Developer Kit and Java 2 Developer Kit - these have all the compilers and libraries you need to get started writing java code. They are the same thing but Sun went through some branding crisis or whatever...
  - JRE and J2RE mean Java Runtime Environment and Java 2 Runtime Environment these are the bits you need to run Java programs.

- To learn java programming I'd stick with the Standard Edition. The Enterprise Edition is pretty much the same but comes with many more libraries and is consequently a pig to download. I'd wait 'til you need it.

- From a security p-o-v, I'd generally stick to keeping your database server accessible only from your local machine, which would rule out using Applets to access your database. JSP or servlets are fine if you want to use information from your database to generate HTML pages.

- Tomcat does not come with the EE AFAIK. It's a product of the Apache foundation and lives at http://tomcat.apache.org/ . I definitely recommend you getting hold of Apache if you're planning on running a webserver - it rocks!

- IDE-wise I've heard great things about eclipse - http://www.eclipse.org/ . Personally, I use VIM - http://vim.org which kicks ass but is far from intuitive - and javac (the compiler that comes with the ). Notepad is fine for the first few months playing with java, although something which does syntax highlighting could also be handy.

- On java vs flash I don't want to ignite a religious war so this is all IMO.
  - Java - more powerful, open source (ish), slower
  - Flash - simpler to develop, faster for things like animations, less flexible, proprietary

HTH
Charlie



--
Don't Stand on your head - you'll get footprints in your hair
                                           http://charlieharvey.org.uk
                                              http://charlieharvey.com
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Root Cause:java.lang.NoSuchMethodError: java.util. anees81 JSP Basics 3 March 1st, 2011 08:55 AM
java.lang.OutOfMemoryError: Java heap space meetkotresh J2EE 1 February 2nd, 2008 01:52 AM
newbie on java need help jhanny007 Java Basics 3 January 5th, 2007 09:39 AM
Java Code - Wrox - Beginning JAVA - Ivor Horton ponguru Java Databases 3 May 18th, 2006 12:30 PM
Java vs Java Script functions joemorrison74 J2EE 0 July 6th, 2005 04:28 PM



All times are GMT -4. The time now is 04:57 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.