|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
Cannot start Standalone JForex API (in Eclipse) |
almc
|
Post subject: Cannot start Standalone JForex API (in Eclipse) |
Post rating: 0
|
Posted: Wed 23 Nov, 2011, 12:24
|
|
User rating: -
|
I followed, twice, the steps of downloading and installing the Standalone API as described at
After running Main.java, I get the following Eclipse message:
Exception in thread "main" java.lang.NoClassDefFoundError: singlejartest/Main Caused by: java.lang.ClassNotFoundException: singlejartest.Main at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could you help me ?
In advance, thanks a lot.
AlmC
|
|
|
|
 |
API Support
|
Post subject: Re: Cannot start Standalone JForex API (in Eclipse) |
Post rating: 0
|
Posted: Wed 23 Nov, 2011, 13:01
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
 |
almc
|
Post subject: Re: Cannot start Standalone JForex API (in Eclipse) |
Post rating: 0
|
Posted: Thu 24 Nov, 2011, 09:13
|
|
User rating: 1
Joined: Thu 24 Nov, 2011, 09:09 Posts: 36 Location: FranceFrance
|
I did copied the file <classpath.zip> in the JForexClientLibrary directory of the Eclipse workspace.
But, stragely, there is no unzipped file created... Tried several times.. Would it be possible to get an unzipped version ?
Thanks a lot !
|
|
|
|
 |
API Support
|
Post subject: Re: Cannot start Standalone JForex API (in Eclipse) |
Post rating: 0
|
Posted: Thu 24 Nov, 2011, 09:31
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
 |
almc
|
Post subject: Re: Cannot start Standalone JForex API (in Eclipse) |
Post rating: 0
|
Posted: Thu 24 Nov, 2011, 19:56
|
|
User rating: 1
Joined: Thu 24 Nov, 2011, 09:09 Posts: 36 Location: FranceFrance
|
> Did you follow through the import instructions?
Yes, I did. It's in eclipse. Everything looks all right except missing libraries. No path. I could not unzip the <classpath.zip> file, don't ask me why, it never happened to me so far ... That's why I thought an unzipped <classpath> or something like that would be a solution.
I attach images of the eclipse_workspace/JForex/... and how it looks in the eclipse.
Thanks again.
Attachments: |
eclipse_JForex_lib.jpg [58.32 KiB]
Downloaded 299 times
|
eclipse_JForex_pathErrors.jpg [204.92 KiB]
Downloaded 291 times
|
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on
this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control
on their content. Anyone accessing this webpage and downloading or otherwise making use of any document,
data or information found on this webpage shall do it on his/her own risks without any recourse against
Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from
the use and/or reliance on any document, data or information found on this webpage.
|
|
|
|
|
 |
API Support
|
Post subject: Re: Cannot start Standalone JForex API (in Eclipse) |
Post rating: 0
|
Posted: Fri 25 Nov, 2011, 08:29
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
if you can't unzip it then, consider just changing the .classpath file contents to the following: <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="lib" path="libs/DDS2-jClient-JForex-2.14.15.jar"/> <classpathentry kind="lib" path="libs/JForex-API-2.6.49.jar" sourcepath="libs/JForex-API-2.6.49-sources.jar"/> <classpathentry kind="lib" path="libs/DDS2-Connector-1.1.42.jar"/> <classpathentry kind="lib" path="libs/DDS2-Charts-5.42.jar"/> <classpathentry kind="lib" path="libs/greed-common-167.jar"/> <classpathentry kind="lib" path="libs/dds2-common-2.3.68.jar"/> <classpathentry kind="lib" path="libs/transport-client-2.3.68.jar"/> <classpathentry kind="lib" path="libs/log4j-1.2.14.jar"/> <classpathentry kind="lib" path="libs/mina-core-1.1.7.jar"/> <classpathentry kind="lib" path="libs/mina-filter-ssl-1.1.7dc.1.jar"/> <classpathentry kind="lib" path="libs/slf4j-api-1.5.8.jar"/> <classpathentry kind="lib" path="libs/slf4j-log4j12-1.5.8.jar"/> <classpathentry kind="lib" path="libs/ta-lib-0.4.4dc.jar"/> <classpathentry kind="lib" path="libs/7zip-4.65.jar"/> <classpathentry kind="lib" path="libs/jcalendar-1.3.3.jar"/> <classpathentry kind="lib" path="libs/ecj-3.5.2.jar"/> <classpathentry kind="lib" path="libs"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="output" path="bin"/> </classpath>
|
|
|
|
 |
almc
|
Post subject: Re: Cannot start Standalone JForex API (in Eclipse) |
Post rating: 0
|
Posted: Fri 25 Nov, 2011, 12:10
|
|
User rating: 1
Joined: Thu 24 Nov, 2011, 09:09 Posts: 36 Location: FranceFrance
|
It's ok now. Thanks a lot. The error was on my side. In a hurry, I've forgotten that <.filename> are invisible in a standard MacOsX Finder window. I.e. the classpath.zip has been properly unzipped to .classpath, but I had to search for it using <Terminal.app>. The second point : I had to restart Eclipse to make it read the before missing .classpath file. Thanks again.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|