Search:

Type: Posts; User: SPACE MONKEY

Page 1 of 3 1 2 3

Search: Search took 0.16 seconds.

  1. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm and KevinWorkMan:

    The thing I do not have is a good grasp of the theory. More reading and a lot of trial and error.

    I have now got a starting point, but I will take your advice...
  2. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm:

    Thanks again for the help I would never have worked out this lot.

    A couple of things, it seems strange that we can use methods from classes in the same base folder as the calling...
  3. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm:

    NICE

    What witchcraft is this!!!!.

    OK now that is what I was talking about this I can play around with.

    I am going to look up bat files and the rest of this.
  4. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm:

    java -cp .;PathToPackage1 package1.Bootclasspath

    The above bit of code has not FixChap5 in there anywhere, can you explain how it knows that FixChap5 is the calling program?
    ...
  5. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm:

    So correct is; java -cp .;PathToPackage1 FixChap5 and thus the FixChap5 is at the end.

    If the FixChap5 class is not in the package "PathToPackage1" how can it call the...
  6. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm:

    Waaaaaa. What is that crazyness you printing in your quote up there. lol

    Where exactly do you enter this information. I am never sure if this is in the command line or in the program...
  7. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm:

    We do not enter FixChap5 anywhere. How can the compute know that that is the program we want to run?
  8. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm:

    When you say use a batch file. Do you mean in the batch file properties, or in the code in the FixChap5 or in the Bootclasspath, and if so what is the notation?

    Cheers.

    SM.
  9. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm:

    Y
    Why ?

    Now I do because I want to practice it so I do not forget it.

    Also is the notation different?

    My main problem with all of this was I did not know that I needed to...
  10. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm:

    Sorry I was not clear,

    I want to know how to run the program FixChap5 without typing the the classpath. I want to set the class path some where so I do not have to type in:
    -cp...
  11. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm:

    "-cp" is that short for "Current Path"?

    It works when I type that in, but how do I set the class path and not have to type that in, can I set it in the "Environmental Variables" ? ...
  12. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Looked online, found

    java -cp . PathToPackage1 FixChap5 (The apostrophe is added.)

    and that gave me the error:

    Could not find or load main class PathToPackage1.
  13. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm:

    OK will try the above, this will not remove any other classpaths to, say the bootstrap classes?

    Also I like the place where you enter the environmental variables. So at some point...
  14. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm:
    Not sure what you mean by:

    Do I type this in the Notepad where I typed the code or do I type this in the Command Prompt area, or the Environmental Variables area?



    Because I do...
  15. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm:

    I have the FixChap5 class and java in the folder that holds the package1 folder.

    I have the Bootclasspath.java and class in the package 1 folder.

    This is still not compiling,...
  16. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Sorry Norm did that, what by the way is the third thing, you only mention the first two.

    Cheers.

    SpaceMonkey, off to work now.
  17. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    cannot find symbol:
    symbol : variable Bootclasspath
    location class FixChap5
    Bootclasspath.callBootClass();

    Again I had put // before this line of code because I know it is going to...
  18. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm;

    In the FixChap5 class:

    The two lines of code that referenced the Bootclasspath.class. are now they are causing problems, because it can not find the method from the Bootclasspath.
    ...
  19. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm:

    Thanks.

    I set the folders up as you said.

    I moved Booclasspath to the package1 folder and added the
    package package1:
  20. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm:

    Done, I edited my code in the post 3 or 4 back and it works fine. I simply remove the import Bootclasspath.*; and everything is fine.

    The two .java files compile and execute when...
  21. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm:

    First, I checked out a few of your other posts and you are incredibly patient with people, from them and me thanks.

    I have obviously given you the impression that I do not want to...
  22. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm:

    Norm sorry for not answering your question I ran out of time.

    For point two I wanted to know how to set the class path so I could call a method from a class that is not in the same...
  23. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norman:

    Ok got it, I have two classes that talk to each other. Both classes are in the same folder.
    So onto step 2.

    ;C sdkTool -classpath classpath1;classpath2...

    Is the above the...
  24. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Norm:


    I do not have any packages. I need to look up packages?
    The whole point is that I do not understand how to reference classes and thus I want to know. It is integral to java so I...
  25. [SOLVED] Re: How to referenc a class file. using only notepad and run cmd.

    Dear Workman:

    I work hard at this java to learn to understand.

    I did not capitalize the word NEED, and out of my post you have taken umbridge over 3 words, without commenting on the 55 views...
Results 1 to 25 of 62
Page 1 of 3 1 2 3