p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Java Basics (http://p2p.wrox.com/forumdisplay.php?f=199)
-   -   Java Newbie (http://p2p.wrox.com/showthread.php?t=40203)

~Bean~ March 22nd, 2006 12:10 PM

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...

neilsands March 22nd, 2006 12:26 PM

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.


Mr. Ram March 23rd, 2006 08:17 AM

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.



~Bean~ March 23rd, 2006 11:50 AM

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...

neilsands March 23rd, 2006 02:06 PM

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.


Mr. Ram March 28th, 2006 09:19 AM

JDK SE 1.5 is correct way.

Webservers like Tomcat/JBoss are comes with EE.


ciderpunx March 29th, 2006 11:55 AM

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


All times are GMT -4. The time now is 01:53 AM.

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