Error Message: A main Java class needs to be specified to run the program.
Hi,
I am adding a program object to cms using java program, and trying to run it. I am getting an error message like
Error Message: A main Java class needs to be specified to run the program.
Could you please help me on this., please find the pasted program object pasted below
public class MoveReports {
public void run(IEnterpriseSession enterpriseSession, IInfoStore infoStore,
String[] args) throws SDKException {
int objectSize = ;
String cms = "";
String username = "";
String password = "";
String auth = "";
try {
ISessionMgr sm = CrystalEnterprise.getSessionMgr();
enterpriseSession = sm.logon(username, password, cms, auth);
IInfoStore oInfoStore=(IInfoStore)enterpriseSession.getService("", "InfoStore");
IInfoObjects iObjects = null;
iObjects = oInfoStore.query("Select * from CI_INFOOBJECTS where SI_PARENTID = 44104 AND SI_PROGID LIKE '%CrystalEnterprise.Excel%'");
// Getting total number of reports
objectSize = iObjects.size();
if(objectSize > 0)
for (int count = 0; count < objectSize; count++)
IInfoObject obj = (IInfoObject) iObjects.get(count);
// Specify the Destination parent Id to move the reports
obj.setParentID(44102);
oInfoStore.commit(iObjects);
System.out.println("Reports Moved Successfully");
else
System.out.println("Reports Not Available");
catch (SDKException e) {
e.printStackTrace();
System.out.println("Error : " + e.getMessage());
Thanks&Regards
Damodar
Edited by: Damodaram B on Nov 2, 2009 1:29 PM
There's couple of things at issue here - you've not specified the proper interface (IProgramBase or IProgramBaseEx), and the program job server can't find the class in question (a deployment issue).
You may want to open a support ticket with SAP.
Sincerely,
Ted Ueda
Similar Messages
-
I'm getting a message that my Java is not updated, but when I run the update check, I'm told all is updated. Some web materials won't open because my Java is not updated. What do I do?
Hi Ginny,
There are no more updates for Java from Apple for 10.5.8, the only way to get a Java upgrade is updating your OSX.
Snow Leopard/10.6.x Requirements...
General requirements
* Mac computer with an Intel processor
* 1GB of memory (I say 4GB at least, more if you can afford it)
* 5GB of available disk space (I say 30GB at least)
* DVD drive for installation
* Some features require a compatible Internet service provider; fees may apply.
* Some features require Apple’s MobileMe service; fees and terms apply.
Which apps work with Mac OS X 10.6?...
http://snowleopard.wikidot.com/
It looks like they do still have it:
http://store.apple.com/us/product/MC573Z/A?fnode=MTY1NDAzOA
And it's been reported that if you have a MobileMe account Apple will send one free. -
like on graiglist when I look for job and press the reply button to send my resume info to the employer, I get this error message all the time.
The add-in “C:\PROGRAM 1\AVG\AVG8\avgxch32.dll” could not be installed or loaded
This problem may be resolved by using Detect and Repair on the Help enu. Unable to load.
You may be out of memory out of a system resources, or missing a .dll file.
and the error message i get when i try to run or download an application
is is not a valid Win32 application[[Firefox is already running but is not responding]] has steps that you can try. It sounds like you may have something that is hanging your browser on exit (probably an extension or a locked profile) and the steps on that page should help clear it up.
-
Does anyone have an answer to the above error message?
Can you open Reader by itself? If so, try disabling Protected Mode [Edit | Preferences | Security (Enhanced)].
-
It seems to be in some sort of boot up command string. I have no idea where to look? Thanks for any advice. It is a long trip to the nearest apple store.
You have probably downloaded the Norton program which is one of the least desirable helpmates you can invite in.
Read this thread and follow the suggestions by Thomas R, one of our gurus in this field.
https://discussions.apple.com/message/20005609#20005609 -
I cannot get my new Windows 8 computer to connect to Itunes store! It shuts off Itunes every time, just saying the program has stopped working
Any suggestions?I had this exact same problem. I found this fix and it worked for me.
Step 1:
Browse to C:\Program Files (x86)\Common Files\Apple\Apple Application Support and copy the filen named QTMovieWin.dll.
Step 2:
Browse and past that file into C:\Program Files (x86)\iTunes.
Hope this helps you. I wish I could remember where I saw this originally so I could thank them.
Good Luck.
Anthony -
Error message Adobe InDesign has stopped working as soon as I open the application
I had a computer crash on Friday and I just reinstalled InDesign this weekend and it has worked fine. This afternoon I started to receive an error message that Adobe InDesign has stopped working and Windows will close the program and notify me if a solution is available. I've rebooted and closed every other program. I have also been downloading my lost files from Carbonite since yesterday and have paused the download. Do I need to uninstall the program and reinstall?
Use System Restore to go back before the crash.
-
I have an error message that reads: java.lang.noclassdefFounder - need to fix can anyone help?
That's a bug in whatever Java program you're running.
That's not an error specific to OS X.
(There's usually a whole lot more text dumped by Java, too.)
Check with whoever wrote or is supporting the package you're working with. -
How to find the main java class file
I need to write a Java program which MUST know one of these:
1) the full path to the main java class (the class with "main" method)
or
2) access to the main class as byte array.
If i know (1) then I have no problems reading the main class into byte array, but the main target is still (2).
Another option is if the main file is in JAR, which again leads to problems, because I cannot access the file in normal way, but I still need access to the exact byte stream.
Any help is highly appreciated! Thanks!
<<< Ivan Davidov >>>You could try somthing like this in your main-method:
InputStream is = getClass().getResourceAsStream(<"myModifiedPackageName/MyClass.class">);I don't know if this works though.
Have a look at the API doc for this method.
-Puce -
When I want to get an app, an error message comes up saying I need 3.0 software update. How do I get my ipod updated in itunes, when itunes says my ipod is already updated?
OR if I cannot update to software 3.0, how can I find apps that will work just for my ipod touch?It sounds like you have a 1G iPod Touch, in which case you can only upgrade to iOS version 3.1. Here is a link to purchase the update.
http://support.apple.com/kb/HT2052
B-rock -
# Question
Since updating to Firefox 3.6.15, I can no longer print coupons from SmartSource. The error message is that Java is not detected. The check box is longer showing in the Options/Content of this version of Firefox, so I can not enable it.Same PC as I used to post the question. When I go to the "plug in check" page, it shows I am up to date and it is not disabled.
Java(TM) Platform SE 6 U24
Next Generation Java Plug-in 1.6.0_24 for Mozilla browsers 1.6.0.24 -
I am trying to update my iPhone software but to do so I needed to update iTunes. When I try to do that, I keep getting this error message" "There is a problem with this Windows Installer Package. A program required for this install to complete could not....
Try the following user tip:
"There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows -
I have recently updated my phone and am attempting to sync it. I got the error message "iTunes could not back up the iPhone because the backup was corrupt or not compatible with the iPhone". I deleted the backup, restarted my computer, and even restored the iPhone, but continue to get the same error message. What do I need to do now?
iTunes places the iPhone backup in the following location. Navigate there & delete everything in the backup folder, but not the folder itself. You will have to turn on "Show All Hidden Files & Folders" to see it:
Mac:~/Library/Application Support/MobileSync/Backup/
Windows XP:\Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
Windows Vista and Windows 7:\Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\ -
I own an iMac 2011. I am unable to reinstall and launch premiere pro cc. We I attempt to run the program I get a error message saying that the adobe application manager is missing or need to be updated. I reinstalled the manager but I am still unable to launch any of my programs from adobe. I tried to do a trail with a program and I am still getting the same message.
Davinci thank you for the update.
Please utilize any available uninstallers that are located in the Applications/Utilities/Adobe Installers folder. Once all of the available uninstallers have been run you will then want to rerun the CC Cleaner Tool. You can find directions on the use of the CC Cleaner Tool and a download link at Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6 - http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html. After the CC Cleaner Tool is run then please reinstall the Creative Cloud Desktop application from Creative Cloud Help | Creative Cloud for desktop.
The CC Cleaner Tool is designed to be used after running the uninstallers. Without running the uninstallers first then a complete removal may not be possible. -
I have been trying to reinstall iTunes but I have been getting error messages. One says I need a fileMSVCR80.dll, one says error 7 and the last one says windows error126.
This problem started yesterday when I tried to download the newest iTune update.
The error message suggested trying the download again and i have tried over ten times and i get the same messages and error numbers.iTunes 11.1.4 for Windows- Unable to install or open - MSVCR80 issue
Solving MSVCR80 issue and Windows iTunes install issues.
Thanks to user turingtest2 for this solution.
Solving MSVCR80 issue and Windows iTunes install issues.
If the above doesn’t do the trick entirely, then use the instructions in the following as it applies to the version of Windows you are using:
HT1925: Removing and Reinstalling iTunes for Windows XP
HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
You may be required to boot into safe mode to complete the folder deletion process.
Maybe you are looking for
-
I am creating the sales document using the FM SD_SALESDOCUMENT_CREATE But if we pass net value 120 it creates as 1200. it is same for tax values also if tax is 10 it takes as 100. How can we solve this problem?
-
Account 3100005001 requires an assignment to a CO object
Account 3100005001 requires an assignment to a CO object Message no. KI235 Diagnosis You have not defined a CO account assignment for an account that is relevant to cost accounting. System Response Account 3100005001 is defined as a cost element. Thi
-
Where is ichat in mountain lion?
where is ichat in mountain lion?
-
Hi, I have some experience with Java, though not with any direct hardware communication. Can anyone help me make a simple program which will allow me to control a couple (or more) of LEDs? Any advice much appreciated. (I get the impression so far tha
-
New iPhone upgrade and messed up backups
I upgraded four iPhones recently, and I backed up all of the phones to my computer, then did a restore from previous backup. All went well until today, when I wanted to back up my iPhone, when I noticed that it was backing up every new phone that I b