Tarun
Guest
Posts: n/a

 02-05-2008
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.

Tarun

Arne Vajhøj
Guest
Posts: n/a

 02-05-2008
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

Tarun
Guest
Posts: n/a

 02-05-2008
On Feb 4, 4:23*pm, Arne Vajhøj <(E-Mail Removed)> 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.

Arne Vajhøj
Guest
Posts: n/a

 02-05-2008
Tarun wrote:
> On Feb 4, 4:23 pm, Arne Vajhøj <(E-Mail Removed)> 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.

>
> Those slashes mean nothing, just did not give the whole path
> classpath = c:\program files\ibm\client\jt400\com\ibm\as400\access
> \jt400.jar

OK.

Directories with spaces in sometimes give problems.

You could try copy it to a dir with no spaces in name
and set classpath to that.

Also check with jar tvf that the jar actually contains
the package.

Arne

Lew
Guest
Posts: n/a

 02-05-2008
Tarun wrote:
> On Feb 4, 4:23 pm, Arne VajhÃ¸j <(E-Mail Removed)> 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

Tarun
Guest
Posts: n/a

 02-05-2008
On Feb 4, 4:49*pm, Lew <(E-Mail Removed)> wrote:
> Tarun wrote:
> > On Feb 4, 4:23 pm, Arne Vajhøj <(E-Mail Removed)> 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- Hide quoted text -
>
> - Show quoted text -

Thanks Lew for the reply, I will not be careless about the said
things.

I'm using command prompt to compile and run my programs.
I'm using set classpath = .;C:\Program Files\IBM\Client Access
\jt400\com\ibm\as400\access\jt400.jar
using the above statement to set up my class path.

I'm getting the following errors
when I'm compiling
javac comm.java
package com.ibm.as400.access does not exist.

John W. Kennedy
Guest
Posts: n/a

 02-05-2008
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.

What is the output of

jar tf ......\jt.jar
--
John W. Kennedy
If Bill Gates believes in "intelligent design", why can't he apply it to
Windows?

Lew
Guest
Posts: n/a

 02-05-2008
Tarun wrote:
> I'm using command prompt to compile and run my programs.
> I'm using set classpath = .;C:\Program Files\IBM\Client Access
> \jt400\com\ibm\as400\access\jt400.jar
> using the above statement to set up my class path.
>
> I'm getting the following errors
> when I'm compiling
> javac comm.java
> package com.ibm.as400.access does not exist.

Try enclosing "Program Files" in double quotes, as mentioned upthread.

Try spelling CLASSPATH in all upper-case letters as it should be, and as
mentioned upthread. I do not know if Windows is case-sensitive for envars,
but other platforms are, and it would be a shame if it accidentally worked to
misspell the envar in Windows and that gave you a bad habit.

--
Lew

Daniele Futtorovic
Guest
Posts: n/a

 02-05-2008
On 2008-02-05 02:01 +0100, Tarun allegedly wrote:
> On Feb 4, 4:49 pm, Lew <(E-Mail Removed)> wrote:
>> Tarun wrote:
>>> On Feb 4, 4:23 pm, Arne Vajhøj <(E-Mail Removed)> 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- Hide quoted text -
>>
>> - Show quoted text -

>
> Thanks Lew for the reply, I will not be careless about the said
> things.
>
> I'm using command prompt to compile and run my programs. I'm using
> set classpath = .;C:\Program Files\IBM\Client Access
> \jt400\com\ibm\as400\access\jt400.jar using the above statement to
> set up my class path.

Earlier on you mentioned a different path than that:
> c:\program files\ibm\client\jt400\com\ibm\as400\access\jt400. jar

Check whether this might be the source of the problem.

If it isn't, you might want to try to put the jar in the same directory
you're running javac or java from, and see if you can get it working
that way (use the command-line classpath option: "-cp .;jt400.jar") --
leaving the task of getting it to run when the jar is somewhere else to
later.

DF.

Donkey Hot
Guest
Posts: n/a

 02-05-2008
Tarun <(E-Mail Removed)> wrote in news:f67f5a5f-d366-47eb-b76b-
http://www.velocityreviews.com/forums/(E-Mail Removed):

>
> The output is as follows
> java.io.FileNotFoundException: C:\Program (The system cannot find the
> file speci
> fied)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(FileInputStream.jav a:106)
> at java.io.FileInputStream.<init>(FileInputStream.jav a:66)
> at sun.tools.jar.Main.run(Main.java:185)
> at sun.tools.jar.Main.main(Main.java:904)
>
> What does it mean here
>

Replace C:\Program Files\
with c:\Progra~1\

and see what happens.

The folders with space in them are often challengin. Happily Windows
provides the 8.3 type names too.