|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
'Classpath' question |
« View previous topic :: View next topic » |
Author |
Message
|
TonyD |
Posted: Thu Aug 29, 2002 3:21 pm Post subject: 'Classpath' question |
|
|
Knight
Joined: 15 May 2001 Posts: 540 Location: New Zealand
|
As a Java novice (I'm not a developer) I have problem setting 'classpath' correctly on NT under 5.3 now that IBM has the default install directory as 'Websphere MQ'....i.e. the space. The Classpath is fine as an environment variable, but when I use '-cp MyPkg.jar;%classpath%' in a .bat file to add a new element to the existing classpath the parsing fails at the first space that is encountered. What is the best way to handle this? Putting double quotes around the statement has no effect. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Thu Aug 29, 2002 7:59 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Hi,
Yup, I have tripped over this one. You need to use the "short" filenames.
Open a Command Prompt window and CD to the parent directory of 'Websphere MQ' and type dir /X . This command will give you both the short and normal directory names. e.g. WEBSPH~1
Just use the short names for any directory paths with a space in them.
e.g. Instead of C:\Program Files\Websphere MQ\Java\lib
use C:\PROGRA~1\WEBSPH~1\Java\lib
later
Roger... _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
TonyD |
Posted: Thu Aug 29, 2002 9:40 pm Post subject: |
|
|
Knight
Joined: 15 May 2001 Posts: 540 Location: New Zealand
|
Roger,
Thanks for that tip....did not know about 'dir/x', although I had tried experimenting with 'Web~1'; should have realised it needed to be 8 characters.
Most unhelpful of IBM....the additions to the 'classpath' environment variable that were made during the 5.3 install are riddled with '\Program Files' and '\Websphere MQ', all of which have to be changed! |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|