Package not found

T

Tarun

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.

please help me out.

Tarun
 
A

Arne Vajhøj

Tarun said:
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
 
T

Tarun

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.
 
A

Arne Vajhøj

Tarun said:
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
 
L

Lew

Tarun said:
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.
 
T

Tarun

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.

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.
 
J

John W. Kennedy

Tarun said:
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
 
L

Lew

Tarun said:
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.
 
D

Daniele Futtorovic

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.
 
D

Donkey Hot

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.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java: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.
 
T

Tarun

What is the output of

    jar tf ......\jt.jar

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.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at sun.tools.jar.Main.run(Main.java:185)
at sun.tools.jar.Main.main(Main.java:904)

What does it mean here
 
T

Tarun

(e-mail address removed):





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.

I made the changes and I got the following result.
com/ibm/as400/vaccess/VObjectCellRenderer.class
com/ibm/as400/vaccess/VObjectEvent.class
com/ibm/as400/vaccess/VObjectEventSupport.class
com/ibm/as400/vaccess/VObjectHeaderRenderer.class
com/ibm/as400/vaccess/VOutput.class
com/ibm/as400/vaccess/VObjectListener.class
com/ibm/as400/vaccess/VPrinter$1.class
com/ibm/as400/vaccess/VPrinter$VObjectListener_.class
com/ibm/as400/vaccess/VPrinter.class
com/ibm/as400/vaccess/VPrinterBeanInfo.class
com/ibm/as400/vaccess/VPrinterOutput$1.class
com/ibm/as400/vaccess/VPrinterOutput.class
com/ibm/as400/vaccess/VPrinterOutputBeanInfo.class
com/ibm/as400/vaccess/VPrinters.class
com/ibm/as400/vaccess/VPrintersBeanInfo.class
com/ibm/as400/vaccess/VPropertiesAction$1.class
com/ibm/as400/vaccess/VPropertiesAction$2.class
com/ibm/as400/vaccess/VPropertiesAction$3.class
com/ibm/as400/vaccess/VPropertiesAction$4.class
com/ibm/as400/vaccess/VPropertiesAction$5.class
com/ibm/as400/vaccess/VPropertiesAction.class
com/ibm/as400/vaccess/VPropertiesActionBeanInfo.class
com/ibm/as400/vaccess/VPropertiesPane.class
com/ibm/as400/vaccess/VQueuedMessage.class
com/ibm/as400/vaccess/VResourceListPropertiesPane.cla
com/ibm/as400/vaccess/VResourcePropertiesPane.class
com/ibm/as400/vaccess/VSystemPool.class
com/ibm/as400/vaccess/VSystemPoolBeanInfo.class
com/ibm/as400/vaccess/VSystemPoolModifyAction.class
com/ibm/as400/vaccess/VSystemPoolModifyDialog$VSPMDLi
com/ibm/as400/vaccess/VSystemPoolModifyDialog.class
com/ibm/as400/vaccess/VSystemStatus.class
com/ibm/as400/vaccess/VSystemStatusBeanInfo.class
com/ibm/as400/vaccess/VSystemStatusPane.class
com/ibm/as400/vaccess/VSystemValue.class
com/ibm/as400/vaccess/VSystemValueDetailsPropertiesPa
com/ibm/as400/vaccess/VSystemValueGroup$1.class
com/ibm/as400/vaccess/VSystemValueGroup$VObjectListen
com/ibm/as400/vaccess/VSystemValueGroup.class
com/ibm/as400/vaccess/VSystemValueGroupPropertiesPane
com/ibm/as400/vaccess/VSystemValueList.class
com/ibm/as400/vaccess/VSystemValueListBeanInfo.class
com/ibm/as400/vaccess/VSystemValueModifyAction.class
com/ibm/as400/vaccess/VSysvalArrayDialog.class
com/ibm/as400/vaccess/VSysvalDateDialog.class
com/ibm/as400/vaccess/VSysvalDatePane.class
com/ibm/as400/vaccess/VSysvalTextDialog.class
com/ibm/as400/vaccess/VUser.class
com/ibm/as400/vaccess/VTableColumn.class
com/ibm/as400/vaccess/VUserAndGroup.class
com/ibm/as400/vaccess/VUserList.class
com/ibm/as400/vaccess/VUserListBeanInfo.class
com/ibm/as400/vaccess/VUtilities.class
com/ibm/as400/vaccess/VetoableChangeSupport.class
com/ibm/as400/vaccess/WorkingCursorAdapter.class
com/ibm/as400/vaccess/WorkingCursorAdapterBeanInfo.cl
com/ibm/as400/vaccess/WorkingEvent.class
com/ibm/as400/vaccess/WorkingEventSupport.class
com/ibm/as400/vaccess/WorkingListener.class
com/ibm/as400/vaccess/AS400DetailsModel16.gif
com/ibm/as400/vaccess/AS400DetailsModel32.gif
com/ibm/as400/vaccess/AS400DetailsPane16.gif
com/ibm/as400/vaccess/AS400DetailsPane32.gif
com/ibm/as400/vaccess/AS400ExplorerPane16.gif
com/ibm/as400/vaccess/AS400ExplorerPane32.gif
com/ibm/as400/vaccess/AS400JDBCDataSourcePane16.gif
com/ibm/as400/vaccess/AS400JDBCDataSourcePane32.gif
com/ibm/as400/vaccess/AS400ListModel16.gif
com/ibm/as400/vaccess/AS400ListModel32.gif
com/ibm/as400/vaccess/AS400ListPane16.gif
com/ibm/as400/vaccess/AS400ListPane32.gif
com/ibm/as400/vaccess/AS400TreeModel16.gif
com/ibm/as400/vaccess/AS400TreeModel32.gif
com/ibm/as400/vaccess/AS400TreePane16.gif
com/ibm/as400/vaccess/AS400TreePane32.gif
com/ibm/as400/vaccess/CommandCallButton16.gif
com/ibm/as400/vaccess/CommandCallButton32.gif
com/ibm/as400/vaccess/CommandCallMenuItem16.gif
com/ibm/as400/vaccess/CommandCallMenuItem32.gif
com/ibm/as400/vaccess/FirstIcon.gif
com/ibm/as400/vaccess/DataQueueDocument16.gif
com/ibm/as400/vaccess/DataQueueDocument32.gif
com/ibm/as400/vaccess/ErrorDialogAdapter16.gif
com/ibm/as400/vaccess/ErrorDialogAdapter32.gif
com/ibm/as400/vaccess/FitPageIcon.gif
com/ibm/as400/vaccess/FitWidthIcon.gif
com/ibm/as400/vaccess/FlashIcon.gif
com/ibm/as400/vaccess/GoToIcon.gif
com/ibm/as400/vaccess/IFSTextFileDocument16.gif
com/ibm/as400/vaccess/IFSTextFileDocument32.gif
com/ibm/as400/vaccess/KeyedDataQueueDocument16.gif
com/ibm/as400/vaccess/KeyedDataQueueDocument32.gif
com/ibm/as400/vaccess/LastIcon.gif
com/ibm/as400/vaccess/NextIcon.gif
com/ibm/as400/vaccess/PaperIcon.gif
com/ibm/as400/vaccess/PreviousIcon.gif
com/ibm/as400/vaccess/RefreshIcon.gif
com/ibm/as400/vaccess/ProgramCallButton16.gif
com/ibm/as400/vaccess/ProgramCallButton32.gif
com/ibm/as400/vaccess/ProgramCallMenuItem16.gif
com/ibm/as400/vaccess/ProgramCallMenuItem32.gif
com/ibm/as400/vaccess/RecordListFormPane16.gif
com/ibm/as400/vaccess/RecordListFormPane32.gif
com/ibm/as400/vaccess/RecordListTableModel16.gif
com/ibm/as400/vaccess/RecordListTableModel32.gif
com/ibm/as400/vaccess/RecordListTablePane16.gif
com/ibm/as400/vaccess/RecordListTablePane32.gif
com/ibm/as400/vaccess/ResetViewIcon.gif
com/ibm/as400/vaccess/ResourceListDetailsModel16.gif
com/ibm/as400/vaccess/ResourceListDetailsModel32.gif
com/ibm/as400/vaccess/ResourceListDetailsPane16.gif
com/ibm/as400/vaccess/ResourceListDetailsPane32.gif
com/ibm/as400/vaccess/ResourceListModel16.gif
com/ibm/as400/vaccess/ResourceListModel32.gif
com/ibm/as400/vaccess/ResourceListPane16.gif
com/ibm/as400/vaccess/ResourceListPane32.gif
com/ibm/as400/vaccess/SQLConnection16.gif
com/ibm/as400/vaccess/SQLConnection32.gif
com/ibm/as400/vaccess/SQLQueryBuilderPane16.gif
com/ibm/as400/vaccess/SQLQueryBuilderPane32.gif
com/ibm/as400/vaccess/SQLResultSetFormPane16.gif
com/ibm/as400/vaccess/SQLResultSetFormPane32.gif
com/ibm/as400/vaccess/SQLResultSetTableModel16.gif
com/ibm/as400/vaccess/SQLResultSetTableModel32.gif
com/ibm/as400/vaccess/SQLResultSetTablePane16.gif
com/ibm/as400/vaccess/VFIcon.gif
com/ibm/as400/vaccess/SQLResultSetTablePane32.gif
com/ibm/as400/vaccess/SQLStatementButton16.gif
com/ibm/as400/vaccess/SQLStatementButton32.gif
com/ibm/as400/vaccess/SQLStatementDocument16.gif
com/ibm/as400/vaccess/SQLStatementDocument32.gif
com/ibm/as400/vaccess/SQLStatementMenuItem16.gif
com/ibm/as400/vaccess/SQLStatementMenuItem32.gif
com/ibm/as400/vaccess/SpooledFileViewer16.gif
com/ibm/as400/vaccess/SpooledFileViewer32.gif
com/ibm/as400/vaccess/VActionAdapter16.gif
com/ibm/as400/vaccess/VActionAdapter32.gif
com/ibm/as400/vaccess/VIFSDirectory16.gif
com/ibm/as400/vaccess/VIFSDirectory32.gif
com/ibm/as400/vaccess/VIFSDirectoryOpen16.gif
com/ibm/as400/vaccess/VIFSDirectoryOpen32.gif
com/ibm/as400/vaccess/VIFSFile16.gif
com/ibm/as400/vaccess/VIFSFile32.gif
com/ibm/as400/vaccess/VJavaApplicationCall16.gif
com/ibm/as400/vaccess/VJavaApplicationCall32.gif
com/ibm/as400/vaccess/VJob16.gif
com/ibm/as400/vaccess/VJob32.gif
com/ibm/as400/vaccess/VJobList16.gif
com/ibm/as400/vaccess/VJobList32.gif
com/ibm/as400/vaccess/VMessage16.gif
com/ibm/as400/vaccess/VMessage32.gif
com/ibm/as400/vaccess/VMessageList16.gif
com/ibm/as400/vaccess/VMessageList32.gif
com/ibm/as400/vaccess/VOutput16.gif
com/ibm/as400/vaccess/VOutput32.gif
com/ibm/as400/vaccess/VPrinter16.gif
com/ibm/as400/vaccess/VPrinter32.gif
com/ibm/as400/vaccess/VPrinterOutput16.gif
com/ibm/as400/vaccess/VPrinterOutput32.gif
com/ibm/as400/vaccess/VPrinters16.gif
com/ibm/as400/vaccess/VPrinters32.gif
com/ibm/as400/vaccess/VPropertiesAction16.gif
com/ibm/as400/vaccess/VPropertiesAction32.gif
com/ibm/as400/vaccess/VSystemPool16.gif
com/ibm/as400/vaccess/VSystemPool32.gif
com/ibm/as400/vaccess/VSystemStatus16.gif
com/ibm/as400/vaccess/VSystemStatus32.gif
com/ibm/as400/vaccess/VSystemValue16.gif
com/ibm/as400/vaccess/VSystemValue32.gif
com/ibm/as400/vaccess/VSystemValueList16.gif
com/ibm/as400/vaccess/VSystemValueList32.gif
com/ibm/as400/vaccess/VUser16.gif
com/ibm/as400/vaccess/VUser32.gif
com/ibm/as400/vaccess/VUserList16.gif
com/ibm/as400/vaccess/VUserList32.gif
com/ibm/as400/vaccess/VUsersNotInGroups16.gif
com/ibm/as400/vaccess/VUsersNotInGroups32.gif
com/ibm/as400/vaccess/WorkingCursorAdapter16.gif
com/ibm/as400/vaccess/WorkingCursorAdapter32.gif
com/ibm/as400/vaccess/ZoomIcon.gif
com/ibm/as400/vaccess/VMRI.class
com/ibm/as400/vaccess/VMRI_en.class
com/ibm/as400/vaccess/VMRI_en_US.class
com/ibm/as400/vaccess/VNPMRI.class
com/ibm/as400/vaccess/VNPMRI_en.class
com/ibm/as400/vaccess/VNPMRI_en_US.class
com/ibm/as400/vaccess/VQRYMRI.class
com/ibm/as400/vaccess/VQRYMRI_en.class
com/ibm/as400/vaccess/VQRYMRI_en_US.class
com/ibm/as400/vaccess/AJDSP_CONNOPT.pdml.ser
com/ibm/as400/vaccess/AJDSP_FORMAT.pdml.ser
com/ibm/as400/vaccess/AJDSP_GENERAL.pdml.ser
com/ibm/as400/vaccess/AJDSP_LANGUAGE.pdml.ser
com/ibm/as400/vaccess/AJDSP_OTHER.pdml.ser
com/ibm/as400/vaccess/AJDSP_PACKAGE.pdml.ser
com/ibm/as400/vaccess/AJDSP_SERVER.pdml.ser
com/ibm/as400/vaccess/AJDSP_PERFORMANCE.pdml.ser
com/ibm/as400/vaccess/AJDSP_TABBEDPANE.pdml.ser
com/ibm/as400/vaccess/AJDSP_TRANSLATION.pdml.ser
com/ibm/as400/vaccess/AS400JDBCDataSourcePaneGUI.clas
com/ibm/as400/security/
com/ibm/as400/security/auth/
com/ibm/as400/security/auth/AS400AuthenticationExcept
com/ibm/as400/security/auth/AS400BasicAuthenticationC
com/ibm/as400/security/auth/AS400BasicAuthenticationP
com/ibm/as400/security/auth/AS400Credential.class
com/ibm/as400/security/auth/AS400CredentialBeanInfo.c
com/ibm/as400/security/auth/AS400CredentialEvent.clas
com/ibm/as400/security/auth/AS400CredentialImpl.class
com/ibm/as400/security/auth/AS400CredentialImplRemote
com/ibm/as400/security/auth/AS400CredentialListener.c
com/ibm/as400/security/auth/AS400Principal.class
com/ibm/as400/security/auth/AS400PrincipalBeanInfo.cl
com/ibm/as400/security/auth/AS400SwappableCredential.
com/ibm/as400/security/auth/AuthenticationSystem.clas
com/ibm/as400/security/auth/DestroyFailedException.cl
com/ibm/as400/security/auth/ProfileHandleCredential.c
com/ibm/as400/security/auth/ProfileHandleCredentialBe
com/ibm/as400/security/auth/ProfileHandleImpl.class
com/ibm/as400/security/auth/ProfileHandleImplRemote.c
com/ibm/as400/security/auth/ProfileTokenCredential.cl
com/ibm/as400/security/auth/ProfileTokenCredentialBea
com/ibm/as400/security/auth/ProfileTokenImpl.class
com/ibm/as400/security/auth/ProfileTokenImplRemote.cl
com/ibm/as400/security/auth/RefreshAgent.class
com/ibm/as400/security/auth/RefreshFailedException.cl
com/ibm/as400/security/auth/ResourceBundleLoader_a.cl
com/ibm/as400/security/auth/RetrieveFailedException.c
com/ibm/as400/security/auth/SwapFailedException.class
com/ibm/as400/security/auth/UserProfilePrincipal.clas
com/ibm/as400/security/auth/UserProfilePrincipalBeanI
com/ibm/as400/security/auth/Credential16.gif
com/ibm/as400/security/auth/Credential32.gif
com/ibm/as400/security/auth/Principal16.gif
com/ibm/as400/security/auth/Principal32.gif
com/ibm/as400/security/auth/ProfileHandleCredential16
com/ibm/as400/security/auth/ProfileHandleCredential32
com/ibm/as400/security/auth/ProfileTokenCredential16.
com/ibm/as400/security/auth/ProfileTokenCredential32.
com/ibm/as400/security/auth/UserProfilePrincipal16.gi
com/ibm/as400/security/auth/UserProfilePrincipal32.gi
com/ibm/as400/security/SecurityMRI.class
com/ibm/as400/security/SecurityMRI_en.class
com/ibm/as400/security/SecurityMRI_en_US.class
com/ibm/as400/data/
com/ibm/as400/data/DataDescriptor.class
com/ibm/as400/data/Descriptor.class
com/ibm/as400/data/DocNodeDescriptor.class
com/ibm/as400/data/ParseException.class
com/ibm/as400/data/PcmlAttribute.class
com/ibm/as400/data/PcmlAttributeList.class
com/ibm/as400/data/PcmlData.class
com/ibm/as400/data/PcmlDataValues.class
com/ibm/as400/data/PcmlDataVector.class
com/ibm/as400/data/PcmlDescriptor.class
com/ibm/as400/data/PcmlDimensions.class
com/ibm/as400/data/PcmlDocNode.class
com/ibm/as400/data/PcmlDocRoot.class
com/ibm/as400/data/PcmlDocument.class
com/ibm/as400/data/PcmlException.class
com/ibm/as400/data/PcmlMessageLog.class
com/ibm/as400/data/PcmlNode.class
com/ibm/as400/data/PcmlNodeType.class
com/ibm/as400/data/PcmlProgram.class
com/ibm/as400/data/PcmlSAXParser.class
com/ibm/as400/data/PcmlSpecificationException.class
com/ibm/as400/data/PcmlStruct.class
com/ibm/as400/data/ProgramCallDocument.class
com/ibm/as400/data/ProgramDescriptor.class
com/ibm/as400/data/RecordFormatDescriptor.class
com/ibm/as400/data/RecordFormatDocument.class
com/ibm/as400/data/ResourceLoader.class
com/ibm/as400/data/RfmlData.class
com/ibm/as400/data/RfmlDescriptor.class
com/ibm/as400/data/RfmlDocument.class
com/ibm/as400/data/RfmlRecordFormat.class
com/ibm/as400/data/RfmlSAXParser.class
com/ibm/as400/data/RfmlStruct.class
com/ibm/as400/data/StructDescriptor.class
com/ibm/as400/data/SystemClassLoader.class
com/ibm/as400/data/SystemResourceFinder.class
com/ibm/as400/data/XMLErrorHandler.class
com/ibm/as400/data/XmlException.class
com/ibm/as400/data/pcml.dtd
com/ibm/as400/data/rfml.dtd
com/ibm/as400/data/DAMRI.class
com/ibm/as400/micro/
com/ibm/as400/micro/MEServer.class
com/ibm/as400/micro/MEConstants.class
com/ibm/as400/micro/MEException.class
com/ibm/as400/micro/ResourceBundleLoader_m.class
com/ibm/as400/micro/ConnectionHandler.class
com/ibm/as400/micro/JdbcMeService.class
com/ibm/as400/micro/MicroDataInputStream.class
com/ibm/as400/micro/MicroDataOutputStream.class
com/ibm/as400/micro/ResultSetHandler.class
com/ibm/as400/micro/Service.class
com/ibm/as400/micro/StatementHandler.class

