Menu

#633 Obsolete gnujaxp.jar distributed with JFreeChart

1.0.x
closed-wont-fix
General (896)
5
2006-05-25
2006-05-24
Anonymous
No

The version of gnujaxp.jar distributed with JFreeChart
is obsolete or at least not compatible with
java.util.prefs.Preferences .

Compile and run the following stub [end of submission]
with and without that jar in the classpath. With, you
get Malformed XML error messages and the preferences
file is removed. Without everything is OK.

I downloaded
ftp://mirrors.usc.edu/pub/gnu/classpathx/jaxp-1.3.tar.gz
and the version of the jar file that I got after the
usual configure and build process was over twice as
large, and appears to work fine.

Thank you - Andrew Lazarus andrew@pillette.com

/*
* PreferencesTest.java
*
/

package com.pillette.analysis.ui;

import java.util.prefs.Preferences;

/**
*
* @author andrew
*/
public class PreferencesTest {

/** Creates a new instance of PreferencesTest */
public PreferencesTest() {
}

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
PreferencesTest pt = new PreferencesTest();
final java.util.prefs.Preferences userprefs =
java.util.prefs.Preferences.userNodeForPackage(pt.getClass());

System.err.println(userprefs.get("LastPriceFile",
"/usr/pim/dbscripts/today.txt"));
userprefs.put("LastPriceFile", new
java.util.Date().toString());
}

}

Discussion

  • David Gilbert

    David Gilbert - 2006-05-25
    • assigned_to: nobody --> mungady
    • status: open --> closed-wont-fix
     
  • David Gilbert

    David Gilbert - 2006-05-25

    Logged In: YES
    user_id=112975

    Thanks for the report. We use gnujaxp.jar only to provide
    XML support on JRE1.3. For JRE1.4 or later, you should
    leave gnujaxp.jar out of your classpath, because the same
    API is provided in the standard Java libraries.

     

Log in to post a comment.