This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Doubt in class.forName() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Doubt in class.forName()" Watch "Doubt in class.forName()" New topic
Author

Doubt in class.forName()

sridhar Ranganathan
Greenhorn

Joined: Feb 06, 2008
Posts: 29

------------------------------

Thanks,
Sridhar.R
---------------
Its compiled fine..But while running iam getting following errors...Kindly help me and tell me reason...I have setted the env variables properly...


[RP]Added code tags[/RP]
[ September 30, 2008: Message edited by: Rob Prime ]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19556
    
  16

Please Use Code Tags. I've added them for you this time.

How are you invoking the JVM? Are you using JP1.b, or just b as the class name? Because it needs to be the fully qualified name, with the package: JP1.b


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Poonam Agarwal
Ranch Hand

Joined: May 12, 2008
Posts: 323
Are you using JP1.b, or just b as the class name
--------------------------------------------------------------------------------

Are you talking about JP1.a I guess becouse this code did't use JP1.b anywhere... please correct me if I am wrong.


Thanks <br />Poonam Agarwal SCWCD 86%
Poonam Agarwal
Ranch Hand

Joined: May 12, 2008
Posts: 323
Are you using JP1.b, or just b as the class name
--------------------------------------------------------------------------------

Are you talking about JP1.a I guess becouse this code did't use JP1.b anywhere... please correct me if I am wrong.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3169
    
  10
Originally posted by Poonam Agarwal:
Are you using JP1.b, or just b as the class name
--------------------------------------------------------------------------------

Are you talking about JP1.a I guess becouse this code did't use JP1.b anywhere... please correct me if I am wrong.


Your class name is b and it's in a package called JP1, therefore the full name of the class is JP1.b.


Joanne
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt in class.forName()
 
Similar Threads
class not found problem
sun.jdbc is not available
JDBC and JApplet
Is There No Such Thing as a Root Package?
jframe not accepting sql query..