What does this mean.
 
M

Mark Space

Tarun said:
I made the changes and I got the following result.
com/ibm/as400/vaccess/VObjectCellRenderer.class

So, looking at your original error message, do you see the issue now?
 
T

Tarun

So, looking at your original error message, do you see the issue now?

Yes I still see the issue, some one tell me clearly should I setup my
classpath using 'Javac' or the environmental variable option from my
computer.

I have tried using the 'javac' option only to get an error.

C:\tarun\proj1\OS>javac -CLASSPATH C:\Progra~1\IBM\Client~1\jt400\lib\
jt400.jar ConnPool.java
javac: invalid flag: -CLASSPATH
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is
doing
-deprecation Output source locations where deprecated
APIs are us
ed
-classpath <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-d <directory> Specify where to place generated class
files
-encoding <encoding> Specify character encoding used by source
files
-source <release> Provide source compatibility with
specified release
-target <release> Generate class files for specific VM
version
-help Print a synopsis of standard options

Also should I restart tomcat everytime I change the classpath.
 
M

Mark Space

Tarun said:
Yes I still see the issue, some one tell me clearly should I setup my

No, I asked if you have understood why you are having the problem?
classpath using 'Javac' or the environmental variable option from my
computer.

Unfortunately there is no one method that always works. You must
understand your own OS and environment to decide. We can't do that for you.
I have tried using the 'javac' option only to get an error.

