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
Joined: Jun 26, 2001
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%)
Joined: Aug 08, 2001
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.
Joined: Dec 10, 2001
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