on ‎2012 Feb 16 4:50 AM
Hello Experts,
I have started working on a project that deals with SAP JCo (SAP JAVA Connector).
I have set the classpath for sapjco.jar and fortunately my programs are compiling well and generating a .class file, but I am unable to execute the same. When I type in the following command:
c:> java <my_prog_name>
It gives me an error: "Error: Could not find or load main class <my_prog_name>"
If anyone has some tips, kindly let me know.
I'm also having NetBeans IDE for development help, if any one is very much conversant with it and knows the easy way out, then please do not hesitate to share.
Any opinion or clue is highly welcomed and appreciated.
Thanking you in advance.
-Dmukhi
Request clarification before answering.
Hi
Is you .class file under C: folder? If not then navigate to the folder where the .class file is in command prompt and then try to execute it.
Regards
Partha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Partha,
Sorry for a late response from my side.
Actually I tried doing that, as I mentioned I was able to create a .class file for which I did go to the respective path where my source is and then I tried to run the file using "java <file name>" command.
But it gave me an error, which says, "Cannot load or find main".
Please let me know if you have any other solution.
-Thanks
-Dmukhi
Edited by: Dmukhi on Feb 28, 2012 12:37 AM
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.