473,591 Members | 2,842 Online
Bytes | Software Development & Data Engineering Community
+ 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:\WI NDOWS;C:\WINDOW S\System32\Wbem ;C:\Program
Files\j2sdk\j2s dk1.4.2\bin;C:\ jwsdp-1.2\jwsdp-shared\bin;=C:\ jwsdp-1.2\webapps\axi s\lib\axis.jar; C:\jwsdp-1.2\webapps\axi s\lib\wsdl4j.ja r;C:\jwsdp-1.2\webapps\axi s\lib\commons-discovery.jar;C :\jwsdp-1.2\webapps\axi s\lib\commons-logging.jar;C:\ jwsdp-1.2\webapps\axi s\lib\jaxrpc.ja r;C:\jwsdp-1.2\webapps\axi s\lib\saaj.jar; C:\jwsdp-1.2\webapps\axi s\lib\log4j-1.2.8.jar;C:\jw sdp-1.2\webapps\axi s\lib\xml-
pis.jar;C:\jwsd p-1.2\webapps\axi s\lib\xercesImp l.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:\jw sdp-1.2\webapps\axi s
set AXIS_LIB=%AXIS_ HOME%\lib
set AXISCLASSPATH=% AXIS_LIB%\axis. jar;%AXIS_LIB%\ wsdl4j.jar;%AXI S_LIB%\commons-discovery.jar;% AXIS_LIB%\commo ns-logging.jar;%AX IS_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 .;%AXISCLASSPAT H% 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 3197
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************* *************@p osting.google.c om, 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:\WI NDOWS;C:\WINDOW S\System32\Wbem ;C:\Program
Files\j2sdk\j2s dk1.4.2\bin;C:\ jwsdp-1.2\jwsdp-shared\bin;=C:\ jwsdp-1.2\webapps
\axis\lib\axis. jar;C:\jwsdp-1.2\webapps\axi s\lib\wsdl4j.ja r;C:\jwsdp-1.2\webap
ps\axis\lib\com mons-discovery.jar;C :\jwsdp-1.2\webapps\axi s\lib\commons-loggin
g.jar;C:\jwsdp-1.2\webapps\axi s\lib\jaxrpc.ja r;C:\jwsdp-1.2\webapps\axi s\lib\s
aaj.jar;C:\jwsd p-1.2\webapps\axi s\lib\log4j-1.2.8.jar;C:\jw sdp-1.2\webapps\axi
s\lib\xml-
pis.jar;C:\jwsd p-1.2\webapps\axi s\lib\xercesImp l.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:\jw sdp-1.2\webapps\axi s
set AXIS_LIB=%AXIS_ HOME%\lib
set
AXISCLASSPATH=% AXIS_LIB%\axis. jar;%AXIS_LIB%\ wsdl4j.jar;%AXI S_LIB%\commons-dis
covery.jar;%AXI S_LIB%\commons-logging.jar;%AX IS_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 .;%AXISCLASSPAT H% 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
4163
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 CLASSPATH variable to whatever the current directory is, but I forgot the exact characters to denote this. Or that there was an extra call to the java interpreter (like -cp or -classpath) to indicate the current directory, but that escapes me as...
2
4119
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 that the value of one's PATH list is the concatenation of those two ENV specifications. So, the $64 question is: Is there some way to coerce the resulting CLASSPATH list to also be a concatenation of both the SYSTEM and the USER's lists?
4
6552
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 package but still always not working! thank's. -- AbdelHalim MIMOUNI
2
4536
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 Book location: class com.wrox.library.TechnicalBook public class TechnicalBook extends Book { ^ 1 error
1
10237
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 a simple service for testing purposes (1 string IN, 1 string OUT) and I've found where the exception occures but not why. But I've exhausted my own attempts. I've researched the web for Axis issues and here is a brief description of the...
7
17876
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-? _________________________________ 1. I have a class called "Car" that defines a package with the statement: package com.example.rentalcar;
9
25863
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. Kevin
0
3554
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 XY=./abc/cde:./bgh/nkl # check if path defined in $jXY exists IFS=: for i in $XY do if
1
3291
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 etc: "CLASSPATH=C:\Users\Ganon11\Documents\Programming in Java;..." I can now use the java and javac commands when my files are located in this folder. However, for organization, I wanted to put my files in separate folders based on the...
0
7934
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8236
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
7992
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
5732
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5400
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3850
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3891
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1465
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1199
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.