How to generate jpeg file

hi, i just learn how to use jfreechart
but when i compile , it says : couldnt find the main class
and throws exception 'main'
this is part of the code
JFreeChart chart = ChartFactory.createBarChart
                         ("Sample Category Chart", // Title
"Quarters", // X-Axis label
"Sales", // Y-Axis label
categoryDataset,
PlotOrientation.VERTICAL,
true,// Dataset
true,true // Show legend
ChartUtilities.saveChartAsJPEG(new File("chart.jpg"), chart, 500, 300);

Would you be so kind to copy the compiler diagnostic message verbatim
and post it here, because as it is, your question doesn't make much sense.
kind regards,
Jos

Similar Messages

  • How to generate MT100 file in XML ?

    How to generate MT100 file in XML ?
    Dear All,
    Base:      We are working on ECC 6.0 version and developing B2B with bank.
    Requirement:     For B2B bank requires payment orders in MT100 format wrapped in XML.
    At Present:     I am using PMW format MT100(standard) in payment method. With the use of this format system is generating MT100 text file.
    In this standard PMW format MT100, check box for u201Dmapping using DME engineu201D is not selected. 
    My Try:      I  change in format output from file to XML in Payment Media Format (T. Code OBPM1), but it doesnu2019t work.
    In data medium display (T. Code FDTA) system is showing the following error.
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'file:///C:/Users/888881/AppData/Local/Microsoft/Wind...
    In view source system is showing only this,
    <?xml version="1.0" encoding="utf-8"?>
    My Question:      How to generate MT100 file in XML ?
    Should I have to create DME Format Tree in ( T. Code DMEE )  and  create new Payment Media Format (T. Code OBPM1), with the mapping using DME engine ?
    Please give your valuable suggesions,
    Thank you,
    Rony

    Hi Prabhu,
    The program SAPFPAYM generates the payment Medium  on the basis of your configuration and background settings, this program does not bydefault give the output in the XML.
    Varient creation for the PMW in T. Code OBPM4, use the same program, which i already done it, even without this it is not be possible to create any payment Medium.
    Regards,
    Rony

  • How to generate xml-file for SAP Fiori (UI add-on) with Solution Manager 7.0.1?

    Hello Guru,
    could you please help with my issue with Fiori Installation.
    We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
    Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
    But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
    But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option  "install Add-on" as it written in Guide for ui add-on installation.
    Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
    If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
    Thanks in advance for any help!!!
    Bets regards,
    Natalia.

    Hello Guru,
    could you please help with my issue with Fiori Installation.
    We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
    Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
    But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
    But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option  "install Add-on" as it written in Guide for ui add-on installation.
    Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
    If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
    Thanks in advance for any help!!!
    Bets regards,
    Natalia.

  • How to capture JPEG files by using camera

    Hi, now I have a problem, I need your help, I am trying to use a camera that capture JPEG files from camera, I have used those related classes(JMF), but I still can not capture any JPEG files from it.
    Although there are some examples about the video capture(just for mov or avi files), it does not mention how to capture JPEG files.
    Thank you for your help!

    I have the same problem.
    please,help us.

  • How to convert jpeg files into word

    How to convert jpeg files into Word

    Hi Eugene,
    I don't think you can convert an image to a Word document, but you could place the JPEG into a Word document using the Insert > Object command in Word.
    For other questions relating to Word, you will probably have more luck getting an answer if you post on the Microsoft forums (we can help if you're using Acrobat, or another Adobe product, but you'll find the Word experts on the Microsoft forums.)
    Best,
    Sara

  • How to generate PNG file to the disk folder by IBOT?

    Is there a piece of code in JavaScript on how to generate PNG file to the disk folder by IBOT?
    thanks a lot

    Please disregard this message. The information below is only semi-accurate. When I get some kinks worked out I'll edit this again. -Bill
    FYI,
    Don't really know if I'm adding anything useful but here it is. I use NetBeans and I simply added an images folder so now I have my package (deckofcards) and a sub package deckofcards.images.
    The image:
    back: Image {
                url: "{__DIR__}images/B.JPG",
                backgroundLoading:true
                placeholder:bind placeholder
            };works and the value of "{__DIR__}images/B.JPG" becomes
    <CARD backUrl="jar:file:/C:/Users/Bill/Documents/NetBeansProjects/DeckOfCards/dist/DeckOfCards.jar!/deckofcards/B.JPG">
      ...when I marshal. That string (backUrl) will unmarshal correctly and can be use in the url variable to display and image too.
    -Bill
    Edited by: bthayer on Feb 21, 2009 6:04 AM

  • How to Generate Trace Files in SQL*Plus

    Hi Friends ,
    How to Generate Trace Files in SQL*Plus ?
    i have no idea
    thanks
    raj

    What trace files would you like to generate?
    Are we talking SQL trace files?
    ALTER SESSION SET sql_trace = TRUE;This will be generated in the user_dump_dest on the server.
    show parameter dump

  • How to generate TEMSE file in form 16

    Hi Experts,
    How to generate TEMSE file in form 16.Here i am unbale to get the values in page3 of f16  ""DETAILS OF TAX DEDUCTED AND DEPOSITED INTO CENTRAL GOVERNMENT ACCOUNT''
    PLease advice.
    Regards,
    Sai.

    Hi Dev...
    Thanks for the reply.Here i can able to get form 16 except  the acknowldgement numbers in firstpage and Details of tax deducted and deposited into central govt. account in page no three.
    What should i do inorder to get all those details in f16.
    Here i have given the tcode pc00_m40_f24.From here onwards i was unable to go furthur.
    Please advice.Points are sure.
    regards,
    sai.

  • How to generate .DTD file from IDOC?

    Dear All,
    On behalf of my colleague,
    How to generate .DTD file from IDOC? I want to generate this file for importing into the WebMethod Tool. Please share relevant content regarding the same.
    IDOC name is: BOMMAT01
    Let me know if you need any other information.
    Regards,
    JK

    Hi Jitendra,
    When PI receives idoc from ECC it will be in xml format.
    Are you telling that you want to convert this xml to .dtd file?
    check this for converting xml into .dtd file.
    How to convert XML file into DTD or XSD
    could you please explain about what you are doing in this requirement?
    After importing into WebMethod what is the next action?
    do they want to send the file to PI?

  • How to generate XML file based on XSD in SSIS

    please provide step by step process to create xml based on XSD in SSIS  

    Hi hemasankar,
    In SQL Server Integrated Services, we can generate XML Schema (XSD) file based on a XML file with XML Source Editor. If we want to generate XML file based on a XSD file, we can use Generate Sample XML feature in Visual Studio. For more details, please refer
    to the following steps:
    Click on "XML Schema Explorer" or 'Use the XML Schema Explorer...' to open XML Schema Explorer in Visual Studio. 
    If your Schema file is valid and you are having elements, right-click on element and click on "Generate Sample XML", this functionality generates XML file in temp folder and open ups in the XML Editor.
    The following two document about how to generate XML file based on a XSD file are for your reference:
    http://msdn.microsoft.com/en-us/library/dd489258.aspx
    http://www.codeproject.com/Articles/400016/Generate-Sample-XML-from-XSD
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to generate Trace files

    Hi,
    I have a package under which there are some procedures and functions.
    I am supposed to generate the trace files for each run of the procedures in the package.
    How to generate trace files? Pls help me out.
    Thanks in advance
    Regards,
    Vijay

    I dont have access to production server to see the
    trace file. Is there a way to see the content of the
    trace file from client machine?No. At least there isn't one without additional work from your administrator. I remember I've seen somewhere some kind of solution when user_dump_dest is used as oracle directory (specific oracle object) in your db and then use either external tables or utl_file or something like that to read the trace file. Of course this assumes your DBA should do some work before.
    However I'd say that simply getting trace file from server is much easier :)
    Consider, Autotrace option in sqlplus. With the help
    of Autotrace set option, we can see the trace output
    on the sqlplus screen for the anonymous blocks. Different tool, different behaviour.
    Is there a way to see the trace for the stored
    procedures?Explained above.
    Gints Plivna
    http://www.gplivna.eu

  • How to view .jpeg files in Yosemite

    Am using Yosemite (10.10.2) on my iMac and want to view rather old .jpeg photos. When I attempt to open them, I get an error message saying Photoshop 3.0 is required. When the file titles are displayed in Finder, I can see the little-bitty picture, so I think the Mac knows the picture is there, just reluctant to let me view it.  (I tried using Preview and iPhoto and neither one works for this.)
    Is there some way to view these photos with the existing Mac programs?
    Thank you,
    TBS2

    Thanks for all the replies. I tried to respond to everyone individually, but the rules say I can only post content every 30 seconds. Hence this combined reply.
    Don't have "Quick Look" on my iMac. I did use the "Get Info" option to open all .jpeg files with Preview. Didn't work. Did try to open the files from within Preview using the "Open file" option.
    Tried opening with Firefox (thanks to whomever posted that hint somewhere on the blog) and the Firefox error message says there is an error in the file.
    I am able to open other .jpeg files with Preview, so I am now of the belief there is a problem with the file, not with how my system is handling it.
    Suppose a "fixer" of some kind is in order, but I don't know what that is!
    Thanks again for everyones help.
    TBS2

  • Best Practices:: How to generate XML file from a ResultSet

    Hi all,
    Could someone please suggest the best practices of how to generate an XML file from a resultset? I am developing a web application in Java with Oracle database and one of my tasks is to generate an XML file when the user, for example, click a "download as XML" button on the JSP. The application is basically like an Order with line items. I am using Struts and my first thought has been to have an action class which will extend struts's DownloadAction and through StAX's Iterator API to create an XML file. I intend to have a POJO which will have properties of all columns of my order and line items tables so that for each order I get all line items and:
    1. Write order details then
    2. Through an iterator write line items of that order to an XML file.
    I will greatly appreciate for comments or suggestions on the best way to do this through any pointers on the Web.
    alex

    Use a OracleWebRowSet in which an XML representation of the result set may be obtained.
    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/oracle10g/webrowset/Readme.html
    http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/jcrowset.htm

  • How to generate PDF file through reports using forms 6i

    Hi all,
    I am using oracle 10g with forms 6i and reports 6i.I need to generate pdf file where clicking a button a report should be called and the report should be generated as a .pdf file in the source i have specified(ex. d:\...).Is this popssible with forms?.how can i achieve this.Kindly help me with suitable answers.Thanks :)
    Regards
    Vids

    hi,
    regarding report, there is a dedicated report forum. you should post there.
    but answer for your question is form is nothing to do with the pdf generation. you can call the report from the as usual.
    In the report you should set the properties like
    destype to 'file'
    desname to 'path with file name'
    desformat to 'pdf'

  • How to save JPEG files in PSE5.0 ?

    OK. newby Q again.  how the heck does one know what to choose when it comes to saving an image as a JPEG?  the following three boxes pop up:
    IMAGE OPTIONS:
    QUALITY>
    FORMAT OPTIONS:
    BASELINE>
    PROGRESSIVE>
    SIZE:
    up to 2 MBps?

    Generally, if you're going to archive your photos as Jpegs, you would want to save them in as high a quality as possible. This would be with the slider all the way to the right or number "12".
    Usually "Baseline standard" would be the way to go. This writes the photo in one pass to the screen.
    "Progressive" writes the photo in 3 passes across the screen, and is usually used for uploading and viewing large files within a web page.
    The "size" dialog box you're referring to, gives you the approximate time (in seconds) required to upload the photo with 56.6bps internet. (dial up) At least the time is referenced to dial up internet in PSE5. So the speed dialog box gives you this information, [1st]; size of photo (in KB) [2nd]; time to upload, (in seconds), [3rd], reference internet speed.
    If you plan on re-editing your photos at a later date, you should consider saving in a lossless format. Both PSD and TIFF file formats support saving in layers, and don't "recompress" the file each time it's worked on. "PSD" is Photoshop's native format, so it could be argued that this would be the better of the two. Since a scanner in "lossless" mode would save in TIFF, Photoshop would need to convert those files to PSD. A jpeg file would be better suited to a photo in which the editing process has been finalized, and is heading to the printer, or perhaps Aunt Martha in an Email.
    A final thought is that the quality you use to "jpeg" a file, and the file size itself, is largely purpose dependent. For example a photo that you intend to make public on "Flickr" should be down sized and and jpegged at medium quality. This in the event that the photo is downloaded, your work will not be at full resolution and quality, therefore limiting its usefulness to viewing only. In any event, a photo uploaded to the web absolutely should be a COPY, do not tamper with an original in the manner in which I've just described.

