Solved

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

Posted on 2007-11-26
4
273 Views
Last Modified: 2013-11-23
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
Comment
Question by:Margin_Walker
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 26

Expert Comment

by:ksivananth
ID: 20350243
how do you run it?

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

0
 
LVL 20

Expert Comment

by:gatorvip
ID: 20350935
You did save the class file under that specific path (com/hsbc/ .. ), right?
0
 

Author Comment

by:Margin_Walker
ID: 20356361
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
 
LVL 26

Accepted Solution

by:
ksivananth earned 50 total points
ID: 20356368
>>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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question