Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
11-26-2012, 03:37 PM #1
- Join Date
- Nov 2011
- Dil me
- Thanked 0 Times in 0 Posts
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 messageCode:
Could not find or load main class A
11-26-2012, 06:28 PM #2
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,659 Times in 2,628 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/packageto the java command.