Results 1 to 14 of 14
  1. #1
    NatasjaA is offline Member
    Join Date
    Apr 2008
    Posts
    7
    Rep Power
    0

    Default Brand New to Java needs directions

    Hi
    I am new to java I have been playing around with Java Script and I have installed both NetBeans and Eclipse. Where can I find step by step documentation on using java? For javascript I bought a "In Easy Steps" book.
    Any links and advice would be greatly appreciated!
    Thanks
    :confused:

  2. #2
    Java Tip's Avatar
    Java Tip is offline Moderator
    Join Date
    Nov 2007
    Posts
    1,694
    Blog Entries
    430
    Rep Power
    10

    Default

    1. You can read "java tutorial". Search on google, sun provides its online version for free.

    2. You can search "rapidshare java" on google. In this way, you can find several java books ;) to download

    Let me know if you need more help.

  3. #3
    NatasjaA is offline Member
    Join Date
    Apr 2008
    Posts
    7
    Rep Power
    0

    Default Install

    I dont even seem to get the installation right at the moment!
    I downloaded the jdk-6u5-windows-i586-p file and installed it to C:\Program Files\Java
    In there I have C:\Program Files\Java\jdk1.6.0_05 with all the correct files.
    I then changed the path (my os is Windows NT) to %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem ;C:\Program Files\Java\jdk1.6.0_05\bin
    According to the tutorial I then created a txt file called HelloWorldApp and saved it to the Java dir. I then ran cmd but when I type java-version it tells me - no such command ......
    Should I see Java in my programs on start up or something?

  4. #4
    Java Tip's Avatar
    Java Tip is offline Moderator
    Join Date
    Nov 2007
    Posts
    1,694
    Blog Entries
    430
    Rep Power
    10

    Default

    "C:\Program Files\Java\jdk1.6.0_05\bin"

    This is probably because of the space between "Program" and "Files" above. Try writing this insted:

    "C:\Progra~1\Java\jdk1.6.0_05\bin"

  5. #5
    NatasjaA is offline Member
    Join Date
    Apr 2008
    Posts
    7
    Rep Power
    0

    Default

    Should it be in " "?

  6. #6
    Java Tip's Avatar
    Java Tip is offline Moderator
    Join Date
    Nov 2007
    Posts
    1,694
    Blog Entries
    430
    Rep Power
    10

    Default

    No, remove quotation marks.

  7. #7
    NatasjaA is offline Member
    Join Date
    Apr 2008
    Posts
    7
    Rep Power
    0

    Default

    Okay did it went to cmd run typed in cd C:\java still tells me it can not find the directory

  8. #8
    Java Tip's Avatar
    Java Tip is offline Moderator
    Join Date
    Nov 2007
    Posts
    1,694
    Blog Entries
    430
    Rep Power
    10

    Default

    I guess you meant: "it can not find the command".

    Hmm, normally it should work in this way. Probably there si a minor mistake we dont see.

    Can you run following command in command line and paste the output here:

    Java Code:
    echo %PATH%
    Lets see if the command line has the java path correctly.

  9. #9
    NatasjaA is offline Member
    Join Date
    Apr 2008
    Posts
    7
    Rep Power
    0

    Default

    It gives me this:
    C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32 \Wbem ;C:\Progra~1\Java\jdk1.6.0_05\bin

  10. #10
    Java Tip's Avatar
    Java Tip is offline Moderator
    Join Date
    Nov 2007
    Posts
    1,694
    Blog Entries
    430
    Rep Power
    10

    Default

    If the path is correct, i can have only one more suggestion left:

    Can you move the Java path to the beginning of the path variable and try again? I am suspicious about the space between "System32" and "\Wbem". It may invalidate the path afterwards.

  11. #11
    NatasjaA is offline Member
    Join Date
    Apr 2008
    Posts
    7
    Rep Power
    0

    Default

    No still nothing
    The only thing that I am thinking is that in the Java folder I have two other folder with the JRE in I have both jre 5 and jre6 in the folder. Could that influence anything?
    I have netbeans and eclipse installed and they seem to work. If I do java scripting in dreamweaver I can run them as well.

  12. #12
    Java Tip's Avatar
    Java Tip is offline Moderator
    Join Date
    Nov 2007
    Posts
    1,694
    Blog Entries
    430
    Rep Power
    10

    Default

    The only thing that I am thinking is that in the Java folder I have two other folder with the JRE in I have both jre 5 and jre6 in the folder.
    If there is jdk1.6.0_05 folder there, JREs don't effect the result.

  13. #13
    NatasjaA is offline Member
    Join Date
    Apr 2008
    Posts
    7
    Rep Power
    0

    Default

    Okay still not working I am going to take my computer to a shop for help

    OTHER QUESTION
    How do I type the || logical OR operator? I copied and paste it usually but how do I do it on my keyboard?:eek:

  14. #14
    DonCash's Avatar
    DonCash is offline Moderator
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    240
    Rep Power
    9

    Default

    Hey NatasjaA,

    If you have a QWERTY keyboard then the key is next to the Z key on the left. It has a \ on it.

    If you hit the Shift Key as well you will get |

    So to get || just hit it twice!
    Did this post help you? Please me! :cool:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •