Results 1 to 11 of 11
  1. #1
    Z E T is offline Member
    Join Date
    Jan 2010
    Posts
    5
    Rep Power
    0

    Default I NEED HELP. MODERATOR OR ANYONE. Please



    Can anyone help, please?

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,734
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Z E T View Post
    Can anyone help, please?
    That's a little classpath problem; nothing a simple -cp can't cure:

    Java Code:
    java -cp . Helloworldapp
    (it you have successfully compiled your source file that is)

    kind regards,

    Jos
    Last edited by JosAH; 01-22-2010 at 09:31 PM.

  3. #3
    Z E T is offline Member
    Join Date
    Jan 2010
    Posts
    5
    Rep Power
    0

    Default

    It came up with the same message after i typed that. any ideas? pleasee. :(

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,734
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Z E T View Post
    It came up with the same message after i typed that. any ideas? pleasee. :(
    Ok, show us the source code for your Helloworld Java code. We can't help you any further without any additional information.

    kind regards,

    Jos

    ps. and please, no more of those huge images.

  5. #5
    Z E T is offline Member
    Join Date
    Jan 2010
    Posts
    5
    Rep Power
    0

    Default

    source code? Sorry if you don't want to help me anymore it's ok. I'm extremely new to java. I just really want to fix this. Where can I find the source code to the java helloworldapp thing-a-ma-jig. You don't need to help if you can't put up with me. I'll understand.:(

  6. #6
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,734
    Blog Entries
    7
    Rep Power
    21

    Default

    Quote Originally Posted by Z E T View Post
    source code? Sorry if you don't want to help me anymore it's ok. I'm extremely new to java. I just really want to fix this. Where can I find the source code to the java helloworldapp thing-a-ma-jig. You don't need to help if you can't put up with me. I'll understand.:(
    Don't be such a *****; if you don't even know what 'source code' is I strongly suggest that you start reading some basic tutorials. Google is your friend. Good luck to you.

    Jos

  7. #7
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,574
    Rep Power
    12

    Default

    You might benefit from working through the "Hello World!" for Microsoft Windows page in Sun's Tutorial.

    They talk about "source file" there (aka "source code"). The source code is the code (program instructions) that you write which make up your program.

    The command used in the screenshot corresponds to the last part of that page: so there are a number of things that need to be correct first.

  8. #8
    Z E T is offline Member
    Join Date
    Jan 2010
    Posts
    5
    Rep Power
    0

    Default

    Hey Jos, if you didn't noticed. This is NEW TO JAVA. so yeah... l2Read

    Thanks Brock I'll read over it.

  9. #9
    Z E T is offline Member
    Join Date
    Jan 2010
    Posts
    5
    Rep Power
    0

    Default

    OK so now, when i type in cd c:\java it says.

    "The system can not find the patch specified."

    Any ideas anyone?

  10. #10
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by Z E T View Post
    source code? Sorry if you don't want to help me anymore it's ok.
    No where did he say he did not want to help you anymore. Your unfoundedly accusing him of this was likely the reason for his response. Please calm down. I too recommend that you start from the very beginning of the Sun Java help files and take things one step at a time.

  11. #11
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,574
    Rep Power
    12

    Default

    OK so now, when i type in cd c:\java it says.

    "The system can not find the patch specified."
    The system cannot find the path specified. The path is the location of your java file: in this case the java directory of the C drive.

    The command suggests that you are working through the section entitled "Compile the Source File into a .class File". The error message is simply saying that it can't find the java directory at the top of the C drive.

    The error occurs because the previous section - "Create a Source File" - was not completed correctly. You need to make sure the "Save As" dialog looks just like the one i the picture. And that it is looking at the blank contents of the java directory at the top of the C drive.

    One thing that the page does't spell out explicitly is that the java directory probbly doesn't exist. You may have to create the directory just as you would when you save any other sort of file from an application and you want to put it in a specific place that does't exist yet. To make sure that the rest of the instructions work as written make sure that you create the java directory and that you create it at the top of the C drive.

    (I am assuming that you are following the "write the code in Notepad" version and not the shortcut "just download and save the file" version.)

    -----

    Don't worry about the fact that learning a new technology is hard work, or give in to frustration. If you're anything like me you will make typos, be mislead by bogus information desperately grabbed from the internet and still be rather clueless even when the magic commands actually work. Just be glad that in this case Sun have put together instructions that are accurate, comprehensive and explanatory. Follow them exactly.

Posting Permissions

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