• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Down loading software

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 11343
Mac Safari Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi

One more

How can i know java installed in my system
Thanks
Suma
 
Marshal
Posts: 80665
478
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
     
    Java Cowboy
    Posts: 16084
    88
    Android Scala IntelliJ IDE Spring Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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 ]
     
    Greenhorn
    Posts: 18
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
    Mac Safari Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
    Mac Safari Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
    Marshal
    Posts: 80665
    478
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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.
     
    Sheriff
    Posts: 22849
    132
    Eclipse IDE Spring Chrome Java Windows
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
     
    author
    Posts: 23959
    142
    jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
    Posts: 23959
    142
    jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
    Posts: 23959
    142
    jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
      Number of slices to send:
      Optional 'thank-you' note:
    • 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.
     
    Ranch Hand
    Posts: 39
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
     
    lowercase baba
    Posts: 13091
    67
    Chrome Java Linux
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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'.
     
    Sheriff
    Posts: 13411
    Firefox Browser VI Editor Redhat
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    "vishnu nv",
    Please check your private messages regarding an important administrative matter.
    -Ben
     
    Consider Paul's rocket mass heater.
    reply
      Bookmark Topic Watch Topic
    • New Topic