Could not find job class com.hsbc.cds.....

Experts,

I have written a class called MarkITUpload and it is in a package called com.hsbc.cds.cdstomarkit.markit.filegen  but when i try to execute it I get this error:   Could not find job class com.hsbc.cds.cdstomarkit.markit.filegen.MarkITUpload

I assume it may be a classpath issue but I have pointed my classpath to where the class file lives and i still get the same...

Help!

Thanks,
Margin_Walker
Margin_WalkerAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
ksivananthConnect With a Mentor Commented:
>>java -cp <> com.hsbc.cds.cdstomarkit.markit.filegen.MarkITUpload

you have to replace <> with the classpath value, for e.g., if the current folder is your classpath,

java -classpath . com.hsbc.cds.cdstomarkit.markit.filegen.MarkITUpload
0
 
ksivananthCommented:
how do you run it?

if in command prompt, you have to run java -cp <> com.hsbc.cds.cdstomarkit.markit.filegen.MarkITUpload

0
 
gatorvipCommented:
You did save the class file under that specific path (com/hsbc/ .. ), right?
0
 
Margin_WalkerAuthor Commented:
ksivananth, I've tried that but i get the following error
> was unexpected at this time.

gatorvip
Yes it is saved under the specific path (com/hsbc/..)
0
All Courses

From novice to tech pro — start learning today.