File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Windows 98 Oracle classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Windows 98 Oracle classpath" Watch "Windows 98 Oracle classpath" New topic

Windows 98 Oracle classpath

Patrick Muls

Joined: Aug 08, 2001
Posts: 25
I developped a little application to access an Oracle DB on a W2K machine. To run it I made the following command:
set JDK=C:\jdk1.3.1
set PROJ=C:\Distro
set ORACLE=%PROJ%\be\datassur\dbaccess\
set path=.;%JDK%\bin;
set classpath=%PROJ%;%ORACLE%;%JDK%\jre\lib\rt.jar;
title=DiscRegLetter: Run Environment
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 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

Joined: Jun 26, 2001
Posts: 149
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

Joined: Aug 08, 2001
Posts: 25
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

Joined: Dec 10, 2001
Posts: 7023
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

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

Try to change set with SET when you define ORACLE, PATH etc.

Regards, Rene Larsen
Dropbox Invite
I agree. Here's the link:
subject: Windows 98 Oracle classpath
It's not a secret anymore!