• Post Reply Bookmark Topic Watch Topic
  • New Topic

J2SE 5  RSS feed

 
Vijay Kandasamy
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone please tell me how to install J2SE 5 compiler? I have tried few times, did not work. thanks.
 
Rusty Shackleford
Ranch Hand
Posts: 490
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://java.sun.com/developer/onlineTraining/new2java/programming/learn/

You probably didn't set your path.

In the future, be more descriptive. Saying something doesn't work is not very helpful. Describe what exactly is happening and what, if any messages are shown.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the J2SE 5.0 download page. I suggest using the "Download JDK 5.0 Update 6" link -- without the NetBeans bundle.

Follow these installation instructions.

To verify installation, see this Hello World example.
 
Tony Shivpershad
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by marc weber:
without the NetBeans bundle.


Hi Marc,

I am curious why you advised against installing the JDK with the NetBeans bundle.

The reason that I am asking is that yesterday installed SKD 1.5 update 6 with the NetBeans bundle. At the end of the day I did a virus scan and now I am finding a virus that I can not figure out how to clean. It's called Java.Shinwow.BA.

Thanks,
Tony
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know anything about Java.Shinwow.BA, and I don't know of any security concerns related to NetBeans.

My only reasons for skipping the bundled download are:
  • NetBeans (or any other IDE) is not something you need if you are just starting Java. And if you change your mind later, you can always download later from netbeans.org.
  • A lot of people have reported problems downloading and/or installing the bundled version. (When I was using a Windows machine, I could not get the NetBeans version to install.)
  •  
    Vijay Kandasamy
    Greenhorn
    Posts: 6
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    hello,
    Thank you all for your reply. I have installed the J2SE 5 with update 6.
    when I Click on START -> ALL Programs Menus, I don't see any Icon or anything listed for Java. In that Case, how do I write some programs and compile? I have remeoved and re-installed many times , but same results. I don't see any Icon/list for Java when I click on Start menu. Am I doing something wrong? I am planning to write the SCJP exam first week of March, so pls help. Is it possible to get the J2SE 5 in CDs? Thanks
     
    marc weber
    Sheriff
    Posts: 11343
    Java Mac Safari
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Vijay,

    You won't see an icon or a listing under the Programs menu. Basically, you will be compiling and running Java from the command line. In Windows, this means opening the Windows Command Prompt (which I believe is under Start > Programs > Accessories), then using basic commands like "cd" to change the working directory, "javac" to run the Java compiler, and "java" to run a Java program.

    See the links I posted above for "installation instructions" and the "Hello World" example. The Hello World example will take you step by step through compiling and running a program using the command line.
    [ February 20, 2006: Message edited by: marc weber ]
     
    Vijay Kandasamy
    Greenhorn
    Posts: 6
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Marc,
    Thank you sooooo much for your reply. I was able to compile the HelloWorldApp.java program.
    When I compile :
    javac HelloWorldApp.java
    I did not get any error message. But When I run the HelloWorldApp.java
    java HelloWorldApp
    I got the follwing error message.
    "Exception in thread 'main' java.lang. NoClassDef Found Error. HelloWorldApp/java".

    Any Idea? Thanks.
     
    Vijay Kandasamy
    Greenhorn
    Posts: 6
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Marc,
    Thanks.
    It works now. Thanks again for your help.
     
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!