You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Jayaram Subramanian (JIRA)" <ji...@apache.org> on 2013/12/23 02:07:50 UTC

[jira] [Assigned] (DERBY-5219) Make it possible to set the classpath of the Derby tests using the -cp command line arg instead of setting the CLASSPATH environment variable.

     [ https://issues.apache.org/jira/browse/DERBY-5219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jayaram Subramanian reassigned DERBY-5219:
------------------------------------------

    Assignee: Jayaram Subramanian

> Make it possible to set the classpath of the Derby tests using the -cp command line arg instead of setting the CLASSPATH environment variable.
> ----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-5219
>                 URL: https://issues.apache.org/jira/browse/DERBY-5219
>             Project: Derby
>          Issue Type: Improvement
>          Components: Test
>    Affects Versions: 10.9.1.0
>            Reporter: Rick Hillegas
>            Assignee: Jayaram Subramanian
>
> The instructions for running Derby tests say that you need to set the CLASSPATH environment variable. This rule is described here: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/README.htm?view=co#2.1_running_with_derby_classes_ If, instead, you set the classpath using the -cp command line argument, the classpath won't be properly set in the subprocesses which the test harness spawns. It should be possible for the harness to introspect its classpath and pass that information to subprocesses.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Re: [jira] [Assigned] (DERBY-5219) Make it possible to set the classpath of the Derby tests using the -cp command line arg instead of setting the CLASSPATH environment variable.

Posted by "rsjay1976 ." <rs...@gmail.com>.
Hi All
I am trying to debug the issue in eclopse by debugging the RunTest.java
class file. But i find that none of the derbyTesting jar related  classes
like NetServer, JavaVersionHolder, and Sed classes could be referenced.   I
tried adding DerbyTesting.jar to classpath and sourcelookpath in eclipse.
But its not helping out.. Thanks for any help..

With Regards
Jayaram


On Tue, Dec 31, 2013 at 10:00 PM, rsjay1976 . <rs...@gmail.com> wrote:

>
> Thanks all,
> It now works..
>
>
> With Regards
> Jayaram
>
>
>
>
>
> On Tue, Dec 31, 2013 at 9:51 AM, Knut Anders Hatlen <
> knut.hatlen@oracle.com> wrote:
>
>> "rsjay1976 ." <rs...@gmail.com> writes:
>>
>> > Thanks Bryan
>> > I tried both with and without $, but got the same results.As an FYI, I
>> > am running cygwin on windows 7 pc with SUN JRE 1.6.0_14 version.
>>
>> Hi Jayaram,
>>
>> In addition to removing the $, I think you need to have double quotes
>> around the classpath, since unquoted semicolons have a special meaning
>> in cygwin's shell. Maybe you also need to replace "set" with "export".
>>
>> So something like
>>
>>   set CLASSPATH="C:/Derby/trunk/...."
>>
>> or
>>
>>   export CLASSPATH="C:/Derby/trunk/...."
>>
>> might work better.
>>
>> > With Regards
>> > Jayaram
>> >
>> > On Mon, Dec 30, 2013 at 8:16 PM, Bryan Pendleton
>> > <bp...@gmail.com> wrote:
>> >
>> >         jayaram@ADMINIB-0FLD7HA /cygdrive/c/derby/trunk
>> >         $ set
>> >
>> $CLASSPATH=C:/Derby/trunk/tools/java/jakarta-oro-2.0.8.jar;C:/Derby/trunk/jars/sane/derbyTesting.
>> >
>> jar;C:/Derby/trunk/jars/sane/derbyrun.jar;C:/Derby/trunk/tools/java/junit.
>> >         jar
>> >
>> >
>> >     Hi Jayaram,
>> >
>> >     Make sure that line starts:
>> >
>> >     set CLASSPATH=...
>> >
>> >     not
>> >
>> >     set $CLASSPATH=...
>> >
>> >     thanks,
>> >
>> >     bryan
>> >
>> >
>> >
>>
>
>

Re: [jira] [Assigned] (DERBY-5219) Make it possible to set the classpath of the Derby tests using the -cp command line arg instead of setting the CLASSPATH environment variable.

Posted by "rsjay1976 ." <rs...@gmail.com>.
Thanks all,
It now works..


With Regards
Jayaram





On Tue, Dec 31, 2013 at 9:51 AM, Knut Anders Hatlen
<kn...@oracle.com>wrote:

> "rsjay1976 ." <rs...@gmail.com> writes:
>
> > Thanks Bryan
> > I tried both with and without $, but got the same results.As an FYI, I
> > am running cygwin on windows 7 pc with SUN JRE 1.6.0_14 version.
>
> Hi Jayaram,
>
> In addition to removing the $, I think you need to have double quotes
> around the classpath, since unquoted semicolons have a special meaning
> in cygwin's shell. Maybe you also need to replace "set" with "export".
>
> So something like
>
>   set CLASSPATH="C:/Derby/trunk/...."
>
> or
>
>   export CLASSPATH="C:/Derby/trunk/...."
>
> might work better.
>
> > With Regards
> > Jayaram
> >
> > On Mon, Dec 30, 2013 at 8:16 PM, Bryan Pendleton
> > <bp...@gmail.com> wrote:
> >
> >         jayaram@ADMINIB-0FLD7HA /cygdrive/c/derby/trunk
> >         $ set
> >
> $CLASSPATH=C:/Derby/trunk/tools/java/jakarta-oro-2.0.8.jar;C:/Derby/trunk/jars/sane/derbyTesting.
> >
> jar;C:/Derby/trunk/jars/sane/derbyrun.jar;C:/Derby/trunk/tools/java/junit.
> >         jar
> >
> >
> >     Hi Jayaram,
> >
> >     Make sure that line starts:
> >
> >     set CLASSPATH=...
> >
> >     not
> >
> >     set $CLASSPATH=...
> >
> >     thanks,
> >
> >     bryan
> >
> >
> >
>

Re: [jira] [Assigned] (DERBY-5219) Make it possible to set the classpath of the Derby tests using the -cp command line arg instead of setting the CLASSPATH environment variable.

Posted by Knut Anders Hatlen <kn...@oracle.com>.
"rsjay1976 ." <rs...@gmail.com> writes:

> Thanks Bryan
> I tried both with and without $, but got the same results.As an FYI, I
> am running cygwin on windows 7 pc with SUN JRE 1.6.0_14 version.

Hi Jayaram,

In addition to removing the $, I think you need to have double quotes
around the classpath, since unquoted semicolons have a special meaning
in cygwin's shell. Maybe you also need to replace "set" with "export".

So something like

  set CLASSPATH="C:/Derby/trunk/...."

or

  export CLASSPATH="C:/Derby/trunk/...."

might work better.

> With Regards
> Jayaram
>
> On Mon, Dec 30, 2013 at 8:16 PM, Bryan Pendleton
> <bp...@gmail.com> wrote:
>
>         jayaram@ADMINIB-0FLD7HA /cygdrive/c/derby/trunk
>         $ set
>         $CLASSPATH=C:/Derby/trunk/tools/java/jakarta-oro-2.0.8.jar;C:/Derby/trunk/jars/sane/derbyTesting.
>         jar;C:/Derby/trunk/jars/sane/derbyrun.jar;C:/Derby/trunk/tools/java/junit.
>         jar
>
>     
>     Hi Jayaram,
>     
>     Make sure that line starts:
>     
>     set CLASSPATH=...
>     
>     not
>     
>     set $CLASSPATH=...
>     
>     thanks,
>     
>     bryan
>     
>
>

Re: [jira] [Assigned] (DERBY-5219) Make it possible to set the classpath of the Derby tests using the -cp command line arg instead of setting the CLASSPATH environment variable.

Posted by "rsjay1976 ." <rs...@gmail.com>.
Thanks Bryan
I tried both with and without $, but got the same results.As an FYI,  I am
running cygwin on windows 7 pc  with SUN JRE 1.6.0_14 version.

With Regards
Jayaram


On Mon, Dec 30, 2013 at 8:16 PM, Bryan Pendleton <bpendleton.derby@gmail.com
> wrote:

> jayaram@ADMINIB-0FLD7HA /cygdrive/c/derby/trunk
>> $ set $CLASSPATH=C:/Derby/trunk/tools/java/jakarta-oro-2.0.8.
>> jar;C:/Derby/trunk/jars/sane/derbyTesting.jar;C:/Derby/
>> trunk/jars/sane/derbyrun.jar;C:/Derby/trunk/tools/java/junit.jar
>>
>
> Hi Jayaram,
>
> Make sure that line starts:
>
> set CLASSPATH=...
>
> not
>
> set $CLASSPATH=...
>
> thanks,
>
> bryan
>
>

Re: [jira] [Assigned] (DERBY-5219) Make it possible to set the classpath of the Derby tests using the -cp command line arg instead of setting the CLASSPATH environment variable.

Posted by Bryan Pendleton <bp...@gmail.com>.
> jayaram@ADMINIB-0FLD7HA /cygdrive/c/derby/trunk
> $ set $CLASSPATH=C:/Derby/trunk/tools/java/jakarta-oro-2.0.8.jar;C:/Derby/trunk/jars/sane/derbyTesting.jar;C:/Derby/trunk/jars/sane/derbyrun.jar;C:/Derby/trunk/tools/java/junit.jar

Hi Jayaram,

Make sure that line starts:

set CLASSPATH=...

not

set $CLASSPATH=...

thanks,

bryan


Re: [jira] [Assigned] (DERBY-5219) Make it possible to set the classpath of the Derby tests using the -cp command line arg instead of setting the CLASSPATH environment variable.

Posted by "rsjay1976 ." <rs...@gmail.com>.
Hi,
 I was trying to replicate the above  issue by running  harness against a
single test. But i was facing the issue below when i was trying to set
classpath..  Appreciate your help..
================================================
jayaram@ADMINIB-0FLD7HA /cygdrive/c/derby/trunk
$ set
$CLASSPATH=C:/Derby/trunk/tools/java/jakarta-oro-2.0.8.jar;C:/Derby/trunk/jars/sane/derbyTesting.jar;C:/Derby/trunk/jars/sane/derbyrun.jar;C:/Derby/trunk/tools/java/junit.jar
C:/Derby/trunk/jars/sane/derbyTesting.jar: line 1: $'PK\003\004': command
not found
C:/Derby/trunk/jars/sane/derbyTesting.jar: line 2:
$'\b\250\f\207C\320\273\316q\025\020@\036\017SimpleApp.class\265Xy':
command not found
C:/Derby/trunk/jars/sane/derbyTesting.jar: line 2:
$'\034\365u\377\276\231]\315h5\226\344\265-{\2151c\233c%K\226\f\306\300\032c\006\031I\030\313\a\346\036\355\216W\213ww\326\263\263\222\305Us\206\320\222@':
command not found
C:/Derby/trunk/jars/sane/derbyTesting.jar: line 3: syntax error near
unexpected token `('
=================================================

With Regards
Jayaram



On Sun, Dec 22, 2013 at 8:07 PM, Jayaram Subramanian (JIRA) <jira@apache.org
> wrote:

>
>      [
> https://issues.apache.org/jira/browse/DERBY-5219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Jayaram Subramanian reassigned DERBY-5219:
> ------------------------------------------
>
>     Assignee: Jayaram Subramanian
>
> > Make it possible to set the classpath of the Derby tests using the -cp
> command line arg instead of setting the CLASSPATH environment variable.
> >
> ----------------------------------------------------------------------------------------------------------------------------------------------
> >
> >                 Key: DERBY-5219
> >                 URL: https://issues.apache.org/jira/browse/DERBY-5219
> >             Project: Derby
> >          Issue Type: Improvement
> >          Components: Test
> >    Affects Versions: 10.9.1.0
> >            Reporter: Rick Hillegas
> >            Assignee: Jayaram Subramanian
> >
> > The instructions for running Derby tests say that you need to set the
> CLASSPATH environment variable. This rule is described here:
> http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/README.htm?view=co#2.1_running_with_derby_classes_If, instead, you set the classpath using the -cp command line argument, the
> classpath won't be properly set in the subprocesses which the test harness
> spawns. It should be possible for the harness to introspect its classpath
> and pass that information to subprocesses.
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.1.5#6160)
>