Maybe you are looking for

  • Problem on NetBeans 6.0.1 with Tomcat 6.0.14

    I had to uninstall and reinstall netbeans because at some point I always appeared a message in which I was reported that tomcat 8025 had already started. I closed and reopened the environment without result. In Server uninstall apache and try to put

  • How can I add a new WLC on my network

    Hi there, I have a WLC4404(v4.0.219.0) and several APs on my network. Those APs are belonged to a couple of vlans. I planed to add a new WLC4404(v5.0.148.0) on same network with a old one. I configured the new WLC4404 as a primary controller of the A

  • N80 Restarting "WSOD" when playing large mp4 files

    I love Anime's so I'm converting my "RMVB" or "AVI" video files from my pc to "MP4" so that i can watch in my N80. here is the setting when i convert the files to MP4: Video -resolution is "352x288 (CIF)" -frame rate(FPS) is set to "auto" -Bit rate i

  • How do I edit the default page for when I open a new tab?

    I'd like to know how to set which page appears when I open a new tab. I've already set my home page to what I'd like, but I'm having trouble setting which page appears once I open new tabs while I'm already online.

  • Bug on iBooks and bookstore

    Hey, Yesterday i bought on the iPad a new book and after the download finishes, the book still showing the empty download progress bar, and now I can't open the book or even delete it. What should I do to have this book available to stat reading it?