• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Windows 98 Oracle classpath

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I developped a little application to access an Oracle DB on a W2K machine. To run it I made the following command:
@ECHO OFF
cls
set JDK=C:\jdk1.3.1
set PROJ=C:\Distro
set ORACLE=%PROJ%\be\datassur\dbaccess\classes12.zip
set path=.;%JDK%\bin;
set classpath=%PROJ%;%ORACLE%;%JDK%\jre\lib\rt.jar;
title=DiscRegLetter: Run Environment
@ECHO ON
java be.datassur.discregletter.DiscRegLetter
Running this on my machine, everything works fine. But when I installed it on a W98-box, I get an exception saying that the OracleDriver cannot be found. Yet I put the classes12.zip file in the classpath. Does this problem have anything to do with the names of the directories and files exceeding the 8.3 format, or is there another reason?
Thanks for your help,
Patrick Muls
 
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think it is a problem with your directory names. I have seen on Windows machines problems with resolving 'nested' variables such as what you have for ORACLE (ORACLE=%PROJ%)
 
Patrick Muls
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The deeper reason is that W98 is not very good at handling dynamically assigned environment variables , and due to the small command window size, which I don't know how to change like I can in W2K, I didn't see the warning message. I put the (class)path in the autoexec.bat, and now it works.
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may be able to redirect the messages that flow at the dos prompt by using the '>' operator:
programCommand -andParameters > log.txt
or to redirect the Java System.err PrintStream:
java WhateverClass 2> log.txt
 
Ranch Hand
Posts: 1179
Mac OS X Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Try to change set with SET when you define ORACLE, PATH etc.
/Rene
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!