Problems importing Jar files

Hi
I have tried to implement a sample version of jfreechart which is a component for graphing but unfortunatly there is an error with importing some of the libraries i have added all the . jar files to the Class Path and i have opened the .jar file in net beans so i dont know what the problem is
Problem is with the lines
import org.jfree.ui.ApplicationFrame;
import org.jfree.ui.RefineryUtilities;
It tells me that org/jfree/chart/demo/LineChartDemo1.java [60:1] package org.jfree.ui does not exist
C:\j2sdk1.4.2_03\lib\jfreechart-0.9.16\jfreechart-0.9.16.jar;
C:\j2sdk1.4.2_03\lib\jfreechart-0.9.16\lib\jcommon-0.9.1.jar;
C:\j2sdk1.4.2_03\lib\jfreechart-0.9.16\lib\servlet.jar;C:\j2sdk1.4.2_03\lib\jfreechart-0.9.16\lib\gnujaxp.jar
Refereence at http://www.jfree.org/jfreechart/index.html

Check to make sure that the jar files have the above mentioned classes.
Do a jar -tvf to find the contents of the JAR file.
Next check your classpath entries again. Also adding these libraries to the JDK lib directory will not automatically add them to the classpath. So check to make sure they are added and if you are using an IDE, check the command line the IDE produces (most IDE's do that) to make sure your classes are there in the -classpath option.
Vijay

Similar Messages

  • Import JAR files (integrating JasperReports)

    Dear all,
    I'm using JDeveloper 11.1.1.3.0 on Windows 7 32bit.
    I search this forum and I google a lot, but I couldn't find any workable solution.
    I downloaded the newest version of JasperReport and iReport from the official website. I've done some tutorials from this site and everything seems to work fine.
    Now I want to integrate JDev with JasperReports. I create new Fusion Web Application ADF, I get the properties of Model project, Libraries and Classpath tab, add Library and click New... I set the Library name as JasperReports, location as Project, check Deploy ad Default. I add to Class path every JAR files in E:\JasperReports\jasperreports-3.7.6\lib and to Source path the whole directory E:\JasperReports\jasperreports-3.7.6\src. I get sure that the Export is checked and I save all the changes.
    I create a new Java Class JasperTest and I use this sample code:
    import net.sf.jasperreports.engine.*;
    import net.sf.jasperreports.engine.export.*;
    import java.util.*;
    public class JasperTest {
        public static void main(String[] args) {
            String fileName = "test.jasper";
            String outFileName = "test.pdf";
            HashMap hm = new HashMap();
            try {
                // Fill the report using an empty data source
                JasperPrint print = JasperFillManager.fillReport(fileName, hm, new JREmptyDataSource());
                // Create a PDF exporter
                JRExporter exporter = new JRPdfExporter();
                // Configure the exporter (set output file name and print object)
                exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, outFileName);
                exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
                // Export the PDF file
                exporter.exportReport();
            } catch (JRException e) {
                e.printStackTrace();
                System.exit(1);
            } catch (Exception e) {
                e.printStackTrace();
                System.exit(1);
    }I cant compile this, it gives me Error(1,1): package net.sf.jasperreports.engine does not exist etc..
    I cant import any class from JasperReports. Did I something wrong with importing the JAR files to my project ? Maybe I should set some system environment variable ? What else I can do ?
    Any help will be appraciated.
    Regards,
    Wojtek.

    Hi,
    I am also facing the same problem, I have few Jasper Reports which are closely integrated with my APEX applications, but for this i am using another application ( Jasper reports) which deployed in tomcat. This application hardly have 20 lines of java code, so i thought of embedding same in PL/SQL itself, But i am facing problem while importing JAR files i.e.
    1. Where to put these JAR files so that i can import them in my PL/SQL.
    2. I also tried using JAVALOAD function, but that also not worked for me.
    Please give me some solution how to go about it??

  • How to import .jar files in order to use the classes within this file

    hello guys,
    I'm just wondering how can i import .jar files in order to uses the classes within this file.
    let's take an example:
    i have a folder in which I have many .jar files which contain classes to be called. the full path of this folder is set in the Classpath inside the enviroment variables.
    so does anyone have any idea how can i import these .jar files so i can use the classes?
    thank you.

    Hi,
    My problem is that: I created a Serializable class in a project. And I added this project (first project) to another project (second project). First project is appearing in the second project' s Libraries folder. No problem. I want to create a jar file from second project. i.e. I want to Build second project (I use NetBeans IDE). I am using Build Main Project tab under Run. It is falling out. I am finding it second project' s jar file under its folder. I am clicking on it. But it is NOT WORKING. Do you know WHY. Could you help me please?
    Thanks,

  • Interactive Reporting-Importing jar files

    Hello Experts,
    We have Hyperion Interactive reporting 8.3 installed and I am trying to implement user level restrictions to access the Brio reports, using a dashboard section. We already have a table tab_user where the login_id and password are stored. The user supplied values should be compared with that table values. Problem here is, the password is stored in an encrypted format in the database table. So, in brio also I have to encrypt it and do the comparison with the database password or the other way around. For this, can we import jar files (where the password will be encrypted )in Hyperion??
    If yes, please let me know how to achieve that.
    Also please suggest URL’s that has some complex sample dashboards.
    Let me know if anything is not clear.
    Thanks in avance.

    Hi Wayne,
    We don't need the decrypt routine. We have other applications that also follow the same process to encrypt the string and whatever output I am getting it's matching with those applications.
    When I encrypt the string password with key M&T_reee the encrypted string is *894B11B5A398331FA6C58CD301AAE756*
    I was not able to establish an ODBC connection(where I am processing the stored procedure) from the dashboard.
    When I try following set of commands, it's throwing an error "Script(x):uncaught exception: Internal Error"
    ActiveDocument.Sections["Procedure_qry"].DataModel.Connection.Open("C:\\ODBC_SP_DB.oce")
    ActiveDocument.Sections["Procedure_qry"].DataModel.Connection.SetPassword("test")
    ActiveDocument.Sections["Procedure_qry"].DataModel.Connection.Connect()
    When I connect the query manually using the same oce it's working fine, but I couldn't achieve this thru dashboard.Please advice.
    -Thanks

  • Problems importing .mov file

    I am all of a sudden having problems importing .mov files from my camera in iPhoto '08. Can't get them to import in Image Capture either...On the import preview screen, all that comes up are empty "boxes". If I highlight one of the boxes, it shows that it is .mov file, the size of the file, etc. but if i try to do the import, iPhoto just locks up.

    iPhoto does not like very large movie files for importing directly from the camera. If you get it on the desktop you should be able to import it. I've imported 200MB movies with no problem.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Problems importing raw files into Lightroom 3.4

    I've just dowloaded lightroom 3.4 and now I'm having problems importing raw files into lightroom.  I havent had a problem before.  Can anyone help me?  My camera is a Nikon D7000.

    Perhaps a few more details are required. Take a look at the FAQ "How to get help quickly"

  • Im having problems importing prores files at correct frame rate

    im having problems importing prores files at correct frame rate. they have been converted to prores at 25fps but on importing they appear in fcp as 30fps. any help would be appreciated.

    I don't know anything about Wondershare. But it seems something may have got messed up in the conversion. Or maybe there is an identifier on the converted clip that has FCP confused and it really is 25 fps.
    To begin, your sequence settings don't match your clips. You want a Pro Res sequence. Let FCP set this automatically by dragging a Pro Res to an empty sequence and when gives you a message asking whether you want the sequence to match the clips, click yes. Then hit command 0 again and see whether the frame rate is set at 30 or 25.
    If it really is 30, then it will need to be converted and re-imported. It can be done in Compressor or in Cinema Tools. If you have used Cinema Tools before, great. Of not, I'll defer to others because it's been a while and I don't want to mess you up.
    Good luck.
    Russ

  • Importing .jar file into WSAD512?

    how to import executable jar file into WSAD workspace.
    I am trying to import .jar file,but there is no option to import jar file.
    any help...

    I have never had any trouble importing any kind of a file into a WSAD workspace. The file import function doesn't care what kind of files you import.

  • Have AE7; Problem importing prproj file into pc; get placeholder instead. What do I need to do to open up the video files here. They are .mov in quicktime.

    Have AE7; Problem importing prproj file into pc; get placeholder instead. What do I need to do to open up the video files here. They are .mov in quicktime.

    Please be more specific. What Premiere project? What version of Premiere? Which operating system? What CoDecs do the QT fiels use? Are all the video files in the correct folders inside the Premiere project structure? Your description sounds like you are attempting to open a Mac based project on a PC and your video files are either in the wrong location or use a Mac-specific CoDec, hence they cannot be read on a PC.
    Mylenium

  • Problem downloading JAR files after PIX 7.2(3) upgrade

    Hello, I have upgraded a PIX 515 Firewall from Version 6.3(4) to
    7.2(3) and am now experiencing problems downloading .jar files from
    some web servers. I have tried disabling the "inspect http" option but
    still not joy. I also tryied this:
    http://www.cisco.com/warp/public/110/pix-asa-70-browse.pdf
    But no luck.
    Have anyone had similar problems.
    Thanks in advance.

    1. Turn router off for 30 seconds and on again
    2. Settings>General>Reset>Reset Network Settings
    3. Settings>General>Reset>Reset All Settings

  • Problems importing .mp3 files to itunes

    I'm having problems importing .mp3 files to itunes, it's importing the song name tage with "artist - song title" when it should just be the song title?

    Chad, 
    Glad to hear that Steve's script was helpful.
    As to the bug, I don't know.  The problem you report is not common.  Usually when iTunes displays artist-title in the Name field, it is either an untagged MP3 or a WAV file, but in those cases it does not correct itself when you give it a kick.  Between that and the non-refresh problem you report, I think there is something else going on besides a tagging issue.  At your convenience, you may want to reinstall the newest iTunes, and see if it helps.
    Anyway, enjoy the music!
    Ed

  • Which folder shall I put, when I import Jar file in the Apache?

    Hi,
    I m meeting a problem:
    I need to import javax package in the jsp page, and I copy the relevant Jar file into WEB-INFO/lib folder, but it doesn't work: i execute the page in the IE explorer that is showed "import javax package is not found".
    I don't the reason. Who can help me ? Urgent!
    Thank you
    Andrew

    There is no "javax" package. However, there are quite a few "javax.something" packages. You have to give the whole package name to import it, you can't import a group of packages generically.

  • EPA file import jar file

    Hi all,
      Does someone have the jar file required for importing an EPA file?
    Where can I find the API <b> com.sapportals.portal.transport.ui.*</b>?
    Any help will definitely be rewarded.
    Thanks & Regards,
    M.Subathra

    Hi Subathra,
      Please refer the thread
    <a href="https://www.sdn.sap.com/irj/sdn/thread?threadID=128785">https://www.sdn.sap.com/irj/sdn/thread?threadID=128785</a>
    Same problem is discussed here..
    Hope this helps...
    Regards,
    Sharadha

  • Problem Importing CR2 Files in Aperture 1.5.6

    I recently shot a number of pictures at my sister's wedding using my Canon Digital Rebel XTi. I am now trying to import the RAW files into Aperture (ver. 1.5.6). Aperture will recognize the compact flash card and display the files on the card. When I try to import the files, however, Aperture seems to go through the process of importing the files (the little timer dial runs etc.) but at the end of the import process the pictures do not appear in my project. What could be the problem? I am able to copy the files onto a folder on my desktop but Aperture will not import these files even from that folder. Help!

    gah hey im having this problem too
    and it all worked last week <?>
    formatted flash drive on camera.
    downloaded photos from a file reader via flash drive.
    camera = canon mk3ds eos
    can see previews in apeture (2.1.2) but large image on browser is unsupported.
    error message "unsupported image format".
    have tried downloading them again and importing them again etc.
    both straight into apeture and via hard drive folder.
    but it worked last week?
    bit upset i love aperture and my new camera now nothing is working well
    for info i loaded up canon photo professional which is canons own brand image processor (which is a bit rubbish imho) and the images worked on that.
    they will not import to photoshop (an old version)

  • Problem importing ics files into iCal

    Importing ics files into iCal is the problem, but first here is the background on why I'm trying to import.
    I have an iMac and iPad, and recently changed my iPhone 3G for an iPhone 4S.  Having got the iPhone 4S I have now set up all my devices to use iCloud.  In moving iCal to iCloud an extra calendar was created "automatically" in iCal, called "Me".  This "Me" calendar contains a partial duplicate of my main calendar, which is called "My Calendar".  In fact, some of the events from "My Calendar" seem to have been moved to "Me", and some have been duplicated.
    It seems as it I now need to merge the "Me" and "My calendar" calendars to get back to where I was.
    I have tried to export one of the calendars and then re-import it into the other.  The export seems to work fine, but every single time I try to re-import the ics file iCal crashes at the end of the import process, and the import is not completed.
    Can anyone help?  This has been driving me absolutely crazy today!
    I even tried manually moving events from one calendar to another, but they reappeared.  I think this was because my iPhone/iPad were re-syncing via iCloud and overwriting the changes I had just made.
    I don't mind if I end up with one calendar with duplicates as I can remove them with iCal Dupe Deleter.
    Or if there are any other alternative solutions I'd love to hear them!
    All help greatly appreciated!
    (P.S. Is it just me, or is Apple software slowly getting as unreliable as Windows used to be?  I get more problems with software updates now than when I first got a Mac about 8 years ago!)

    Not a great answer but I dragged the attachment either to the finder - app - ical or the icon. It placed it on the calendar. I clicked in and accepted. So, no auto populate. Need to drag and drop. So glad I paid the 20 bucks to upgrade to 10.8

Maybe you are looking for

  • NFe por Local de Negócios - Atribuição SD e MM

    Olá, Em nossa empresa temos vários Locais de Negócios, que também sáo várias Company Codes. Exemplo: CompCode 01 Local Negócios 01 CompCode 02 Local Negócios 02 Temos que implementar a NFe em apenas alguns Locais de Negócios, não em todos. O porém é

  • Links that open a new window with javascript:void(null); do not work in 3.1

    I've been noticing that any site I go to that opens content in a new window with "javascript:void(null);" will be ignored by Safari 3.1. The links work in Firefox and used to work in Safari as well. Any suggestions?

  • Mail Server and SMTP Configuration (Leopard Server)

    Hello, Our setup: Mac OS X SERVER 5.2 - LEOPARD SERVER PowerPC G5 Orange Internet connection via a router / DHCP We try to find such assistance in configuring your Mac book OS Server at your service. We set our server with a local area "domaine.intra

  • Text Missing from SWF in Captivate Slide

    I inserted an SWF on my first slide in my presentation. When I press F3, it works great. When I press F4 to preview the project, the file plays but the text that is within this file, is not visible. I have changed backgrounds and transparencies, and

  • SharePoint Server 2007 - Quick Way to Create Lists

    Hello, we are running an 'Issue Log' SP list site where we have issues mainly resolved over email and phone, which means the issue log is more of a 'Resolution Log'. I'm trying to come up with a more inventive way to add issues to this list in realti