Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

m3the01

macrumors member
Original poster
Jun 18, 2007
70
0
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
echo $CLASSPATH
:/Users/m3the01/oracle/jdbc/lib/classes111.jar:/Users/m3the01/oracle/jdbc/lib/nls_charset11.jar

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() {
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
}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
/System/Library/Java/Extensions

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.

thanks,

Sorry for the long post
 

m3the01

macrumors member
Original poster
Jun 18, 2007
70
0
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:-(

Steven
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.