While exporting to .jar I found something...

So yesterday I was messing around trying to export to .jar... I was successful, but when I exported I accidentally exported to .java... And then I noticed that I can export to really any extension... like example.dat... So I did that... Now my question is how can I decompile the code that I exported to 'example.dat'?
Thanks a bunch

Jar archives traditionally use a ".jar" extension (and so you should use that extension when you export the file). But in a lot of situations the extensions does not really matter. You can use any legal filename when creating/listing/expanding the archive. You can also use an archive of any name as part of your classpath.
public class JarTest {
    public static void main(String args[]) {
        System.out.println("Hello from JarTest");
pbrockway@linuxdeskd6off:~/JDC/temp$ javac -cp . JarTest.java
pbrockway@linuxdeskd6off:~/JDC/temp$ jar cf rose.dat JarTest.class
pbrockway@linuxdeskd6off:~/JDC/temp$ java -cp rose.dat JarTest
Hello from JarTest
pbrockway@linuxdeskd6off:~/JDC/temp$ jar tf rose.dat
META-INF/
META-INF/MANIFEST.MF
JarTest.class
pbrockway@linuxdeskd6off:~/JDC/temp$ An IDE may impose its own rules, but the tools that come with the JDK - java, javac, jar - work according to their documentation.

Similar Messages

  • Getting error while export folder: ScriptTemplate [6] not found

    Hi,
    I am trying to do a weekly refresh in IOP. As part of the script I take a backup of export folder and generate a new export folder. While taking a backup of export folder, job is failing while exporting user preferences.
    2011-06-21 00:02:00,626 [ExecuteCommand] MigrateExporter INFO - Exporting users to D:\bsm\IT_Big\export\migration\data\users.csv
    2011-06-21 00:02:00,704 [ExecuteCommand] MigrateExporter INFO - Exporting user acls to file D:\bsm\IT_Big\export\migration\model\acls.xml
    2011-06-21 00:02:01,562 [ExecuteCommand] Request ERROR - ISException processing request [execute]
    com.interlacesystems.util.ObjectDNEException: ScriptTemplate [6] not found
    Please let us know if any idea.
    Thanks

    Hi,
    I am trying to do a weekly refresh in IOP. As part of the script I take a backup of export folder and generate a new export folder. While taking a backup of export folder, job is failing while exporting user preferences.
    2011-06-21 00:02:00,626 [ExecuteCommand] MigrateExporter INFO - Exporting users to D:\bsm\IT_Big\export\migration\data\users.csv
    2011-06-21 00:02:00,704 [ExecuteCommand] MigrateExporter INFO - Exporting user acls to file D:\bsm\IT_Big\export\migration\model\acls.xml
    2011-06-21 00:02:01,562 [ExecuteCommand] Request ERROR - ISException processing request [execute]
    com.interlacesystems.util.ObjectDNEException: ScriptTemplate [6] not found
    Please let us know if any idea.
    Thanks

  • ../../Products.jar not found while installing Oracle 9i

    Hello,
    I am installing Oracle 9i on RHEL4 on a 32bit machine.
    Hardware is HP ProLiant DL380 G5
    All the RPM's, jre is in place.
    After i run ./runInstaller the Oracle Universal installer gets evoked and in the File Locations option in the "SOURCE" area presently the path where it is mentioned "Enter the full path of the file representing the product(s) you want to install" is is automatically set to
    /tmp/oracle/Disk1/install/linux/../../stage/products.jar
    But when i click next to proceed futher, i get an error..
    file /tmp/oracle/Disk1/install/linux/../../stage/products.jar not found
    Having a look on google.. i get solutions relating to 11i. But this is Oracle database.
    Please help.

    make sure the products.jar file is located where declared.
    ~ Madrid
    http://hrivera99.blogspot.com

  • How to improve ejbc performance while building a jar

    Hi All,
    We are wasting valuable time in in development stage while building a
    jar which
    has quite a few beans.
    We found out that ejbc is taking up most of the time. For example, a jar
    which has
    about 30 beans ejbc is taking up about 5 minutes to build the complete
    jar.
    We are not sure if we are doing something wrong or ejbc itself is slow ?
    It would help us tremendously if you can identify the problem and help
    us
    expedite the process.
    Thanks in advance
    -Sheshi

    You could put each bean in it's own JAR file, then only build
    the bean that is modified. Guaranteed to be 30 times faster.
    Mike
    "Chip Whiteside" <[email protected]> wrote:
    Use Jikes to handle the ejbc compile. It should give
    you a performance
    increase for the compile.
    "Sheshi Sankineni" <[email protected]> wrote
    in message
    news:[email protected]..
    Hi All,
    We are wasting valuable time in in development stagewhile building a
    jar which
    has quite a few beans.
    We found out that ejbc is taking up most of the time.For example, a jar
    which has
    about 30 beans ejbc is taking up about 5 minutes tobuild the complete
    jar.
    We are not sure if we are doing something wrong or ejbcitself is slow ?
    It would help us tremendously if you can identify theproblem and help
    us
    expedite the process.
    Thanks in advance
    -Sheshi

  • Exporting a jar file with its libraries

    Hi there,
    I have problem while exporting jar files with Eclipse.My program uses db2driver libraries and i want to make stay these library files while exporting the main program but there is no choice to make it like that. And when i execute my program jar file it throws a class not found exception for db2drivers ...
    How can i pack the jar files with my program jar?
    Thanks for help.

    Hi Peter,
    I made the changes but still got the problem...
    here is my .classpath file:
    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    <classpathentry exported="true" kind="lib" path="db2jcc_license_cu.jar"/>
    <classpathentry exported="true" kind="lib" path="db2jcc.jar"/>
    <classpathentry kind="output" path="bin"/>
    </classpath>
    when i execute my jar file it throws a ClassNotFoundExeption for DB2Drivers which are in db2jcc.jar ...(my startng class is at src package)
    Thanks..

  • Issue while exporting report in Excel Format

    Hello,
    I am facing problem while exporting the report in Excel Format. After analysis, I think that it could be due to two reasons, either we are using wrong versions of Jars, or we are using wrong API. Here is the code, approaches and problems we are facing. Please help.
    First approach we are using is:
    // using basic API
    import com.crystaldecisions.reports.sdk.ReportClientDocument;
    // get client document from crystal report API and open the report by specifying the report name, with path
                   ReportClientDocument reportClientDoc = new ReportClientDocument();
                   reportClientDoc.open( reportPath, 0 );
                   // give chance to extending classes to configure the report document by POJO or by sql parameter etc, just adding the parameters infromation using ParameterFieldController
                   configureReportDocument( reportClientDoc, reportMetadata, reportData, reportContext );
                   // get data source of crystal report
                   Object reportSource = reportClientDoc.getReportSource();
                   // export the data - we have also tried with MSExcel format
                   ReportExportFormat exportFormat =  ReportExportFormat.recordToMSExcel;
                   LOGGER.debug( "exportFormat[" + exportFormat + "]" );
                   ByteArrayInputStream byteArray = (ByteArrayInputStream) reportClientDoc.getPrintOutputController().export(
                             exportFormat );
    Problem Faced: Specified Excel format is not supported.
    Second Approach: We come to know that excel format is supported with new releases and with occa package.
    Then we tried with import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument; It ask to set the ReportServer. When we are trying to set the server as
                   reportClientDoc.setReportAppServer(ReportClientDocument.inprocConnectionString);
    Application is unable to find 'ReportClientDocument.inprocConnectionString' property. It seems like we are using some old jars. However we have downloaded the latest released jars for eclipse 2.
    Please help for it. Issue is to export the report in excel format, which is currently working fine for PDF. If this problem is related to Jars, please suggest the path to download the latest jars. We also looking for the latest jars like rasapp and rascore etc. But these are not available with Crystal Report for Eclipse 2 release.
    Waiting for urgent help. Thanks you..
    Regards,
    Mohit

    Hi,
    Send me Environment Details .
    Here is the code  snippet for exporting report to excel format:
    <%@ page import="com.crystaldecisions.sdk.occa.report.application.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.definition.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
    <%@ page import="com.crystaldecisions.sdk.framework.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.managedreports.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.infostore.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.report.exportoptions.*" %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.io.*" %>
    <%
    String username ="Administrator";
    String password ="";
    String cmsname ="localhost:6400";
    String Authen ="secEnterprise";
         //connecting to Enterprise
         IEnterpriseSession es = CrystalEnterprise.getSessionMgr().logon(username,password,cmsname,Authen);
         //get the report App Factory form the Crystal Enterprise
         IReportAppFactory appFactory = (IReportAppFactory) es.getService("","RASReportService");
         //get the infostore service form the Crystal Enterprise
         IInfoStore istore = (IInfoStore) es.getService("","InfoStore");
         //get the report by name from crystal Enterprise
         IInfoObjects iobjects = istore.query("Select * From CI_INFOOBJECTS Where SI_NAME = 'sampleramz2.rpt' and SI_INSTANCE = 0 ");
         //open the report in the report doc object.
         ReportClientDocument Doc = appFactory.openDocument((IInfoObject)iobjects.get(0), 0, Locale.ENGLISH);
         // WORKING WITH THE PRINT OUTPUT CONTROLLER
         //Use the report documents PrintOutputController to export the report to a ByteArrayInputStream
         ByteArrayInputStream byteIS = (ByteArrayInputStream)Doc.getPrintOutputController().export(ReportExportFormat.recordToMSExcel);
         // EXPORTING THE REPORT
         //Create a byte[] (same size as the exported ByteArrayInputStream)
         byte[] buf = new byte[2000 * 1024];
         int nRead = 0;
         //Set response headers to indicate pdf MIME type and inline file
         response.reset();
         response.setHeader("Content-disposition", "inline;filename=ramz");
         response.setContentType("application/xls");
         //Send the Byte Array to the Client
         while ((nRead = byteIS.read(buf)) != -1)
              response.getOutputStream().write(buf, 0, nRead);
         //Flush the output stream
         response.getOutputStream().flush();
         //Close the output stream
         response.getOutputStream().close();
    %>
    Let me know any information is needed,
    Regards,
    Rameez

  • Error while exporting a table - EXP-00091

    I am doing an export of a table. The table has 1000838 rows. After the export is completed,
    when I checked the log - it said
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.4.0 - Production
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    About to export specified tables via Conventional Path ...
    . . exporting table FIDA_LABEL 1000838 rows exported
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    EXP-00091: Exporting questionable statistics.
    Export terminated successfully with warnings.
    I looked in the Oracle error messages document and found this out ---
    EXP-00091 Exporting questionable statistics
    Cause: Export was able to export statistics, but the statistics may not be useable. The statistics are questionable because one or more of the following happened during export: a row error occurred, client character set or NCHARSET does not match with the server, a query clause was specified on export, only certain partitions or subpartitions were exported, or a fatal error occurred while processing a table.
    Action: To export non-questionable statistics, change the client character set or NCHARSET to match the server, export with no query clause, or export complete tables. If desired, import parameters can be supplied so that only non-questionable statistics will be imported, and all questionable statistics will be recalculated.
    And this how my export command looks like -
    exp vincent/passphr query=\"where state in \(\'MD\',\'CA\',\'WI\'\)\" file=$EXPDIR/fida_label_9i.dmp tables=vincent.fida_label
    log=$LOGDIR/fida_label_exp.log
    Ofcourse, I am using the query clause because I really need to and it has always worked when we were in the Oracle 8i environment. We recently moved to the 9i. And this happens in this 9i version...
    And I certainly do not want to specify the import parameters to ignore the questionable statistics as no changes are desired in that area...(my hands are tied..).
    What could " a fatal error occurred while processing a table " mean? And how can this be traced and troubleshooted ? Or how can I find out if any row errors occurred ? And if required, how do I check the character sets and other likes ?? (I have no idea in this area)
    Thanks. All I needed was to get around this error. Your suggesions/responses would be highly appreciated

    What version of Oracle 9i are you using? Do you have a standard 'NLS_LANG' environment variable set on client's machines? Or do you set it to different values on different machines?
    Here is one of way you could get around it.
    Could you specify the export parameter 'STATISTICS=NONE' while exporting the table data?
    Try this and see.
    If this is successful, you could use the import utility as usual. You could always compute or estimate statistics on the table after import.

  • Issue while exporting report - OBIEE 11g - IIS 7.5

    Hi,
    We are currently on OBIEE 11.1.1.7.0 version of OBIEE and we have set up proxy through IIS 7.5 on Windows 2008 R2 server.
    While exporting our reports, we need to ensure that both Export to excel options (2003 and 2007+) are working fine. However, for some reports, when we try to download the reports to Excel 2007+ format, we get a "Internet Explorer cannot display the webpage" error message. This issue does not appear if we change the URL to directly access Weblogic server (instead of routing through IIS). Wanted to know if anyone have faced similar issue and have found any solution/workaround for same.
    Thanks
    Hyder

    Hyder,
    I have achieved this.We have deployed our OBIEE application on Weblogic server not on IIS.
    Sasi Nagireddy: How to Export Analysis in Excel 2007 +
    Thanks,
    Sasi Nagireddy..

  • Getting error while exporting the report

    Hi,
    I am facing error while exporting the report. Getting below error.
    "No data can be exported because there are no rows.Operation failed."
    how come this error is coming even though my report contains data.
    please do the needful.
    i am using the version discoverer 10g.
    Thanks,
    RC.

    I am having the same problem. I found this article in which the user was exporting 100,000 plus records and had the same issue exporting (Discoverer workbook exported to excel error - No dta can be exported and they were able to fix it by adjusting two memory settings in their pref.txt file. However, in my report there are only 1,100 records with eleven columns being returned. I export much larger reports on a daily basis.
    Originally, the report was returning records and when I would go to retrieve all records it would tell me that all the rows could not be returned and the data may be incomplete. After scrubbing my SQL I no longer get that message, but the report still will not export and I get the same error as you.
    I have not tried the pref.txt settings fix but may try it today to see if that is a workaround. I will then have to evaluate whether it is a good fix or just a band-aid.

  • How to avoid line break ( br ) while exporting Interactive report in Excel

    Hi,
    I have a Interative report and I am using Apex download format as CSV.
    I have defined some of the column heading in multiple line using break < br >
    when I export this into the excel sheet..the column heading contains break also..
    - Any idea how to avoid line break while exporting in excel.
    - also how to put the columns heading in BOLD when exported in excel.
    Thanks,
    Deepak

    Hi Jari,
    I tried this but still getting the
    <br>Interactive Report
    Column Attributes Heading - Employee<br>Detail AddressWhen I download the Report in CSV Format
    I am getting the heading with <br>.
    I am looking for heading as - Employee Detail Address // with no <br> tagThanks,
    Deepak

  • Indesign getting crash while exporting because of bad pdf inside file.

    Hi,
    My indesing is getting crash while exporting to pdf. I have link to pdf file inside the indesign file, when i export that indesign file to pdf indesign is getting crash without showing any error message. If i place another pdf file in same location then it is going fine and i can able to get the output pdf file. Please suggest me how can i check and correct that pdf file and is there any solution to this. Please help me i have thousands of indesign pages with the same issue. If you want pdf i can send it to your mail id. please i need fix for this problem.
    Thanks
    Kiran

    For all of you lurkers, Kiran sent me a copy of the PDF, and it looks like I found the problem (and learned a new technique which may help others in the same boat).
    I tried re-frying the file by creating an eps and distilling, but the result was the same, then I tried exporting from CS3, just for fun, and it worked, but I realized the PDF had been cropped, so I started trying differnt sections and isolated an area that failed, though that wasn't particularly helpful.
    Acrobat preflight didn't find anything that looked odd or problematic, and then I decided to run Examine Document. It came up with MetaData (no surprise) and also two items under a heading of Deleted and Cropped objects, with no preview or description. I unselected the MetaData from the list of found stuff, them clicked the Remove button in the Examine Document panel, and resaved (and while you have the opportunity to give it a new name, doing so doesn't remove the stuff untill you do the whole procedure again and save with the same name). Placed the new version of the PDF in a new file and exported no problem.

  • Error while exporting PAR file

    Hi,
    I am getting an error "Build of project failed" while exporting a PAR file to the project folder and it is showing that "The project was not built due to classpath errors (incomplete or involved in cycle)." I am very new to this technology, so please help me in this.

    Check if the required JAR files under /dist/lib or /dist/private/lib are added in the project structure.
    Refer http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d58bb490-0201-0010-64a1-9e5165e5dbac?QuickLink=index&overridelayout=true
    ~ Dhanz

  • Error while exporting data

    i get the following error while exporting data evn after running catexp.sql
    EXP-00056: ORACLE error 31600 encountered
    ORA-31600: invalid input value EMIT_SCHEMA for parameter NAME in function SET_TRANSFORM_PARAM
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 3926
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 4050
    ORA-06512: at "SYS.DBMS_METADATA", line 836
    ORA-06512: at line 1
    can anyone help me on this

    copy past from the notes referred above -
    Symptom(s)
    ~~~~~~~~~~
    You are performing a database export against your 9.2 database. The database
    export abnormally ends with the following errors:
    EXP-00056: ORACLE error 31600 encountered
    ORA-31600: invalid input value EMIT_SCHEMA for parameter NAME in function
    SET_TRANSFORM_PARAM
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 3926
    ORA-06512: at "SYS.DBMS_METADATA_INT", line 4050
    ORA-06512: at "SYS.DBMS_METADATA", line 836
    ORA-06512: at line 1
    EXP-00000: Export terminated unsuccessfully
    Change(s)
    ~~~~~~~~~~
    One of the known causes for the error above is that a patchset was recently
    applied to the database but one or more of the patchset steps were not
    performed.
    Cause
    ~~~~~~~
    View the readme notes for the patchset recently installed. You will see a step
    that should have been performed that directs you to run the script named
    catpatch.sql. Very likely this step was never performed.
    Fix
    ~~~~
    As the sysdba user run the catpatch.sql script found in the directory named
    $ORACLE_HOME/rdbms/admin. Before you submit this script, view it's contents.
    You may see that this script places the database in restricted mode.
    rgds

  • Adobe Illustrator error while exporting to tiff

    While trying to export to tiff with more than 260 dpi Illustrator gives a message: "the combination of artwork size and resolution exceeds the maximum that can be raserized".
    Photoshop opens a linked files with transparency incorrectly, also there is a trouble with masks. Now i forced to split this AI file on the layers and open it layer by layer in photoshop and correct all these in there. but if there are masks, then i have to
    do a double work..
    What can i do to export it? to 375 dpi

    How do you do it basically? i set a linear size 1 to 10 ie 600h300mm, make all i need, in Photoshop i set the resolution - 300 dpi, raster elements and other also in the same size (and here i have to ask - why are you setting so high resolutions?).
    All prepare, EXCEPT the fonts on the top of the CROP MARKS and export to TIFF and if my computer that allows, set 300, if not then 150-200-100. Then convert the font to EPS, open in Photoshop my TIFF, impose eps one each other, stuck together in a single layer,
    stretch to 600h300sm, resolution - 72 or 50 dpi, look 100% fonts, save everything.  Am I lose something? Try just follow this.
    Another what you can try is to open AI file in Photoshop with the necessary dpi.  If you do not want, then while exporting from Illustrator uncheck Anti-Alias, but the picture turns out "toothy" accordingly.
    And the last I can recommend is to run a third-party. Some of them can be really useful.
    Recovery Toolbox for Illustrator isn’t bad
    https://illustrator.recoverytoolbox.com/
    but be careful and try the demo first. And read closely about its requirements and the things it can recover. Peace to you!

  • Getting Runtiime error while exporting to Excel 97-2000 format (URGENT)

    Post Author: net_us2001
    CA Forum: Exporting
    Hello Everyone,
    This is my first time in this forum.
    I am getting runtime error while exporting the report in EXCEL 97-2000, but exporting perfactly in MS-EXCEL (Data only) format.
    I found the reason is, using expression (formula) for formatting phone number as shown below.
    On table field "abPhone",
       used  "formula = PhoneFormat() " expression on format field -> common tab -> display string .
    Intead that i have used fumula e.g. test1 and used same expression, then it was exporting perfactly..
    Having above problem if i use expression to supress group header and report header. 
    So let me know if anyone can help, why it was giving error in first case.
    Thanks in advance
    Thanks,
    Nitin

    Hi,
    This is the Technical limitation of ABAP list export to local file.
    ALV grid greater than 1023 characters per line will be split into 2 lines.
    To prevent a line break occuring when you download the list as a local spreadsheet file, you must reduce the width of the list in ALV. You can do this either by hiding columns or by changing the column widths in the ALV. Take care that the column heading characters also dont exceed 1023 characters. This will work.
    Thanks
    LG

Maybe you are looking for

  • How can I add videos to itunes?

    I've been trying to add video files to itunes, either through drag and drop or adding from the file menu, but each time the video does not come up in itunes?

  • How can I move iWork 09 to a new hard drive?

    Here's the deal: In a last-ditch attempt to fix a vexing problem with a Tascam US-800 audio interface, I have undertaken a clean install of Lion on a fresh hard drive. Because I suspect this problem is caused by some strange issue with my old system

  • Id cs5 export pdf problems

    i create 4 layer in my id file. after export pdf file i find there are words missing and i need to change words to different layer to solve the problem. also there is some words position changed but i can't find out after export pdf for output. this

  • Ads soap error

    if i execute adobe form in tcode sfp there is a soap error with adobe document services

  • H:inputBox required="true"

    Hi all, An h:inputBox with property required = "true" will accepts a blank space as a valid entry . How can I avoid this. Regards Sandeep