[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 285
  • Last Modified:

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
0
Margin_Walker
Asked:
Margin_Walker
  • 2
1 Solution
 
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
 
ksivananthCommented:
>>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

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now