Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Down loading software

 
sumaraghavi ragha
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
sumaraghavi ragha
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

One more

How can i know java installed in my system
Thanks
Suma
 
Campbell Ritchie
Sheriff
Pie
Posts: 50258
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
    Posts: 118
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 15492
    43
    Android IntelliJ IDE Java Scala Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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 ]
     
    Larry Dillions
    Greenhorn
    Posts: 18
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 11343
    Java Mac Safari
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 11343
    Java Mac Safari
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Pie
    Posts: 50258
    79
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Pie
    Posts: 20669
    65
    Chrome Eclipse IDE Java Windows
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Actually, it's called Add/Remove Programs, and is located inside the Windows Control Panel.
     
    Larry Dillions
    Greenhorn
    Posts: 18
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Marshal
    Pie
    Posts: 21510
    84
    C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
     
    Larry Dillions
    Greenhorn
    Posts: 18
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 18
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Marshal
    Pie
    Posts: 21510
    84
    C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 118
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Marshal
    Pie
    Posts: 21510
    84
    C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 18
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 39
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 12202
    35
    Chrome Java Linux
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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'.
     
    Ben Souther
    Sheriff
    Posts: 13411
    Firefox Browser Redhat VI Editor
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    "vishnu nv",
    Please check your private messages regarding an important administrative matter.
    -Ben
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic