Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » classpath - environment variable
classpath - environment variable [message #298025] Tue, 24 January 2006 04:29 Go to next message
Eclipse UserFriend
Originally posted by: pijnmar.home.nl

For a project I'm working on I need to include the JDBC thin driver from
Oracle. This ojdbc14.jar file is different for each version. Now I want to
include it in my classpath by using the %ORACLE_HOME% environment var. How
can I do that?

This is what I try to add to the classpath:

%ORACLE_HOME%\jdbc\lib\ojdbc14.jar


At first I added the jar to my project but this makes my application
version dependend. Someone has experience with this? Any help on making
this version independend is really appreciated!!!
Re: classpath - environment variable [message #298234 is a reply to message #298025] Thu, 26 January 2006 17:14 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse3.rizzoweb.com

mp wrote:
> For a project I'm working on I need to include the JDBC thin driver from
> Oracle. This ojdbc14.jar file is different for each version. Now I want
> to include it in my classpath by using the %ORACLE_HOME% environment
> var. How can I do that?
>
> This is what I try to add to the classpath:
>
> %ORACLE_HOME%\jdbc\lib\ojdbc14.jar
>
>
> At first I added the jar to my project but this makes my application
> version dependend. Someone has experience with this? Any help on making
> this version independend is really appreciated!!!
>

You should define a Classpath Variable for it under Preferences | Java |
Build Path | Classpath Variables

Then in your Project's build path settings, you can include that
variable. This will include it on the build path.
The runtime classpath should automatically use the build path by
default, but you can always edit the Launch Configuration for your
application and manually change the runtime classpath to include the
variable, too.

HTH,
Eric
Previous Topic:IFile.createMarker does not working after converting to RCP.
Next Topic:question regarding the TreeViewer selection
Goto Forum:
  


Current Time: Wed Sep 24 17:15:34 EDT 2025

Powered by FUDForum. Page generated in 0.04149 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top