db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-4618) "Syntax for the derbyrun.jar file" document page modification
Date Mon, 19 Apr 2010 22:55:51 GMT

    [ https://issues.apache.org/jira/browse/DERBY-4618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12858714#action_12858714
] 

Knut Anders Hatlen commented on DERBY-4618:
-------------------------------------------

> "You cannot use the -cp argument to set the classpath when you use
> the -jar argument to start the ij tool. Instead, you need to set the
> CLASSPATH environment variable beforehand. (...)"

I think the above paragraph is not entirely accurate. The CLASSPATH
enviroment variable will also be ignored when you use the -jar
argument to the java command, so I'd suggest this:

"You cannot use the -cp argument or the CLASSPATH environment variable
to set the classpath when you use the -jar argument to start the ij
tool. If you want to run the ij tool with a custom classpath, you
cannot use the -jar argument. Instead, you have to use the full class
name to start the ij tool (java org.apache.derby.tools.ij).

See Manually setting the CLASSPATH environment variable for more
information about setting up the classpath and running the ij tool."

> I notice that the syntax for sysinfo in the table actually shows the
> -cp option, while the syntax for both ij and dblook as well as the
> server argument does not.

Here, the -cp argument is an argument to the sysinfo command, and it
tells it to analyze the classpath. It is not an argument to the java
command to set up the classpath. So I believe the syntax description
is correct.

> "Syntax for the derbyrun.jar file" document page modification
> -------------------------------------------------------------
>
>                 Key: DERBY-4618
>                 URL: https://issues.apache.org/jira/browse/DERBY-4618
>             Project: Derby
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 10.3.1.4, 10.3.2.1, 10.3.3.0, 10.4.1.3, 10.4.2.0, 10.5.1.1, 10.5.2.0,
10.5.3.0
>            Reporter: C.S. Nirmal J. Fernando
>            Assignee: C.S. Nirmal J. Fernando
>            Priority: Trivial
>         Attachments: Derby-4618.zip, derby4618.diff
>
>
> In "Syntax for the derbyrun.jar file" (http://db.apache.org/derby/docs/10.5/getstart/rgsderbyrunjarsyntax.html)
document page the use of -classpath or -cp when issuing java commands is not that explicitly
explained. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message