473,473 Members | 1,844 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Classpath Probems with Java on Win95

Here's my problem. I've certain jar files I've included in my
classpath that I need to work with. I've included these in my path
variable so when I type path at the command line I get :

PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sys tem32\Wbem;C:\Program
Files\j2sdk\j2sdk1.4.2\bin;C:\jwsdp-1.2\jwsdp-shared\bin;=C:\jwsdp-1.2\webapps\axis\lib\axis.jar;C:\jwsdp-1.2\webapps\axis\lib\wsdl4j.jar;C:\jwsdp-1.2\webapps\axis\lib\commons-discovery.jar;C:\jwsdp-1.2\webapps\axis\lib\commons-logging.jar;C:\jwsdp-1.2\webapps\axis\lib\jaxrpc.jar;C:\jwsdp-1.2\webapps\axis\lib\saaj.jar;C:\jwsdp-1.2\webapps\axis\lib\log4j-1.2.8.jar;C:\jwsdp-1.2\webapps\axis\lib\xml-
pis.jar;C:\jwsdp-1.2\webapps\axis\lib\xercesImpl.jar;

However when I run a command like:

java org.apache.axis.wsdl.WSDL2Java

I get a class not found error. So I run a batch file with this in it:

set AXIS_HOME=C:\jwsdp-1.2\webapps\axis
set AXIS_LIB=%AXIS_HOME%\lib
set AXISCLASSPATH=%AXIS_LIB%\axis.jar;%AXIS_LIB%\wsdl4 j.jar;%AXIS_LIB%\commons-discovery.jar;%AXIS_LIB%\commons-logging.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj. jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar;

And then when I run java I have to include the -cp option, such as:

java -cp .;%AXISCLASSPATH% org.apache.axis.wsdl.WSDL2Java

And everything works fine. However I'm getting tired of typing out
the classpath option everytime and I was wondering if anyone had any
insight on what the problem might be.

Thanks,
steve
Jul 17 '05 #1
1 3187
Me
Your path is for searching for executables, not java classes. Set a
Classpath variable for your jar files.

Good luck
Rich

in article 8a**************************@posting.google.com, Steven Mason at
di**************@yahoo.com wrote on 10/12/03 4:15 PM:
Here's my problem. I've certain jar files I've included in my
classpath that I need to work with. I've included these in my path
variable so when I type path at the command line I get :

PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sys tem32\Wbem;C:\Program
Files\j2sdk\j2sdk1.4.2\bin;C:\jwsdp-1.2\jwsdp-shared\bin;=C:\jwsdp-1.2\webapps
\axis\lib\axis.jar;C:\jwsdp-1.2\webapps\axis\lib\wsdl4j.jar;C:\jwsdp-1.2\webap
ps\axis\lib\commons-discovery.jar;C:\jwsdp-1.2\webapps\axis\lib\commons-loggin
g.jar;C:\jwsdp-1.2\webapps\axis\lib\jaxrpc.jar;C:\jwsdp-1.2\webapps\axis\lib\s
aaj.jar;C:\jwsdp-1.2\webapps\axis\lib\log4j-1.2.8.jar;C:\jwsdp-1.2\webapps\axi
s\lib\xml-
pis.jar;C:\jwsdp-1.2\webapps\axis\lib\xercesImpl.jar;

However when I run a command like:

java org.apache.axis.wsdl.WSDL2Java

I get a class not found error. So I run a batch file with this in it:

set AXIS_HOME=C:\jwsdp-1.2\webapps\axis
set AXIS_LIB=%AXIS_HOME%\lib
set
AXISCLASSPATH=%AXIS_LIB%\axis.jar;%AXIS_LIB%\wsdl4 j.jar;%AXIS_LIB%\commons-dis
covery.jar;%AXIS_LIB%\commons-logging.jar;%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saa
j.jar;%AXIS_LIB%\log4j-1.2.8.jar;%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl
.jar;

And then when I run java I have to include the -cp option, such as:

java -cp .;%AXISCLASSPATH% org.apache.axis.wsdl.WSDL2Java

And everything works fine. However I'm getting tired of typing out
the classpath option everytime and I was wondering if anyone had any
insight on what the problem might be.

Thanks,
steve


Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Herman | last post by:
Hi everyone, I recently installed the Sun J2SE SDK on my machine, and I am having trouble running the java.exe interpreter for my Java compiled code. I remember that I had to set my environment...
2
by: David Cook | last post by:
Windows (XP and NT) allows one to specify environmental variable (such as PATH and CLASSPATH) at both the SYSTEM-wide level as well as at the per-USER level. And the behavior has always been...
4
by: Abdelhalim MIMOUNI | last post by:
hi, i'm new to java, and using sun last JDK, and i'm trying to understand how work this feature when we want to compile at command line ? i'm trying to set the classpath to the directory of the...
2
by: Paul | last post by:
hi , i have started with "beginning JSP web development" and got stuck on extending classes. I'm getting the following error message: TechnicalBook.java:3: cannot resolve symbol symbol : class...
1
by: Dave Keays | last post by:
I am setting-up an experimental web service using Apache Axis but I'm having problems. AXIS can't find a library that I've verified exists on my computer and that CLASSPATH points to it. I'm using...
7
by: dlarsson | last post by:
Okay folks, I thought I was doing something very, very simple, but I cannot seem to get this to work at all. Can anyone identify what I am doing wrong here-? _________________________________ ...
9
by: KevinRobinson | last post by:
Hi, Can anyone please tell me how to add or change a Java classpath in SUSE Linux 9.3. I have set up a Tomcat server but my Java Classes will not run although they do on a windows box. ...
0
by: MIRRA | last post by:
Hi I have a UNIX script which creates a report. In that script I have to define the java classpath. Also I need to check if the java classpath specified exists or not. Below is the command i use ...
1
Ganon11
by: Ganon11 | last post by:
Hey all, I'm setting up my computer to run Java for a class I'm taking, and I've gotten into a bit of a snag. I've set the CLASSPATH system variable to include the base folder of my homeworks...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.