Search:

Type: Posts; User: Norm

Search: Search took 0.14 seconds.

  1. Replies
    18
    Views
    1,560

    Re: Importing Third Party Libraries

    Ok, now you need to figure how to configure Eclipse to use the jar file.
  2. Replies
    18
    Views
    1,560

    Re: Importing Third Party Libraries

    Ok, that would say the jar file and the source file are fine.

    Now you need to figure out how to make it work in Eclipse.


    Why do you have a folder name with the source filename?
    Is there a...
  3. Replies
    18
    Views
    1,560

    Re: Importing Third Party Libraries

    Is that inside of the Eclipse program? I don't use Eclipse and don't know how to configure it.
    That was the reason I suggested the use of the javac command with the -cp option in a command prompt...
  4. Replies
    18
    Views
    1,560

    Re: Importing Third Party Libraries

    That should work if:
    the folder with the javac.exe file is in the PATH
    the NoobChain.java file is in the current folder
    there are no third-party classes used in the java source file

    Can you...
  5. Replies
    18
    Views
    1,560

    Re: Importing Third Party Libraries

    Is there a jar file with that contains that package? Use any zip file utility to view the contents of the jar file. If needed, rename the jar file by adding .zip to the end of the filename so that...
  6. Replies
    18
    Views
    1,560

    Re: Importing Third Party Libraries

    Note: Only the command should be in "s not the options and filename:
    "C:\Program Files\Java\jdk1.8.0_201\bin\javac.exe" -cp . -Xlint -Xdiags:verbose NoobChain.java


    Please copy the full contents...
  7. Replies
    18
    Views
    1,560

    Re: Importing Third Party Libraries

    To help the OS find a command, add the path to the folder containing the command to the PATH environment variable.

    How does it do that? The proof of correctness is when the OS finds the command...
  8. Replies
    18
    Views
    1,560

    Re: Importing Third Party Libraries

    Is the spelling of the path used on the import statement correct? Java is case sensitive.

    Try using the commandline statement I gave earlier to see if the javac command finds the class when given...
  9. Replies
    18
    Views
    1,560

    Re: Importing Third Party Libraries

    The jar files containing the classes being imported must be on the classpath when the javac command is executed so the compiler can find the definitions for the classes.
    Do some research on how to...
Results 1 to 9 of 9