Menu

Can I use it with JRE 1.4.2?

Help
nij
2006-04-10
2013-04-02
  • nij

    nij - 2006-04-10

    I am looking for a tool like this. Is it OK to use it with JRE 1.4.2?

    Thanks.

     
    • Stepan RYBAR

      Stepan RYBAR - 2006-04-11

      Hi!

      I do not think so. Dbsql2xml uses DOM, XSLT and XPath features (named JAXP) built-in JRE. And these features are default built-in since JRE 1.5.0, at least as far as I know. This is because I did not want to pack aditional XML jars like Xalan, Xerces etc and I hoped, that 1.5.x is old enough to be present on up-to-date systems. And also I was too lazy to develope it for older Java.

      I read somewhere, that there is some JAXP from Sun, which can be installed into 1.4.x and then behaves as 1.5.0, but I have no experience with this.

      Stepan

       
    • Allen Fogleson

      Allen Fogleson - 2007-10-04

      If you use the JAXP package you should be able to use this with JDK1.4 you will also have to remove the jdk 1.5 specific features in the code. Primarily the line
        private HashMap<String,String> globalVariables = new HashMap<String,String>();

      will have to be changed to
        private HashMap globalVariables = new HashMap();

      I'm in the process of testing this with JDK 1.4 myself as I may have to run it in 1.4. All things being equal it should work fine with JAXP on 1.4.

      Al

       
    • Allen Fogleson

      Allen Fogleson - 2007-10-04

      I also thing Xinclusion is not supported in JAXP for 1.4.

       
    • Allen Fogleson

      Allen Fogleson - 2007-12-03

      I have just uploaded to cvs the source code with changes to allow dbsql2xml to work with JDK 1.4 using jaxp and saxon for xpath. It also has undocumented support for prepared statements instead of just statements. I will work on getting documentation in place for prepared statement usage. Next on the list is running through the code to ensure thread safety. There are a couple of minor fixes also in the code:

      1) code is now in proper packages and Xpath is split out into a helper class.
      2) code now builds with Maven 2.0 so building is as easy as grabbing the code, (and maven 2 if not already installed), and typing mvn package.

      HTH some folks,
      Al

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.