Re: Package not found
Tarun wrote:
On Feb 4, 4:23 pm, Arne VajhQj <a...@vajhoej.dk> wrote:
Tarun wrote:
I'm getting the following error.
package com.ibm.as400.access does not exist
classpath = c:\program files\\\jt400\com\ibm\as400\access\jt.jar
I think I'm giving the correct class path but I'm getting the same
error message.
The 3 consecutive slashes look very suspiciously.
Arne
Those slashes mean nothing, just did not give the whole path
classpath = c:\program files\ibm\client\jt400\com\ibm\as400\access
\jt400.jar
I hope this is clear.
On the contrary, slashes mean a lot - they define the directory separations.
Posting the wrong information means that you will get the wrong answer(s).
Your two statements of the problem are very different.
However they share certain traits. They say nothing about how you've set the
CLASSPATH envar, which is what Java tools actually use, they don't show if you
used quotes to prevent the space between "program" and "files" from screwing
up the parsing of that path, and they don't indicate whether you actually
meant to include the directory "Program Files" instead of "program files".
CLASSPATH is the clumsiest way to set the classpath anyway. You should use
the -classpath (same as -cp) option to the Java commands (java, javac), either
explicitly if you're using command-line invocation, or implicitly if you're
using tools like Ant or an IDE.
It would help if you'd actually cite what command you used to invoke the Java
program, and if you cited exactly what behavior you're getting instead of what
you want. Slashes, upper- vs. lower-case and such matters count. Do not be
careless with them.
--
Lew