C:\tarun\proj1\OS>javac -CLASSPATH C:\Progra~1\IBM\Client~1\jt400\lib\
jt400.jar ConnPool.java
javac: invalid flag: -CLASSPATH

Can you understand what that last line means? Does it make sense what
you are doing wrong?

Javac docs are here:

<http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html>
 
L

Lew

Donkey said:
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.

Double quotes are a cleaner approach.
 
N

Nigel Wade

Tarun said:
Yes I still see the issue,

That's not what Mark meant. What he meant was, looking at the above output and
comparing it with your original error message, you should be able to determine
what is causing the issue.
some one tell me clearly should I setup my
classpath using 'Javac' or the environmental variable option from my
computer.

The only thing you can do via the classpath is provide a jar which contains the
necessary package. The jar you have listed does not contain the package you
require. Look again at the error message and the package which actually exists.
To re-iterate, the error message was:
package com.ibm.as400.access does not exist

To spell it out for you, that package does not exist in the jar. The jar
contains the package com.ibm.as400.vaccess. You need to fix your source code to
use the correct package, or modify the classpath to provide the jar which
contains that package.
 
T

Tarun

That's not what Mark meant. What he meant was, looking at the above output and
comparing it with your original error message, you should be able to determine
what is causing the issue.


The only thing you can do via the classpath is provide a jar which contains the
necessary package. The jar you have listed does not contain the package you
require. Look again at the error message and the package which actually exists.
To re-iterate, the error message was:
 package com.ibm.as400.access does not exist

To spell it out for you, that package does not exist in the jar. The jar
contains the package com.ibm.as400.vaccess. You need to fix your source code to
use the correct package, or modify the classpath to provide the jar which
contains that package.

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
            University of Leicester, Leicester, LE1 7RH, UK
E-mail :    (e-mail address removed)
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555

Well the package does exist, its just there were too many packages in
jar files and they kinda escaped the screen and I could not paste them
here, but now I have used the pipe option and I'm sure the package I'm
looking for does exist in the Jar file.
 
L

Lew

Well the package does exist, its just there were too many packages in
jar files and they kinda escaped the screen and I could not paste them
here, but now I have used the pipe option and I'm sure the package I'm
looking for does exist in the Jar file.

So what happens when you follow the other advice you've received?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top