I am pretty new in Ant and I have the following problem creating the build.xml file that handle the creation of a .jar file of the following si
Basically what you're asking is how do I package one jar file into another, you should not do this (for many reasons, one being it is against almost all licenses).
When you run you compile AND when you run, you need the jdbc jar on your classpath:
Run with:
java -cp ./lib/ojdbc6.jar -jar Main.jar
or something like
java -cp Main.jar:./lib/ojdbc6.jar Main
Your run
target in your build.xml also needs to reference the classpath.