Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-26-2012, 03:37 PM   PM User | #1
nemonizer
New to the CF scene

 
Join Date: Nov 2011
Location: Dil me
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
nemonizer is an unknown quantity at this point
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
Code:
 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


Thanks
nemonizer is offline   Reply With Quote
Old 11-26-2012, 06:28 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,752
Thanks: 4
Thanked 2,468 Times in 2,437 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
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.
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:05 PM.


Advertisement
Log in to turn off these ads.