Code ran fine in Eclipse, no output as a Jar file..help!

I have been working on a piece of code that reads an excel spreadsheet, and writes xml files based on that. (I'm to cheap to buy the numerous software out there)
The code ran beautifully in Eclipse, and all the right dialog windows and console outputs were present, as well as the final product, about 250 XML files.
I exported the src to a sealed jar file and ran it.
I get the first few dialogs that ask info of me, but as soon as it starts the process I get nothing!...
no exceptions, no errors, no xml...does anyone know what i did wrong?
Thanks so much for the help.

we can't help you if we don't know the real probelm you've got.
use an error logger like log4j http://logging.apache.org/log4j/docs/index.html and report the exception messages.

Similar Messages

  • App runs in Eclipse environment but not from jar file with no error message

    When I upgraded my jre to 5.0 my app does not run. After fixing the properties problem I had a few days ago it is now at least compiling and running within Eclpse
    However, when I export to a jar file it runs to a certain point and then just goes away with no error message!!! I've narrowed it down to the exact point where it dies but don't understand why it dies and especially gives me no errors whatsoever. It just goes away.
    It is creating an instance of a new class when it dies.
    Can someone please help me?

    Ok, well it doesn't. Anyway, I'm still having the same problems. I can run my jar file to a certain point and then the application just stops. I know this because I've put come message boxes in the application to let me know where in the app the system is.
    It always dies when it is instantiating the new class called HeidiFrame; done by:
    HeidiFrame heidiFrame = null;
    if I put code in between the above line and before the below line, this code will work fine
    heidiFrame = new HeidiFrame();
    but if I put code after the above line, nothing happens
    As I said this all worked fine until I upgraded to Java 1.5
    If you look at http://java.sun.com/javase/technologies/compatibility.jsp there are 23 compatibility issues with the new release. We're using xml stuff so that was my first problem and the code wouldn't even compiile. Once I added in libraries, the code compiled and ran beautifully.
    However, when creating my jar file so I can deploy this application , I've discovered that the jar file will only run to a certain point, as I've stated previously. So, that's my problem. Not that I can't run it from the command prompt, which I can't, but it's a gui application. I've tried changing things in the classpath file and the manifest to no avail. Nothing changes. The application starts but when it goes to instantiate the HeidiFrame class, which is the class that actually builds the gui it dies and goes bye bye.

  • Access of MySQlL Driver class by eclipse but not from Outside Jar file

    Dear All,
    I have done a standalone application having access with MySQl database.
    I could access it when i execute it from eclipse. But when i export it into Jar file and running I get MySQL Driver class not found exception.
    Give me a better solution for this issue.

    CLASSPATH, CLASSPATH, CLASSPATH.
    You have defined the Eclipses Project Library Path to include the MySQL jar, but ar not including it on the classpath when executing the jar.
    Either modify the MANIFEST.mf file in the jar to include a reference to the MySQL driver jarfile or call java in the following manner
    java -cp /full/path/to/MySQL/Driver/jarfile.jar -jar yourJarFile.jarObviously, if this is on Windows and you are executing through a double click, the first option is the best option.

  • Extracting and updating files inside a JAR file... from my code

    Hi.
    I need some help in the following:
    from my code, I need to search a JAR file, open it, unzipped it, then I need to search a xml and property files inside the JAR, after that I need to modify the files and finally, my code has to save the changes and update the JAR file. All that must be from my java code.
    How can I do that? I am trying to use Runtime.getRunTime().exec().... but I am not sure that it works. Besides, I don�t know what command to include in the exec() method. Is there any way to do that?
    Thanks

    The normal reason I see for this requirement is that people want to update a properties or data file. The approach I use it that I first look for the data file in a well defined location and if I find it I use it and update it as required. If I don't fine it I create it base on a template file read from the jar file using getResourceAsSrream().
    In this way I never have to update the jar file.

  • How to step thru the code in jar file.

    I am trying to step through the code in the jar file. My code is a Java stored procedure which uses a jar file. Whenever I try to Trace into the code residing in the jar file I am always hitting the
    JDeveloper API Decompiler STUB SOURCE generated from class file.
    I tried to set up the Class path and Source path in the Project Options but it didn't help.
    Any help is appreciated.
    Thanks.

    If are trying to debug the Java Stored Procedure deployed in Oracle8i (816), then you should be using Remote Debugging feature in JDeveloper 3.1
    check out http://technet.oracle.com/products/jdev/info/jdev/rdjsproc/s000.html http://technetinside.us.oracle.com/products/jdev/info/rdebugwp/rdebugwp.html
    raghu

  • Finding the source code from Jar file

    Hi,
    I am a beginner java programmer but have been entrusted with learning our company's Java application. The architect of the application is not forthcoming in sharing information and so I need help in tracing the source code for the application. I know where the .jar files are stored but I don't know where the actual .java or .class files are stored.
    In the .profile file, I see the classpaths set to various jar files. eg.
    CLASSPATH=$PATH:/eaid01_apps/merc01/libs/tools/java/drivers/bin/eaiRun.jar
    When I view this jar file with command "jar tf eaiRun.jar", it displays all the files under it. Onc such listing is as following:
    citi/eai/EAI.class
    citi/eai/Interface.class
    I want to go to that specific directory on our file system which is storing these .class or.java file. From what I have learned about packages, I should find some folder called 'citi' ,'eai'.
    However I am not able to find these folders anywhere on file system. Is there a way I can find where the actual souce code is by looking at the jar files.
    Please help. Let me know if you need more information.
    thanks,
    Anand.

    Is there a way I can find where the actual souce code is by looking at the jar files.No, in general you can't, you should ask the architect that you mentioned earlier. The name of the source file is sometimes stored in the .class file for debugging purposes but that's unlikely going to help you find the files.
    You should also ask if he/she has got any documentation of the system. It's often a lot easier to follow documentation written in human language than program code written in a programming language. There could be documentation in a format similar to this: http://java.sun.com/j2se/1.4.2/docs/api/

  • Problems with Photoshop CS2 I originally purchased this software several years ago. At time I was running Microsoft Windows XP. This computer recently was replaced with  a Dell running Windows 8.I reloaded my CS2 on this computer & it ran fine with a few

    Problems with Photoshop CS2
    I originally purchased this software several years ago. At time I was running Microsoft Windows XP.
    This computer recently was replaced with a Dell running Windows 8.I reloaded my CS2 on this computer & it ran fine with a few exceptions as follows;
    when the software comes up initially I get a message that says “could not complete your request because of program error”. Hitting OK allows me to continue using the software .
    When I try to activate a function using CTLR or ALT keys I get this message “required application failed to load and the product cannot continue. Please reinstall the application”. This causes the application to abort.
    Reloading my CS2 continues to generate the same messages when I depress the CTLR or ALT keys.

    Your original copy is obsolete and Adobe is offering a free replacement you are entitled to. Download and use that and that should clear it up for you.
    https://helpx.adobe.com/x-productkb/policy-pricing/creative-suite-2-activation-end-life.ht ml
    Download this copy of CS2 and use the serial number provided next to the download link.

  • HT1926 Cannot run or  install Itunes   Says MSVCR80.dll was not found  It ran fine before

    Cannot run or  install Itunes   Says MSVCR80.dll was not found  It ran fine before

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99742)

  • How to write the code to send the report output to the local file.

    dear all,
    how to write the code to send the report output to the local file.
    Thanks & Regards,
    Jyothi.

    Hi,
    Try this , it will display report and download the file as well. Just vhange the path and execute
    TYPE-POOLS : SLIS.
    DATA : IT_SCARR TYPE TABLE OF SCARR,
           IT_FCAT  TYPE SLIS_T_FIELDCAT_ALV.
    SELECT *
    FROM SCARR
    INTO TABLE IT_SCARR.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    *   I_PROGRAM_NAME               =
    *   I_INTERNAL_TABNAME           =
        I_STRUCTURE_NAME             = 'SCARR'
    *   I_CLIENT_NEVER_DISPLAY       = 'X'
    *   I_INCLNAME                   =
    *   I_BYPASSING_BUFFER           =
    *   I_BUFFER_ACTIVE              =
      CHANGING
        CT_FIELDCAT                  = IT_FCAT
    * EXCEPTIONS
    *   INCONSISTENT_INTERFACE       = 1
    *   PROGRAM_ERROR                = 2
    *   OTHERS                       = 3
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    *   I_INTERFACE_CHECK              = ' '
    *   I_BYPASSING_BUFFER             =
    *   I_BUFFER_ACTIVE                = ' '
    *   I_CALLBACK_PROGRAM             = ' '
    *   I_CALLBACK_PF_STATUS_SET       = ' '
    *   I_CALLBACK_USER_COMMAND        = ' '
    *   I_STRUCTURE_NAME               =
    *   IS_LAYOUT                      =
       IT_FIELDCAT                    = IT_FCAT
    *   IT_EXCLUDING                   =
    *   IT_SPECIAL_GROUPS              =
    *   IT_SORT                        =
    *   IT_FILTER                      =
    *   IS_SEL_HIDE                    =
    *   I_DEFAULT                      = 'X'
    *   I_SAVE                         = ' '
    *   IS_VARIANT                     =
    *   IT_EVENTS                      =
    *   IT_EVENT_EXIT                  =
    *   IS_PRINT                       =
    *   IS_REPREP_ID                   =
    *   I_SCREEN_START_COLUMN          = 0
    *   I_SCREEN_START_LINE            = 0
    *   I_SCREEN_END_COLUMN            = 0
    *   I_SCREEN_END_LINE              = 0
    *   IR_SALV_LIST_ADAPTER           =
    *   IT_EXCEPT_QINFO                =
    *   I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
    * IMPORTING
    *   E_EXIT_CAUSED_BY_CALLER        =
    *   ES_EXIT_CAUSED_BY_USER         =
      TABLES
        T_OUTTAB                       = IT_SCARR
    * EXCEPTIONS
    *   PROGRAM_ERROR                  = 1
    *   OTHERS                         = 2
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
      EXPORTING
    *    BIN_FILESIZE              =
        FILENAME                  = 'C:\Documents and Settings\sap\Desktop\Hi.xls' " Change path
    *    FILETYPE                  = 'ASC'
    *    APPEND                    = SPACE
    *    WRITE_FIELD_SEPARATOR     = SPACE
    *    HEADER                    = '00'
    *    TRUNC_TRAILING_BLANKS     = SPACE
    *    WRITE_LF                  = 'X'
    *    COL_SELECT                = SPACE
    *    COL_SELECT_MASK           = SPACE
    *    DAT_MODE                  = SPACE
    *    CONFIRM_OVERWRITE         = SPACE
    *    NO_AUTH_CHECK             = SPACE
    *    CODEPAGE                  = SPACE
    *    IGNORE_CERR               = ABAP_TRUE
    *    REPLACEMENT               = '#'
    *    WRITE_BOM                 = SPACE
    *    TRUNC_TRAILING_BLANKS_EOL = 'X'
    *  IMPORTING
    *    FILELENGTH                =
      CHANGING
        DATA_TAB                  = IT_SCARR
    *  EXCEPTIONS
    *    FILE_WRITE_ERROR          = 1
    *    NO_BATCH                  = 2
    *    GUI_REFUSE_FILETRANSFER   = 3
    *    INVALID_TYPE              = 4
    *    NO_AUTHORITY              = 5
    *    UNKNOWN_ERROR             = 6
    *    HEADER_NOT_ALLOWED        = 7
    *    SEPARATOR_NOT_ALLOWED     = 8
    *    FILESIZE_NOT_ALLOWED      = 9
    *    HEADER_TOO_LONG           = 10
    *    DP_ERROR_CREATE           = 11
    *    DP_ERROR_SEND             = 12
    *    DP_ERROR_WRITE            = 13
    *    UNKNOWN_DP_ERROR          = 14
    *    ACCESS_DENIED             = 15
    *    DP_OUT_OF_MEMORY          = 16
    *    DISK_FULL                 = 17
    *    DP_TIMEOUT                = 18
    *    FILE_NOT_FOUND            = 19
    *    DATAPROVIDER_EXCEPTION    = 20
    *    CONTROL_FLUSH_ERROR       = 21
    *    NOT_SUPPORTED_BY_GUI      = 22
    *    ERROR_NO_GUI              = 23
    *    others                    = 24
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
      EXPORTING
        DOCUMENT               = 'C:\Documents and Settings\sap\Desktop\Hi.xls' "Change path
    *    APPLICATION            =
    *    PARAMETER              =
    *    DEFAULT_DIRECTORY      =
    *    MAXIMIZED              =
    *    MINIMIZED              =
    *    SYNCHRONOUS            =
    *    OPERATION              = 'OPEN'
    *  EXCEPTIONS
    *    CNTL_ERROR             = 1
    *    ERROR_NO_GUI           = 2
    *    BAD_PARAMETER          = 3
    *    FILE_NOT_FOUND         = 4
    *    PATH_NOT_FOUND         = 5
    *    FILE_EXTENSION_UNKNOWN = 6
    *    ERROR_EXECUTE_FAILED   = 7
    *    SYNCHRONOUS_FAILED     = 8
    *    NOT_SUPPORTED_BY_GUI   = 9
    *    others                 = 10
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • When I ask Siri the stock price for MBL (other codes work fine), my iphone 5 crashes - does this happen to anyone else?

    When I ask Siri the stock price for MBL (other codes work fine), my iphone 5 crashes - does this happen to anyone else?
    It doesn't shut down completely, but mid-response the Apple shows and then it pops up to put in my pin.

    Nope nothing yet - a few friends have true it and have the same reaction."

  • Problem accessing resources in a built jar but works fine within eclipse

    Howdy,
    I have an image which I am trying to set as my jframe icon, quick overview:
    package: testpackage
    source directory: src (in root dir of package)
    image directory: icon (in root dir of package)
    So if i do this to aquire the image, within the IDE it works fine!
    Image image = Toolkit.getDefaultToolkit().getImage("icon/test.png");
    However, if I export the jar file and try to run it, the image is not being found. I used jar xf to open the jar file and the relitive path is still the same "icon/test.png"...ive tried everything I can think of including just trying to move/include the image file in my source directory but no luck
    FWIW when i right click on the image within eclipse and select "copy fully qualified name" i get a path like this:
    /project/src/package/icon/test.png
    Any ideas?
    thanks

    Try
    Image image = Toolkit.getDefaultToolkit().getImage(this.getClass().getResource("/icon/test.png"));

  • Log error "Could not load file or assembly 'BarcodeConversion' or one of its dependencies. Access is denied. This code work fine in server 2008 but get this error in server 2012

    This code work fine in server 2008, but get this error in server 2012.  Do yo have any idea?

    Need some more info as to where this is installed and how.
    First thing to try would be to uninstall the solution and reinstall.
    Check the GAC for your assembly as well as web.config.
    If you don't see it in one of those places, something went wrong with the install and you'll need to start over.
    Brandon James SharePoint Developer/Administrator

  • How to call a screen /t-code by double clicking on the output of an alv?

    Hi,
    I want to call a screen /  t-code on double clicking on the output of an alv report.
    Suppose we click on a value in the "Pur Req" feild of the ALV output  it should  open the the transaction code and give us  the  details of that particular value. How can I do that?
    Thanx in advance..

    If you displaying ALV using Classes..( CL_GUI_ALV_GRID)... You need to create event receiver and register the double click event handler method dynamically.... Here's the sample code...
    *                            C L A S S E S                             *
    class lcl_event_receiver definition.
      public section.
        methods:  handle_double_click
                  for event double_click
                  of cl_gui_alv_grid
                  importing e_row e_column.
    endclass.
    *       CLASS lcl_event_receiver IMPLEMENTATION
    class lcl_event_receiver implementation.
      method handle_double_click.
        data: l_cc like line of gt_cc.
        data:
        g_row type i,
          g_value(10),
          g_col type i,
          g_row_id type lvc_s_row,
          g_col_id type lvc_s_col,
          g_row_no type lvc_s_roid.
    *  Read the double click cell
        call method gr_grid->get_current_cell
               importing
                 e_row     = g_row
                 e_value   = g_value
                 e_col     = g_col
                 es_row_id = g_row_id
                 es_col_id = g_col_id
                 es_row_no = g_row_no.
        clear wa_itab
        read table gt_itab index g_row_id into wa_itab.
        case g_col_id.
          when 'EBELN'.                   "Show Process Order
            if not wa_itab-ebeln is initial.
              set parameter id 'BES' field wa_cc-ebeln.
              call transaction 'ME22N'  and skip first screen.
            endif.
        call method gr_grid->set_table_for_first_display
            exporting
            i_consistency_check   =  g_consistency_check
            it_toolbar_excluding  =  gt_exclude
            is_variant            =  gs_variant
            i_save                =  g_save
            i_default             =  'X'
            is_layout             =  g_layout
        changing it_outtab        =  gt_cc[]
                 it_fieldcatalog  =  gt_fieldcat[]
                 it_sort          =  gt_sortcat[].
        create object event_receiver.
    *   Register the 'Double Click' event handler method dynamically.
        set handler event_receiver->handle_double_click for gr_grid.

  • Illustrator CS6 16.0.4 ran fine before installing OS X 10.10 (Yosemite)... after installing, it doesn't... help!

    Illustrator CS6 ran fine before I installed OS X 10.10 Yosemite on my MacBook Pro.  But it never ran once afterwards.  When I launch AI CS6, it says it needs me to install the legacy Java SE 6 runtime.  Did anyone else encounter this?  I don't want to install the older version of java without knowing if it'll fix the problem, or what the impact will be to other programs which all seem to run fine after my upgrade to Yosemite.  Any guidance out there?
    Thanks,
    -Eric

    uninstall, clean and then reinstall per Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • Photoshop ran fine at first

    I use Photoshop on my MBP for the most basic photo editing from my olympus. The photos are no bigger than 2000x2000 pixels. Photoshop ran fine at first, but now it slows everything down, opens up multiple photos very slow, etc.
    I am a recent switcher and I have used a previous version of PS on a PC with less memory. It never ran this slow.
    MBP 2.16 GHz 1 GB RAM   Mac OS X (10.4.9)   1 GB RAM, 93 GB HD

    The current retail version of Photoshop is not a Universal application. This means it will have to be run through a program called Rosetta. Rosetta allows you to run a powerpc application on an intel machine. It also slows down the system.
    Adobe is currently working on a Universal version of Photoshop, but I think it is still in beta. Once Adobe releases the retail version of the Universal version, Photoshop should run a lot quicker on the intel macs.
    You can read more information on Rosetta and how it affects your system performance here:
    http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh350.html

Maybe you are looking for

  • Can I use mini mac with my G5 second generation

    I have a g5 second generation I mac Can I use it with a mini mac?

  • Premier Elements 2 not capturing video

    I have operated Premier Elements 2 for some years, but I am currently having problems with the video capture. The controls operate the camera, the sound is on, but the picture does not appear and nothing downloads. I have reinstalled the program but

  • Desktop and Screen Saver in System Prefs hangs. Why?

    I just migrated everything over perfectly from my old intel mac to my new one. when i go to "desktop and screen saver" in the system preferences and try to choose a folder of images for screen saver, sys prefs hangs and i have to force quit. i am try

  • Super Duper vs. Retrospect - Which one is better?

    Senior Members, What is the best solution for creating bootable clones and back-ups? What do you use? Acronis is the industry favorite for Windows, but they have still not launched their Mac version, which was supposed to be out by now. Thank you!

  • Latest jdeveloper 11.1.2.1.0 doesn't have Web service Proxy at Business Tie

    I have installed the latest Jdeveloper 11.1.2.1.o and tried to create a wsrp consumer but couldn't find the "Generate Web Service Proxy" under Business Tier -> Web service as suggested in developer's guide. Did I miss anything? Should I installed any