aspose file tools*
The moose likes Beginning Java and the fly likes Down loading software Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Down loading software" Watch "Down loading software" New topic
Author

Down loading software

sumaraghavi ragha
Ranch Hand

Joined: Nov 17, 2006
Posts: 118
Hi

I want to install java Software on my machine and run the basic programs.SO please tell what is the latest version of java.And i tried from www.Sun.com I got jre in my system the programs not running so please provide a link exactly what i have to do run my progrmas

Thanks in advance
Suma
jaspreet atwal
Ranch Hand

Joined: Sep 05, 2007
Posts: 52
Latest version java is java 1.6. You need to install Java SDK 1.6( or 6). You may follow below link, I hope this works for you.

https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u6-oth-JPR@CDS-CDS_Developer


Still Learing..
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Originally posted by sumaraghavi ragha:
...I got jre in my system the programs not running...

Can you give us more details?

What are you attempting to run? How are you attempting to run it? And how is it failing?


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
sumaraghavi ragha
Ranch Hand

Joined: Nov 17, 2006
Posts: 118
Hi

Thanks for reply!!

I am trying to run simple java program called Helloworld.
SO what all the things i have to do for that
1)Java software link where can i get exactly
2) class path setting i set the enviroment variables but still javac is not regonized......etc is coming

I downloaded from sun's website i think i got only jre1.6 not jdk 1.6 so my program is not running properly

Please provide me the links for software downloading and classpath setting in the environment variavle section and command prompt

I tried a lot but not getting currect web link
Please provide me

Thanks in advance
Suma
sumaraghavi ragha
Ranch Hand

Joined: Nov 17, 2006
Posts: 118
hi

One more

How can i know java installed in my system
Thanks
Suma
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38902
    
  23
