YahooFinanceAPI | A PHP API for Yahoo Finance
kandi X-RAY | YahooFinanceAPI Summary
kandi X-RAY | YahooFinanceAPI Summary
A PHP API for Yahoo Finance
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get exchange data
YahooFinanceAPI Key Features
YahooFinanceAPI Examples and Code Snippets
Community Discussions
Trending Discussions on YahooFinanceAPI
QUESTION
I'm trying to implement code from https://github.com/sstrickx/yahoofinance-api on Eclipse in Java. When I run the program, I'm getting a several lines of errors that are being printed on the console. When I click on the errors, it takes me to a window named "YahooFinance.class" on Eclipse that says "Source not found." It asks me to change the attached source. I have added the source to C:/Program Files/Java/jdk-11.0.11/lib/src.zip on my computer, but I'm still getting the same error. Any help would be greatly appreciated!
[Screenshot of error][1] [1]: https://i.stack.imgur.com/GZuL7.png
Edit: This is the code that I am trying to compile from source:
...ANSWER
Answered 2021-May-16 at 19:03The source project you're trying to use is a Maven based project and provides instructions on how to include it as a dependency.
Create a new Maven project in Eclipse (or update your project to be Maven based, adding a pom.xml file, standard folder structures etc)
Edit your pom.xml file and add a dependency to the yahoofinance-api project:
QUESTION
So I am trying to run my multiple .java files with a dependency to an external jar file. The structure of my program looks like this..
Folder- AccountReport.javaDriver.java
- EquityAccount.java
- SavingsAccount.java
- YahooFinanceAPI-3.6.0.jar
The way I must do it is...
"When I grade your homework I will be using the command prompt to compile and run the programs. Ideally, I'd like to be able to compile/run these two commands from the command prompt:
javac *.java
java Driver
If you are using a jar file, however, it may not be that simple.
Before you hand in your code please copy all of the .java files that you wrote into a new directory. If you are using a jar file put it in the same directory. Then try and build and run the program from the command prompt.
If you have to alter the two commands about please put a comment in your driver that tells me how to build it (to include a classpath, for example).
You may have to rename the class that holds main to "Driver".
If you are using Eclipse, you may also have to remove any package statements that were added for you by Eclipse (you can comment them out if you'd like).
It is up to you to ensure that I can build and run the code!"
I have tried to run the following line "javac -classpath YahooFinance.jar Driver.java" in the command line but I get error messages.
All of the classpath files compile but once I type "java Driver" the error message pop up
...ANSWER
Answered 2017-Mar-04 at 22:41You need to also specify the classpath when you run you code.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install YahooFinanceAPI
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page