Page 4 of 4 FirstFirst ... 234
Results 61 to 77 of 77
Like Tree1Likes

Thread: I have tried this many times and I don't get the correct code.

  1. #61
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,307
    Rep Power
    25

    Default Re: I have tried this many times and I don't get the correct code.

    Use a Search program.
    Where was the JDK installed? Its inside that folder in the bin folder.
    If you don't understand my response, don't ignore it, ask a question.

  2. #62
    milovan is offline Senior Member
    Join Date
    Jan 2011
    Location
    Belgrade, Serbia
    Posts
    301
    Rep Power
    4

    Default Re: I have tried this many times and I don't get the correct code.

    try to find what is location of JDK (javac.exe) in your file system. As Norm said, you already have javac somewhere as HelloObject.class file is created. Probably your IDE sets the environment to correct location... just try to find it with search on your comp.

  3. #63
    Clemson is offline Member
    Join Date
    Feb 2014
    Posts
    49
    Rep Power
    0

    Default Re: I have tried this many times and I don't get the correct code.

    It's in Program Files X86 then Java then in Bin.

  4. #64
    Clemson is offline Member
    Join Date
    Feb 2014
    Posts
    49
    Rep Power
    0

    Default Re: I have tried this many times and I don't get the correct code.

    Now what do I do since I found it?

  5. #65
    milovan is offline Senior Member
    Join Date
    Jan 2011
    Location
    Belgrade, Serbia
    Posts
    301
    Rep Power
    4

    Default Re: I have tried this many times and I don't get the correct code.

    Do what Norm said in post #59

  6. #66
    Clemson is offline Member
    Join Date
    Feb 2014
    Posts
    49
    Rep Power
    0

    Default Re: I have tried this many times and I don't get the correct code.

    I got the full location, now what do I do with it?

  7. #67
    Clemson is offline Member
    Join Date
    Feb 2014
    Posts
    49
    Rep Power
    0

    Default Re: I have tried this many times and I don't get the correct code.

    I'm just about go give up. I've been doing this all day and no success.

  8. #68
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,307
    Rep Power
    25

    Default Re: I have tried this many times and I don't get the correct code.

    That's probably best. Get some rest and come back when rested.
    If you don't understand my response, don't ignore it, ask a question.

  9. #69
    Clemson is offline Member
    Join Date
    Feb 2014
    Posts
    49
    Rep Power
    0

    Default Re: I have tried this many times and I don't get the correct code.

    But it's due in about 2 hours so I really need your help.

  10. #70
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,307
    Rep Power
    25

    Default Re: I have tried this many times and I don't get the correct code.

    Open a command prompt, enter the full path to the javac.exe file and the name of the java file
    and press Enter.
    If you don't understand my response, don't ignore it, ask a question.

  11. #71
    Clemson is offline Member
    Join Date
    Feb 2014
    Posts
    49
    Rep Power
    0

    Default Re: I have tried this many times and I don't get the correct code.

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\Bradley Abbott>C:\Program Files\Java\jdk1.7.0_51\bin Assign4_Abbott.jav
    a
    'C:\Program' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\Bradley Abbott>C:\Program Files\Java\jdk1.7.0_51\bin
    'C:\Program' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\Bradley Abbott>C:\Program Files\Java\jdk1.7.0_51\bin Assign4_abbott
    'C:\Program' is not recognized as an internal or external command,
    operable program or batch file.

    C:\Users\Bradley Abbott>


    How does that help?

  12. #72
    milovan is offline Senior Member
    Join Date
    Jan 2011
    Location
    Belgrade, Serbia
    Posts
    301
    Rep Power
    4

    Default Re: I have tried this many times and I don't get the correct code.

    This is not going to work... Do you know how to set PATH variable? In that case you can run javac from your source code folder.

  13. #73
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,307
    Rep Power
    25

    Default Re: I have tried this many times and I don't get the correct code.

    When a path has spaces in it, the whole path must be enclosed in "s
    Also the javac.exe was left off

    The path to the compiler could be something like this:
    "C:\Program Files\Java\jdk1.7.0_51\bin\javac.exe"
    If you don't understand my response, don't ignore it, ask a question.

  14. #74
    Clemson is offline Member
    Join Date
    Feb 2014
    Posts
    49
    Rep Power
    0

    Default Re: I have tried this many times and I don't get the correct code.

    Ok, I found it. Now do I save my Java file in there?

  15. #75
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,307
    Rep Power
    25

    Default Re: I have tried this many times and I don't get the correct code.

    This is very confusing. Post#58 shows where the .java file is located. That is where you need to go to compile it.

    Look at this again. It tells you how to install the JDK and use it to compile and test in a command prompt window:
    http://docs.oracle.com/javase/tutori...ava/win32.html
    Last edited by Norm; 02-23-2014 at 09:54 PM.
    If you don't understand my response, don't ignore it, ask a question.

  16. #76
    Clemson is offline Member
    Join Date
    Feb 2014
    Posts
    49
    Rep Power
    0

    Default Re: I have tried this many times and I don't get the correct code.

    Good Morning; everyone!
    Good Afternoon; everyone!
    Good Evening; everyone!
    Good Night; everyone!
    Press any key to continue . . .

    I did it!

  17. #77
    milovan is offline Senior Member
    Join Date
    Jan 2011
    Location
    Belgrade, Serbia
    Posts
    301
    Rep Power
    4

    Default Re: I have tried this many times and I don't get the correct code.

    congrats, now don't touch anything :-)
    jim829 likes this.

Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. hello need help to correct my code
    By yanalvine in forum New To Java
    Replies: 2
    Last Post: 10-18-2013, 11:20 AM
  2. Very new to Java. Please help me correct my code.
    By jpab29 in forum New To Java
    Replies: 5
    Last Post: 06-29-2012, 04:05 PM
  3. Please correct this JSP code
    By rajesh4851 in forum New To Java
    Replies: 5
    Last Post: 06-13-2011, 12:12 PM
  4. Replies: 10
    Last Post: 06-06-2010, 10:12 AM

Posting Permissions

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