Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread Display Modes
Old Jun 26, 2007, 03:35 PM   #1
macrumors member
Join Date: Jun 2007
JDBC $CLASSPATH xcode and javac please help!

Hey thanks for the read and hopefully the help, lol

Anyway ive downloaded the files nls_charset11.jar/zip and classes111.jar/zip from oracle and followed the direction to the best of my knowledge.

Here is my echoed class path

Ive also tried a .zip variation of the above command as i have it working in my linux box.

Here is the method making the call and causing the error,
*Check to see if Oracle Drivers are currently available
*If it is available it wont exit the application
private void oracleDriverCheck() {
}catch(ClassNotFoundException e){
JOptionPane.showMessageDialog(null, "DatabaseConnectionManager:OracleDriverCheck:\nError: " + e.getMessage(),
"Error", JOptionPane.ERROR_MESSAGE);

Obviously the error is coming up,

How to add these files to my xcode project?

Also how to set the classpath up correctly under osx?

I resorted to the unintuitive lazy man's approach after 2 hours of trying to get this to work of just shoving the two .jar files in the

This makes both xcode and javac work perfectly, however i understand this is not the correct method to do this and would like to correctly add the jar files to xcode java applet project and setting the classpath correctly so when i use javac -classpath $CLASSPATH *.java

works correctly.


Sorry for the long post
m3the01 is offline   0 Reply With Quote
Old Jun 26, 2007, 03:44 PM   #2
Thread Starter
macrumors member
Join Date: Jun 2007
PS it works perfectly under javac now,

javac *.java
java -classpath $CLASSPATH mainapp

Had the classpath under the wrong command,

However still cant get it to go under xcode, i attempted to add the paths in xcode through 'project->edit active target appname->searchpaths'

But no luck:-(

m3the01 is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Moving from xcode 3.2 to xcode 4.5.2 compilation error for 'abs' macro in stdlib.h hrishidev Mac Programming 7 Jun 2, 2013 10:36 AM
Resolved: Javac Problem Th3Rabbit Mac Programming 9 Mar 7, 2013 05:30 PM
How to choose java/javac 1.6 ilantal OS X 10.8 Mountain Lion 0 Jan 1, 2013 01:32 AM
Xcode 3 vs Xcode 4 when dealing with Objective-C timebourne Mac Programming 8 Sep 23, 2012 05:36 PM
XCode 4.4.1 to Xcode 4.5 in Mountain Lion VinegarTasters OS X 10.8 Mountain Lion 2 Sep 19, 2012 08:55 PM

Forum Jump

All times are GMT -5. The time now is 03:10 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2015, MacRumors.com, LLC