What operating system are you using?
Can you open a command prompt window (Windows) or a terminal/shell Window (Unix/Linux) or whatever you use on Mac OS/X?
Open a command prompt/shell. Write the following two commands:
  • java -version
  • javac -version
  • If you get a sensible response, eg 1.6.0_06 for both, then you are all right. If you get something like "java is not recognised . . ." then you need to download and install Java. Go to the link Jaspreet Aswal gave you, or here, and click where it says JDK6 update 6. Both links will get you to the same place eventually.
    Make sure to follow the installation instructions, including the bit about updating the PATH. The PATH is very important; Java won't work without a correct PATH.
    There is usually no need to do anything with your CLASSPATH at this stage.

    If you have any more problems, please be sure to come back here.
    sumaraghavi ragha
    Ranch Hand

    Joined: Nov 17, 2006
    Posts: 118
    Hi Guys

    I installed JDk1.6... in my system under the path is
    C:\program files\java\jdk1.6
    then i changed the environment var i.e
    i append this line to the exsisting path
    now i opend the command prompt typed java it is regonized but
    i typed javac it saying
    C:\Program Files\Java\jdk1.6.0_06>javac
    'javac' is not recognized as an internal or external command,
    operable program or batch file.


    so just wondering if i want to write a simple code helloworld in which directory i have to write is it in JDk1.6 or Bin
    how can i set the classpth exactly

    Please help me
    Jesper de Jong
    Java Cowboy
    Saloon Keeper

    Joined: Aug 16, 2005
    Posts: 14157
        
      19

    You need to add the bin directory of your JDK installation directory to the PATH. So if you installed the JDK in C:\Program Files\Java\jdk1.6.0_06, then you need to add:

    C:\Program Files\Java\jdk1.6.0_06\bin

    to the PATH (not the JDK directory itself). The JDK installation instructions explain exactly how to set the PATH.
    [ May 23, 2008: Message edited by: Jesper Young ]

    Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
    Scala Notes - My blog about Scala
    Larry Dillions
    Greenhorn

    Joined: May 22, 2008
    Posts: 18
    Hi,

    I have 3 jre folders in the C;\Program Files\Java

    jre1.5.0
    jre1.6.0_02
    jre1.6.0_05

    So shall I delete them all or uninstall it and install the new one of jre1.6.0_06?

    And I forgot what is the name of software for java coding? I try to google.

    Ta,

    Jak
    marc weber
    Sheriff

    Joined: Aug 31, 2004
    Posts: 11343

    Originally posted by sumaraghavi ragha:
    ... how can i set the classpth exactly...

    See the link in Jesper's reply for details. But note that it's the PATH you want to update -- not the CLASSPATH. These are different things.
    marc weber
    Sheriff

    Joined: Aug 31, 2004
    Posts: 11343

    Originally posted by jak hurley:
    ...what is the name of software for java coding? ...

    You have different versions of the JRE (Java Runtime Environment). But to code Java, you need the JDK (Java Development Kit). See Campbell's link above, and be sure to follow the advice about updating the PATH variable when you install.
    Campbell Ritchie
    Sheriff

    Joined: Oct 13, 2005
    Posts: 38902
        
      23
    No, you ought not to delete the older folders. You should use "install/uninstall programs" to uninstall the older versions of Java.
    Rob Spoor
    Sheriff

    Joined: Oct 27, 2005
    Posts: 19697
        
      20

    Actually, it's called Add/Remove Programs, and is located inside the Windows Control Panel.


    SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
    How To Ask Questions How To Answer Questions
    Larry Dillions
    Greenhorn

    Joined: May 22, 2008
    Posts: 18
    I just remember now that the name of the software is Kawa for Java coding. Last time I used it was 5 years ago at University and I didn't learn the module fully properly. Why it was called Kawa? I must have missed the JDK underline.

    So JDK is a software to code then. I'm going to download and install it now on my macbook and window laptop.

    Thanks
    Henry Wong
    author
    Sheriff

    Joined: Sep 28, 2004
    Posts: 18847
        
      40

    Originally posted by jak hurley:
    I just remember now that the name of the software is Kawa for Java coding. Last time I used it was 5 years ago at University and I didn't learn the module fully properly. Why it was called Kawa? I must have missed the JDK underline.


    So, basically, (1) you haven't done "Java" coding for 5 years, when you learned it, (2) you didn't learn the "module fully properly", and (3) you never learned Java. On the last point, isn't Kawa based on Scheme?

    Henry


    Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
    Larry Dillions
    Greenhorn

    Joined: May 22, 2008
    Posts: 18
    Kawa is for Linux, I remembered that my tutor installed kawa in my computer which was window98. http://www.gnu.org/software/kawa/index.html

    Anyway I won't download it. Look like there is no SDK for mac?
    Larry Dillions
    Greenhorn

    Joined: May 22, 2008
    Posts: 18
    Originally posted by Henry Wong:


    So, basically, (1) you haven't done "Java" coding for 5 years, when you learned it, (2) you didn't learn the "module fully properly", and (3) you never learned Java. On the last point, isn't Kawa based on Scheme?

    Henry


    That's right! But on your last point, I don't know what do you mean by isn't kawa bases on Scheme!

    Sorry
    Henry Wong
    author
    Sheriff

    Joined: Sep 28, 2004
    Posts: 18847
        
      40

    Originally posted by jak hurley:


    That's right! But on your last point, I don't know what do you mean by isn't kawa bases on Scheme!

    Sorry


    Scheme is a programming language. It is very similar to another programming language called Lisp. It is completely different from the Java programming language.

    Take a look at the link that you posted. Basically, Kawa is an environment that takes Scheme and compiles it to run in the Java runtime environment. It basically allows you to program in Scheme but run the application in environments meant for Java. You don't have to program a single line of Java.

    In other words, you never "fully properly" learned Scheme. You never was taught Java at all.

    Henry
    [ May 24, 2008: Message edited by: Henry Wong ]
    sumaraghavi ragha
    Ranch Hand

    Joined: Nov 17, 2006
    Posts: 118
    Hi Jasper i did added the bin to the original path.Then also i am getting the same error.In which folder i have to write my progrms
    please be specific

    Thanks
    Suma
    Originally posted by Jesper Young:
    You need to add the bin directory of your JDK installation directory to the PATH. So if you installed the JDK in C:\Program Files\Java\jdk1.6.0_06, then you need to add:

    C:\Program Files\Java\jdk1.6.0_06\bin

    to the PATH (not the JDK directory itself). The JDK installation instructions explain exactly how to set the PATH.

    [ May 23, 2008: Message edited by: Jesper Young ]
    Henry Wong
    author
    Sheriff

    Joined: Sep 28, 2004
    Posts: 18847
        
      40

    Hi Jasper i did added the bin to the original path.Then also i am getting the same error.In which folder i have to write my progrms
    please be specific


    The link that Jesper provided is very specific (and detailed). What parts of it did you follow?
    Larry Dillions
    Greenhorn

    Joined: May 22, 2008
    Posts: 18
    Originally posted by Henry Wong:

    In other words, you never "fully properly" learned Scheme. You never was taught Java at all.

    Henry


    Yeah, I absolutely agree with you! Tut tut. I will, one day! At the moment, I'm on chapter two in the Head First Java book.
    vishnu vyasan
    Ranch Hand

    Joined: May 27, 2008
    Posts: 39
    Hey open the command prompt and go to the folder where you have the java programs and give this command in the command prompt.

    set path=C:\program files\java\jdk1.6\bin;.

    this will set the path for you. now try checkinng the path by giving the command in the command prompt java -version

    Regards
    vishnu
    fred rosenberger
    lowercase baba
    Bartender

    Joined: Oct 02, 2003
    Posts: 11320
        
      16

    you can write your code in any directory you want. it doesn't matter.

    First, can you find a javac.exe on your computer? it should be somewhere like

    C:\Program Files\Java\jdk1.5.0_12\bin

    go into that directory, and find the program. see if you can run it from there. if not, you have some larger issues. if so, make sure THAT directory is in your path. once you set the path, you may have to open a new command window or whatever. you can verify it's there by typing 'path'.


    There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
    Ben Souther
    Sheriff

    Joined: Dec 11, 2004
    Posts: 13410

    "vishnu nv",
    Please check your private messages regarding an important administrative matter.
    -Ben


    Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
     
    subject: Down loading software