Join the 80,000 other DTN customers who enjoy the fastest, most reliable data available. There is no better value than DTN!

(Move your cursor to this area to pause scrolling)




"If you want customer service that answers the phone, your best bet is IQFeed. I cannot stop praising them or their technical support. They are always there for you, and they are quick. I have used ****** too but the best value is IQFeed." - Comment from Public Forum
"I was on the phone with a friend who uses CQG and right after the Fed announcement, CQG was as much as 30 seconds behind DTN.IQ. Some quotes were off by as much as 15-18 cents. Your feed never missed a beat." - Comment from Roger
"Thank God for your Data Feed as the only Zippers I see are on my pants (LOL), and no more 200 pip spikes to mess up charts." - Comment from Spiro via Email
"I have been using IQFeed now for a few years in MultiCharts and I have zero complaints. Very, very rare to have any data hiccups or anything at all go wrong." - Comment from Public Forum
"You are much better than lawyers or the phone company because you answer the phone when I call! I just love your customer service." - Comment from Isreal
"I cannot believe what a difference it makes trading with ProphetX!" - Comment from Bruce in Los Angeles
"There is no doubt that IQFeed is the best data provider. I am very satisfied with your services. And IQFeed is the only one that I would recommend to my friends. Now, most of them are using your product in China." - Comment from Zhezhe
"This is an excellent value, the system is generous (allowing for 500 stocks) and stable (and really is tick-by-tick), and the support is fantastic." - Comment from Shirin via Email
"I just wanted to tell you what a fine job you have been doing. While *******, from what I hear, has been down and out, off and on, IQ feed has held like a champ this week." - Comment from Shirin
"Thanks for all of your help. Great customer service deserves to be recognized which one the reasons I've been a customer of DTN for over 10 years!" - Comment from Stuart
Home  Search  Register  Login  Recent Posts

Information on DTN's Industries:
DTN Oil & Gas | DTN Trading | DTN Agriculture | DTN Weather
Follow DTNMarkets on Twitter
DTN.IQ/IQFeed on Twitter
DTN News and Analysis on Twitter
»Forums Index »Archive (2017 and earlier) »DTN.IQ Client Software Support »Java linking error when running sample app
Author Topic: Java linking error when running sample app (3 messages, Page 1 of 1)

kmccluskey
-Interested User-
Posts: 2
Joined: Nov 1, 2006


Posted: Nov 1, 2006 03:39 PM          Msg. 1 of 3
I am experiencing difficulty running the Java sample apps both in an IDE and from the command line. I get a java.lang.UnsatisfiedLinkError when I try to call RegisterClientApp. I debugged it (and added a try/catch block) and the iq_jni library loads without error in the IQ_32 class. However RegisterClientApp throws this error. The ~DTN\IQFeed directory is in my PATH. I also made it my project directory when trying to run through the IDE. Both IDE and command line throw this linking error. Is there another step I have to take after loading the library to be able to call the native methods on the superclass?
Edited by kmccluskey on Nov 1, 2006 at 03:40 PM

DTN_Steve_S
-DTN Guru-
Posts: 2093
Joined: Nov 21, 2005


Posted: Nov 2, 2006 09:57 AM          Msg. 2 of 3
Hello, reworking the java example apps is something that we intend todo in the upcomming releases. They are certianly primative in thier current form.

It also appears there may be a bug with what is currently being distributed.

Here is what I did to get them running from a fresh instal of IQFeed.

from the iqfeed installed directory, copy the "com" directory (and all sub directories) into the
/Java Examples/tc/ directory

so your directory structure should now look like:
\DTN\IQFeed\JAVA Examples\tc
\DTN\IQFeed\JAVA Examples\tc\com
\DTN\IQFeed\JAVA Examples\tc\LookupClient.class
\DTN\IQFeed\JAVA Examples\tc\LookupClient.java
\DTN\IQFeed\JAVA Examples\tc\streamer$stream_thread.class
\DTN\IQFeed\JAVA Examples\tc\streamer.class
\DTN\IQFeed\JAVA Examples\tc\streamer.java
\DTN\IQFeed\JAVA Examples\tc\com\iqfeed
\DTN\IQFeed\JAVA Examples\tc\com\iqfeed\IQ_32.class
\DTN\IQFeed\JAVA Examples\tc\com\iqfeed\IQ_32.java

At this point, the applications should be able to find the IQ_32 class properly.

However, I also had to edit the example apps to comment out the first line that says "package tc;" and recompile it.

at this point I was able to run both example apps that are provided.

does this help?

jorgepereda
-Interested User-
Posts: 1
Joined: Jun 15, 2009


Posted: Jun 15, 2009 12:34 PM          Msg. 3 of 3
It helped a lot. Thanks!!
 

 

Time: Sat May 4, 2024 11:43 PM CFBB v1.2.0 16 ms.
© AderSoftware 2002-2003