Ben Linus wrote:Hi Kevin,
I have already added "%AXIS2_HOME%\bin" in PATH system variable.
This was part 1 of the tutorial.
I'm thinking, maybe the variables are set correctly but i'm missing certain libraries?
For example from two of the errors...,
package javax.xml.stream does not exist - is this a missing java lib??
package org.apache.axis2.client does not exist - is this a missing axis2 lib??
Ben Linus wrote:Kevin,
just curious, but how did you work out where to find the libraries?
Ben Linus wrote:Kevin,
I just checked the .jars in axis2\lib
i have axis2-kernel-1.5.jar - (so, now i'm really confused to why its not reading that package!)
but i dont have jsr173_1.0_api.jar - (this isn't in the axis\lib directory)
Shinelin,
yes i have tried that
yann bajard wrote:hi ben linus,
You have to specify the jars files in the -classpath option (all the jars located in Axis2-1.5.1-bin directory) and not the directory.
java -classpath D:\Axis 2Tutorial/axis2-1.5.1-bin/axis2-1.5.1/lib/axis2-adb-1.5.1.jar:D:\Axis 2Tutorial/axis2-1.5.1-bin/axis2-1.5.1/lib/axis2-adb-codegen-1.5.1.jar.... net/roseindia/Test
(i don't remember if the seperator between jar files is ':' or something else ! )
I guess, with -classpath option, if you specify a directory, the jvm is looking for .class files and not jars ???
Ravinderjit Singh wrote:Hi Flamingo,
Can you try this way?
java -Djava.ext.dirs=..\path_to_axis2_lib -cp ..build\classes net.roseindia.Test
Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
Consider Paul's rocket mass heater. |