Re: values of system variables

2 messages Options
Embed this post
Permalink
toli

Re: values of system variables

Reply Threaded More More options
Print post
Permalink
Richard,

> i tried putting this onto your nabble list but it said it was held up since
I've added you to the m-etc-dev list.

> you talk about system variables (i assume) of:
>  ${WSROOT}
> $PHOTON_SVN_DIR
> $RCP_TARGET_DIR

These are not system variables - it's (probably misleading) notation
for something you need to substitute with your real values.
For example, WSROOT is the "Eclipse Workspace Root' - ie where the
code files live

$PHOTON_SVN_DIR is similar - it's the path to the photon code that
you've checked out from SVN, ie <marketcetera>/source/photon

RCP_TARGET_DIR is the path/location of the Eclipse RCP target that
you've created during the Set up the Target Platform step.

We haven't updated the 0.9 instructions yet, but if you are still
having problems with running 0.9, we made building Photon easier in
0.9:
1. check out 0.9
2. switch to using Eclipse 3.4.1
3. copy the <marketcetera-top-level>/profiles.xml.sample to profiles.xml
4. modify the profiles.xml file to point to where you want your
Eclipse target directory to live
5. run 'mvn clean install eclipse:eclipse'

It will compile all the Marketcetera code, and also create the
rcp-target directory for you as well (in the location specified).
When you start a fresh Eclipse project, you can import everything from
<marketcetera>/public/source (except for tradebase), and then point
your RCP Target to the location specified in profiles.xml

That should make it easier to run Photon. We'll update instructions
shortly, probably end of this week or early next week.

> what are these values supposed to be? are they environment variables
> defined for my windows XP? can you help out as i  cannot. i get this
> error of:
>
> !SESSION Mon Dec 01 23:06:42 GMT-05:00 2008
> ------------------------------------
> !ENTRY org.eclipse.equinox.launcher 4 0 2008-12-01 23:06:42.375
> !MESSAGE Exception launching the Eclipse Platform:
> !STACK
> java.lang.ClassNotFoundException:
> org.eclipse.core.runtime.adaptor.EclipseStarter
>        at java.net.URLClassLoader$1.run(Unknown Source)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(Unknown Source)
>        at java.lang.ClassLoader.loadClass(Unknown Source)
>        at java.lang.ClassLoader.loadClass(Unknown Source)
>        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:505)
>        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
>        at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>        at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>
>  i am trying to figure out if i am on the track here.
> thanks
>
>



--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.

_______________________________________________
m-etc-dev mailing list
[hidden email]
http://lists.marketcetera.org/mailman/listinfo/m-etc-dev_lists.marketcetera.org
toli

Re: values of system variables

Reply Threaded More More options
Print post
Permalink
Richard,

> 1. Does it take a VERY LONG  time to build with this command?

Yes, in addition to downloading all the necessary maven jars it also
downloads the Eclipse libraries (this only happens once) to create the
rcp-target directory

> 2. During the unit tests, I am also seeing Hibernate connection errors
> during the maven build, does that mean i have to have mysql running with an
> instance of marketcetera user logged in ?

yes, this is for unit tests. The assumption is encoded in
source/ors/src/test/sample_data/conf/default.properties file here:

metc.jdbc.url=jdbc:mysql://localhost:3306/marketcetera?logSlowQueries=true


You can speed up the build by skipping all the unit tests (they take
about 50 minutes nowadays) with 'mvn install -DskipTests'

> More questions to come I am sure.
> Thanks
>
> On Tue, Dec 2, 2008 at 4:22 PM, Richard Tanana <[hidden email]> wrote:
>>
>> hi toli
>> you rule for getting back. i will let you know how things go. also, i told
>> roy thanks for putting this platform together as it really helps me
>> understand how these trading systems work. thanks for that as i  learned a
>> lot.
>> richard
>>
>> On Tue, Dec 2, 2008 at 3:46 PM, Toli Kuznets <[hidden email]>
>> wrote:
>>>
>>> Richard,
>>>
>>> > i tried putting this onto your nabble list but it said it was held up
>>> > since
>>> I've added you to the m-etc-dev list.
>>>
>>> > you talk about system variables (i assume) of:
>>> >  ${WSROOT}
>>> > $PHOTON_SVN_DIR
>>> > $RCP_TARGET_DIR
>>>
>>> These are not system variables - it's (probably misleading) notation
>>> for something you need to substitute with your real values.
>>> For example, WSROOT is the "Eclipse Workspace Root' - ie where the
>>> code files live
>>>
>>> $PHOTON_SVN_DIR is similar - it's the path to the photon code that
>>> you've checked out from SVN, ie <marketcetera>/source/photon
>>>
>>> RCP_TARGET_DIR is the path/location of the Eclipse RCP target that
>>> you've created during the Set up the Target Platform step.
>>>
>>> We haven't updated the 0.9 instructions yet, but if you are still
>>> having problems with running 0.9, we made building Photon easier in
>>> 0.9:
>>> 1. check out 0.9
>>> 2. switch to using Eclipse 3.4.1
>>> 3. copy the <marketcetera-top-level>/profiles.xml.sample to profiles.xml
>>> 4. modify the profiles.xml file to point to where you want your
>>> Eclipse target directory to live
>>> 5. run 'mvn clean install eclipse:eclipse'
>>>
>>> It will compile all the Marketcetera code, and also create the
>>> rcp-target directory for you as well (in the location specified).
>>> When you start a fresh Eclipse project, you can import everything from
>>> <marketcetera>/public/source (except for tradebase), and then point
>>> your RCP Target to the location specified in profiles.xml
>>>
>>> That should make it easier to run Photon. We'll update instructions
>>> shortly, probably end of this week or early next week.
>>>
>>> > what are these values supposed to be? are they environment variables
>>> > defined for my windows XP? can you help out as i  cannot. i get this
>>> > error of:
>>> >
>>> > !SESSION Mon Dec 01 23:06:42 GMT-05:00 2008
>>> > ------------------------------------
>>> > !ENTRY org.eclipse.equinox.launcher 4 0 2008-12-01 23:06:42.375
>>> > !MESSAGE Exception launching the Eclipse Platform:
>>> > !STACK
>>> > java.lang.ClassNotFoundException:
>>> > org.eclipse.core.runtime.adaptor.EclipseStarter
>>> >        at java.net.URLClassLoader$1.run(Unknown Source)
>>> >        at java.security.AccessController.doPrivileged(Native Method)
>>> >        at java.net.URLClassLoader.findClass(Unknown Source)
>>> >        at java.lang.ClassLoader.loadClass(Unknown Source)
>>> >        at java.lang.ClassLoader.loadClass(Unknown Source)
>>> >        at
>>> > org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:505)
>>> >        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
>>> >        at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
>>> >        at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>>> >
>>> >  i am trying to figure out if i am on the track here.
>>> > thanks
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> Toli Kuznets
>>> http://www.marketcetera.com: Open-Source Trading Platform
>>> download.run.trade.
>>
>
>



--
Toli Kuznets
http://www.marketcetera.com: Open-Source Trading Platform
download.run.trade.

_______________________________________________
m-etc-dev mailing list
[hidden email]
http://lists.marketcetera.org/mailman/listinfo/m-etc-dev_lists.marketcetera.org