Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Windows 98 Oracle classpath

 
Patrick Muls
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
 
timothy zimmerman
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.
 
Dirk Schreckmann
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
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • 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