Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2011
    Dil me
    Thanked 0 Times in 0 Posts

    Post Help...!! Configuration setting of Oracle and java

    Hi to everyone
    I need your help friends actually i have install java(jdk1.6) version and oracle11g on my system and when i run my java program through the command prompt then it has to be show that message
     Could not find or load main class A 
    and where compilation is successfully work and oracle11g is also working normally so i think there is need correct path setting so if any anyone knows that then please reply me


  2. #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Saskatoon, Saskatchewan
    Thanked 2,668 Times in 2,637 Posts
    This is the wrong forum, moving to java.
    There's not enough information in this error. It should provide you with a stack trace and an error line, otherwise you need to expand your catch output to show more information.
    If I had to guess, you are loading a driver via a Class.forName or implicitly letting connection attempt to do so. This would indicate that you do not have the package for the driver available in the classpath during runtime which is why it still compiles properly. This can be configured in your IDE and included in a part of the manifest (if using a jar), or you can add it during the call with -classpath path/to/package to the java command.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts