Re: how to import pyrolite.* and net.razorvine.pyro.* in a java file
Irmen de Jong <[email protected]>
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
On 26 apr 2012, at 16:52, emacsen wrote: > hi i am a newbie of java and not know much about importing packages or .jar > files in to source file. > > i coded like this: > 1.package jforex; > 2.import java.util.*; > 3.import pyrolite.*; > 4.import com.dukascopy.api.*; > 5.import net.razorvine.pyro.*; > > the problems are in line 3 and line 5. the rest 3 lines are ok There's no package 'pyrolite'. Just importing net.razorvine.pyro.* is what you need to be doing instead. See the two examples that come with pyrolite. > > i have put pyrolite.jar and Razorvine.Pyrolite.dll You don't need the dll, that is for .NET. > in F:\My Documents\JForex > so my classpath settings like this: > > path > C:\Python27\Lib\site-packages\PyQt4;%WinDir%\System32; > C:\Python27;C:\Python27\DLLs;C:\Python27\Scripts; [...] This is not your classpath. This is your 'PATH'. You need to add pyrolite.jar to your CLASSPATH variable. But really, these are general Java related issues and have nothing to do with Pyrolite in particular. If you still can't get it to work, please seek advice in the appropriate java channels or follow some java tutorials. Irmen ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/