Solved

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

Posted on 2007-11-26
4
265 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
  • 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

809 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