Error when I launch my program

Following the advices of a friend, I have made a jar file like that :
I have compressed with winzip a folder containing all the .class files of my java project
I have renamed the .zip file in .jar
Now I try to launch my java program in a DOS window, going in the folder containig the .jar file, and launching :
java "name of my main class"
I have a message :
Exception in thread "main" java.lang.NoClassDefFoundError : nameofmyclass
What's wrong ?
Have I made something wrong ?
How can I launch my program on another PC ?
Thanks

You might have run into one of the following problems:
- JAVA is case sensitive, have a look in the jar file (using WinZip) about the correct name of the class
- Your jar file contains directories. you should not put your main class file in a directory inside the jar file unless you are using packages
- You are using packages- try to call the class name with the right package name ( java package.classname)
- You have not specified a manifest file attribute "main-class" inside the jar file while calling the program with the -jar option.
- You have forgotton to put the jar file in the class path. Call your application with
java -cp <jarfile name> <name of your class>
I hope on of those helps.
OIiver

Similar Messages

  • Adobe Updater requires password when I launch any program from the suite

    It is very annoying, but not a destructive issue.
    When I launch any program from Creative Suite 3 Design Premium (6 programs) the Adobe Updater pops out and asks for a password. I can either provide a password and proceed, or deny the password and still proceed with the program.
    Is there any way to stop the Updater from popping up?
    I have it on my two machines Mac Pro (2x 2.66 GHz, 11GB RAM) and Mac Book Pro (2.33 GHz, 3GB RAM).
    I am sure that there is some settings which I simply overlooked. Can anyone point it to me?
    I would appreciate that. Thanks.
    Jack

    Unfortunately when Adobe products are restored from backup, especial CS4 and especially Mac, it breaks licensing.
    There is a python script included in the license recovery kit that should work if you are familiar with Terminal.
    If not, you must reinstall your CS4 suite.  You don't need to delete your preferences, so it should be the same as before.
    Error "Licensing has stopped working" | Mac OS
    Gene

  • Error when generating the update program RSAU484

    Hi,
    I am getting the following error while loading data into customer master  from CRM system
    Error when generating the update program
    Message no. RSAU484
    Diagnosis
    An error occurred during program generation for InfoSource MR_CDB_CUST_HFR and InfoProvider 0BPARTNER$T. This may be extrapolated to incorrect update rules.
    Procedure
    Check and correct your update rules and then generate the update program again. You can find help on the error in the error log.

    Yes,there is just a single line of code in the start routine
    DELETE DATA_PACKAGE WHERE CUSTOMER is initial.
    and update rules  for Business partner and customer market which are object mapped 1:1. No routines or formulaes.
    Could this be a technical issue on the flexible update or a data quality ?

  • Error when generating the update program

    Hi BW Experts,
    I am facing issue while loading data to cubes:
    0TCT_C01 & 0TCT_C02
    In load monitor (RSMO) -> details> some data pakages are going thru successfully while some are failing with error:
    Error when generating the update program
    Thanks

    Hello,
    Try activating both the cubes using RSDG_CUBE_ACTIVATE. Activate them even thou they seem active.
    Also you can refer to OSS Notes:
    Note 1146851 - BI 7.0 (SP 18): Error RSAU 484 when generating update
    Note 1152453 - Termination generating InfoCube write program
    Regards,
    Shashank

  • BW Statistics-BI7-Error when generating the update program

    Dear All,
    We faced the below problem in while executing the infopackages for BW statistics in BI7.0
    7099 records from 7099 records..but shows request is red.
    Error message during processing in BI
    Diagnosis
    An error occurred in BI while processing the data. The error is documented in an error message.
    System Response
    A caller 01, 02 or equal to or greater than 20 contains an error meesage.
    Further analysis:
    The error message(s) was (were) sent by:
    Update rules
    Procedure
    Check the error message (pushbutton below the text).
    Select the message in the message dialog box, and look at the long text for further information.
    Follow the instructions in the message.
    Update rules ( 7089  -> 0 Records ) : Errors occurred (RED)
    Update rules ( 7089  -> 0 Records ) : Errors occurred
    InfoCube 0TCT_C23 will be updated
    Error when generating the update program (RED)
    Is there any notes to apply for this?
    Initilaztion is executed with out any errors!!
    Regards

    Hi
    Caller 01 : If there is any inconsistecy while loading the data or if the program cannot able to execute a specific task it will give the caller errors.
    check in the transaction ST22
    check for the OSS notes 631668, 860475
    Check the below links which have a discussion on the same problem.
    A caller 01, 02 or equal to or greater than 20 contains an error meesage
    A caller 01, 02 or equal to or greater than 20 contains an error meesage.
    ERROR?
    Data load System error
    Hope this will help
    Regards
    Shilpa

  • Itunes 9.2.1.5 "Error when writing file C:\program files\apple software....

    Got an error message when installing itues 9.2.1.5 "Error when writing file C:\program files\apple software update\softwareupdate.exe you do not have admin right to read/write the menu." "寫入檔案時發生錯誤 C:\program files\apple software update\softwareupdate.exe 你沒有權限存取目錄"
    There is no "apple software update" folder in my C:\program files\
    I tried to uninstalled all apple related software, restart the computer and reinstall the itunes, I still get this error message.
    It appears that the installation of quicktime was successful.

    After the last update I get "QuickTime was not found" Error I have uninstalled and re-installed itunes 9.2.1.5. several times but the problem persists

  • Error when generating the update program::::ID RSAU No. 484****

    Helllo,
    While Infopackage loading for DS 2LIS_04_P_COMP following error is coming.. please see if anyone may face such kind of error.
    ***Error when generating the update program::::ID RSAU No. 484***
    Diagnosis
         An error occurred during program generation for InfoSource
         2LIS_04_P_COMP and InfoProvider ZISPP_C01 . This may be extrapolated to
         incorrect update rules.
    Procedure
         Check and correct your update rules and then generate the update program
         again. You can find help on the error in the error log.
    amit shetye

    hi,
    Do a check on the update rules and see if it returns no errors...
    if that is the case, then check the short dump and try to get the program name for the update rules..In se38 putting the program name, you can go inside it and do a check there as well if there are any errors....
    If in the end yo still dont find anything, try to delete and re-create the update rules..
    But i think you will get quite useful info from the dumps if there are any..
    hope this helps you..
    regrds,
    Jadeep

  • When I open (launch) ps6, two old images always open.  always the same 2 images, and always when I launch the program. what is going on?

    when I open (launch) ps6, two old images always open.  always the same 2 images, and always when I launch the program. what is going on?

    Check your userid autorecovery folder after you close Photoshop. If there are psb files in it delete them

  • I purchased elements 12 last year. When I launch the program it tells me my trial subscription ended. I had purchased the product and put the serial number in? Thoughts

    I purchased elements 12 last year. When I launch the program it tells me my trial subscription ended. I had purchased the product and put the serial number in? Thoughts

    Moving the discussion to Photoshop Elements.
    Thanks,
    Atul Saini

  • I recently updated my iTunes to version 10.3.1.55 and when i launch the program it says 'iTunes has stopped working' then another window pop up saying me to close program.HELP!!! ME PLEASE!!

    ok i installed new iTunes version 10.3.1.55 and when i launch itunes it says 'iTunes has stopped working' i get to my problem history this is whay i found
    Problem signature
    Problem Event Name:          APPCRASH
    Application Name:          iTunes.exe
    Application Version:          10.3.1.55
    Application Timestamp:          4deec351
    Fault Module Name:          MediaToolbox.dll
    Fault Module Version:          1.0.694.7
    Fault Module Timestamp:          4ddeb575
    Exception Code:          c0000005
    Exception Offset:          00250000
    OS Version:          6.0.6002.2.2.0.768.3
    Locale ID:          1033
    Additional Information 1:          fd00
    Additional Information 2:          ea6f5fe8924aaa756324d57f87834160
    Additional Information 3:          fd00
    Additional Information 4:          ea6f5fe8924aaa756324d57f87834160
    PLEASE HELP ME!!!!

    Fault Module Name:          MediaToolbox.dll
    Fault Module Version:          1.0.694.7
    Taken at face value, you're having trouble with an Apple Application Support program file there. (Apple Application Support is where single copies of program files used by multiple different Apple programs are kept.)
    Let's try something relatively simple first. Restart the PC. Now head into your Uninstall a program control panel, select "Apple Application Support" and then click "Repair".
    If no joy after that, try the more rigorous uninstall/reinstall procedure from the following post:
    Re: I recently updated to vista service pack 2 and I updated to itunes 10.2.1 and ever since I did that my itunes won't open any more.  Itunes starts but before anything loads a window pops up saying that the prograam has encountered a problem and sh...

  • Keep getting this error when I run a program   UC_OBJECTS_NOT_CONVERTIBLE

    I created a project via CMOD for a modification to a BW extractor.  It is pretty simple coding but when I try and execute the extractor via RSA3 I get the following error.  I've attached the code as well and it is something with line 17.  can you please help
    Short text
        Data objects in Unicode programs cannot be converted.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "SAPLXRSA" had to be terminated because
        come across a statement that unfortunately cannot be executed.
    Error analysis
        The statement
           "MOVE src TO dst"
        requires that the operands "dst" and "src" are convertible.
        Since this statement is in a Unicode program, the special conver
        rules for Unicode programs apply.
        In this case, these rules were violated.
    Trigger Location of Runtime Error
        Program                                 SAPLXRSA
        Include                                 ZXRSAU01
        Row                                     17
        Module type                             (FUNCTION)
        Module Name                             EXIT_SAPLRSAP_001
    Source Code Extract
    Line  SourceCde
        1 *&----
        2 *&  Include           ZXRSAU01
        3 *&----
        4
        5 TABLES: VTTK.
        6 DATA: L_MCCOMVTTS LIKE MCCOMVTTS,
        7       L_TABIX LIKE SY-TABIX.
        8
        9
       10
       11 CASE I_DATASOURCE.
       12
       13  WHEN '2LIS_08TRTLP'.
       14
       15 *FIND TDLNR & VSART IN THE SHIPMENT HEADER TABLE
       16
    >>>>>  LOOP AT C_T_DATA INTO L_MCCOMVTTS.
       18   L_TABIX = SY-tabix.
       19   SELECT SINGLE * FROM VTTK WHERE TKNUM = L_MCCOMVTTS-TKNUM.
       20
       21 *FILL FIELDS WITH DATA FROM VTTK(SHIPMENT HEADER TABLE)
       22   IF SY-SUBRC = 0.
       23    L_MCCOMVTTS-Z_TDLNR = VTTK-TDLNR.
       24    L_MCCOMVTTS-Z_VSART = VTTK-VSART.
       25    MODIFY C_T_DATA FROM L_MCCOMVTTS INDEX L_TABIX.
       26   ENDIF.
       27  ENDLOOP.
       28 ENDCASE.

    ra you sure the
    table C_T_DATA and the work area L_MCCOMVTTS have the smae fileds with same data element .
    i think somewhere ther is adifference that why systerm is umable to populate the table data in to work area..
    <b>i have observed that C_T_DATA is not defined any format..
    Make sure u have the same structure for the work area as well</b>
    Please Close this thread.. when u r problem ise solved
    Reward if Helpful
    Regards
    Naresh Reddy K
    Message was edited by:
            Naresh Reddy

  • Error when running workflow inititiation program

    Hi,
    I get the following error when I try to run my java application which initiates
    a BPM workflow.
    <Nov 28, 2001 3:21:32 PM PST> <Error> <B2B> <<WLC-WLPI-Plugin> ERROR: WLC-WLPI
    p
    lugin must be initialized before creating workflow instances>
    Exception occured: com.bea.b2b.wlpi.WLPIException: ERROR: WLC-WLPI plugin must
    be initialized before creating workflow instances
    I could not find any documentation on how to perform this step. Can anyone please
    help. I have also attached this program.
    --Krish.
    [PIP3A2_Customer_RN2.java]

    Yes the B2B server is started and running. I see these two final messages which
    I believe is the indication that the server is up and running.
    Initialized WebLogic Integration Plugin Framework version 2.1
    Started WebLogic Integration - BPM Server version 2.1
    --Krish.
    "Adrian Price" <[email protected]> wrote:
    Are you sure the server has finished starting up? You should see a console
    message about WebLogic Integration 2.1 started when it is ready to service
    client requests.
    "Krish Khambadkone" <[email protected]> wrote in message
    news:3c057360$[email protected]..
    Hi,
    I get the following error when I try to run my java application whichinitiates
    a BPM workflow.
    <Nov 28, 2001 3:21:32 PM PST> <Error> <B2B> <<WLC-WLPI-Plugin> ERROR:WLC-WLPI
    p
    lugin must be initialized before creating workflow instances>
    Exception occured: com.bea.b2b.wlpi.WLPIException: ERROR: WLC-WLPIplugin
    must
    be initialized before creating workflow instances
    I could not find any documentation on how to perform this step. Cananyone
    please
    help. I have also attached this program.
    --Krish.

  • Error when running the LabVIEW program

    hello...........
    I'm newbie in LabVIEW....I have a problem when i'm running the LabVIEW program...i want to analyse data using the LabVIEW through the real experiment....
    My problem is, there is an Error when i try to start the program...This Error forced me to restart the program several times until it can run.......By the way, i'm using Picoscopes 3206 to connect the LabVIEW program in PC with the real experiment.....
    Here, I'm attached the picture that I snap when the Error occur....
    Attachments:
    error.JPG ‏222 KB

    You have to try to isolate the problem...
    Use 'Diagram disable' or 'Case' structure to run special part of code or try write a specific code to access and manage your equipment.
    Several questions could help: 
    - Are you up to date with your hardware driver?
    - Do you call external ressources (ex: dll)? perhaps with instability
    - Do you properly close connection with your equipment after using? 
    - With your offline mode, do you load all the code, including hardware driver or do you use a special method without no loading the specific code?
    - When you are able to run after many tries, is the program stable? Can you re-start it without exiting LabVIEW?

  • Error when compiling the upload program (Message no. RSAR233)

    Hello,
    I tried to upload data from a flatfile but I did modified the Comm.Structure, Trans.Structure and Transfer Rules.
    After <u><b>activating</b></u> the all changes, I check data from InfoPackage by previewing it. Unfortunately, I got the follow messages from the popup window:
    Error 8 when compiling the upload program: row
    227, message: Data type /BIC/CCABTWJI_STK01 was
    found in a newer
    I got this kind of problems many times. I solved it by create a new infosource and everything again. I don't think it's good idea to do this way.
    Any better solution would be sincerely appreciated?
    -WJ-

    Another solution:
    go out the transaction RSA1 ans return to the transaction RSA1 again.
    This would help for me without restarting anything.
    Thank you very much for all suggestion.
    -WJ-

  • When I launch the program, I get unwanted tabs

    I've just updated to Firefox 8. Now, every time I launch the program, I get a tab with the "Getting Started with Firefox" page. Closing the tab does no good; when I start the program again, the tab is back. What can I do about this?

    This isn't any help. My home page is unchanged, and loads properly when I launch Firefox. The "getting started" page also launches at startup, in a separate tab. Nothing I've tried makes it stop doing this, and it's getting very annoying. I'm very close to a decision to stop using Firefox and switch to a more reliable browser (and I've been using Firefox happily for years). But thanks for the input.

Maybe you are looking for