Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in class.forName()

 
sridhar Ranganathan
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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

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
Pie
Posts: 20527
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Poonam Agarwal
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Poonam Agarwal
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic