?
Solved

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

Posted on 2007-11-26
4
Medium Priority
?
276 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 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month12 days, 5 hours left to enroll

752 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