Results 1 to 11 of 11
  1. #1
    chaits86 is offline Member
    Join Date
    Dec 2008
    Posts
    6
    Rep Power
    0

    Default Incorrect Package? Help!

    Using NetBeans 6.1, get Incorrect Package at " package org.jfree.chart.demo;"
    Where and how to include this package?

  2. #2
    Echilon Guest

    Default

    Have you downloaded the package?

  3. #3
    chaits86 is offline Member
    Join Date
    Dec 2008
    Posts
    6
    Rep Power
    0

    Default

    Quote Originally Posted by Echilon View Post
    Have you downloaded the package?
    yes i have downloaded, added all the jars required. but still the same.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by chaits86 View Post
    yes i have downloaded, added all the jars required. but still the same.
    Did you attach that jar file to the class file through the NetBeans, if yes how?

    Can you copy-paste the full error message here to see.

  5. #5
    chaits86 is offline Member
    Join Date
    Dec 2008
    Posts
    6
    Rep Power
    0

    Default

    Quote Originally Posted by Eranga View Post
    Did you attach that jar file to the class file through the NetBeans, if yes how?

    Can you copy-paste the full error message here to see.
    Also get a tool tip at:
    package org.jfree.chart.demo; which says "Incorrect Package".

    Exactly the error message:

    Exception in thread "main" java.lang.NoSuchMethodError: org.jfree.chart.JFreeChartInfo.setLibraries(Ljava/util/List;)V
    at org.jfree.chart.JFreeChartInfo.<init>(Unknown Source)
    at org.jfree.chart.JFreeChart.<clinit>(Unknown Source)
    at org.jfree.chart.ChartFactory.createTimeSeriesChart (Unknown Source)
    at org.jfree.chart.demo.TimeSeriesDemo.createChart(Ti meSeriesDemo.java:32)
    at org.jfree.chart.demo.TimeSeriesDemo.<init>(TimeSer iesDemo.java:25)
    at org.jfree.chart.demo.TimeSeriesDemo.main(TimeSerie sDemo.java:106)

  6. #6
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    I'm asking that again, did you add them to Java class path?

    yes i have downloaded, added all the jars required. but still the same.
    where?

  7. #7
    chaits86 is offline Member
    Join Date
    Dec 2008
    Posts
    6
    Rep Power
    0

    Default

    Quote Originally Posted by Eranga View Post
    I'm asking that again, did you add them to Java class path?



    where?
    I added the jars in the Libraries. well u mean adding them to environment variables, like no, not all. Do I need to? jfreechart-1.0.10 is already added there. So do I have to also add the other jar files locations in the environment variables? like do the set path="....path".

  8. #8
    chaits86 is offline Member
    Join Date
    Dec 2008
    Posts
    6
    Rep Power
    0

    Default

    Previously I used to add the jars to the Libraries all used to work fine. But here somehow its not working. Also resolved all the reference problems n specified all the paths.

  9. #9
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Is that document explain any other package import with this package? Or on which class it should import.

  10. #10
    chaits86 is offline Member
    Join Date
    Dec 2008
    Posts
    6
    Rep Power
    0

    Default

    Quote Originally Posted by Eranga View Post
    Is that document explain any other package import with this package? Or on which class it should import.
    Just a tool-tip error message "Incorrect Package" here on this line "package org.jfree.chart.demo; " and the huge error I previously posted.

  11. #11
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    What the package name of your project? If you have a specific one how can you add another package like this. You must import them.

    Can you post the complete class you comes with the error message.

Similar Threads

  1. package mj does not exist
    By PzK in forum New To Java
    Replies: 8
    Last Post: 12-03-2008, 10:30 PM
  2. Dubugger points to incorrect source code
    By gdias in forum Eclipse
    Replies: 0
    Last Post: 09-02-2008, 08:07 PM
  3. JXL Package
    By gaya3 in forum Java Servlet
    Replies: 1
    Last Post: 05-23-2008, 09:03 AM
  4. Package Explorer
    By bilmeze in forum Eclipse
    Replies: 0
    Last Post: 04-04-2008, 08:57 AM
  5. Elements package
    By BlitzA in forum New To Java
    Replies: 0
    Last Post: 12-27-2007, 11:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •