Hi,

I'm sorry but Java 5 is no longer supported. I will update the
documentation.

Regards,
Thomas



On Mon, Mar 11, 2013 at 6:22 PM, Adam B <[email protected]> wrote:

> Hello all,
>
> The official build instructions (http://www.h2database.com/html/build.html)
> seem to indicate that Java 1.5 is still supported.  Is this still true?
>  I'm unable to build on Sun Java 1.5.0_15 (Don't ask me why we're using
> such an old version).
>
> AFAIK java.util.Arrays.copyOf() is a 1.6 API.  The build errors follow.
>
> *$ ./build.sh jar*
> Target: jar
> Deleting temp
> Deleting docs
> Compiling 569 classes
> src/main/org/h2/mvstore/type/ObjectType.java:89: method does not override
> a method from its superclass
>     @Override
>      ^
> src/main/org/h2/mvstore/type/ObjectType.java:94: method does not override
> a method from its superclass
>     @Override
>      ^
> src/main/org/h2/mvstore/type/ObjectType.java:99: method does not override
> a method from its superclass
>     @Override
>      ^
> src/main/org/h2/mvstore/type/ObjectType.java:104: method does not override
> a method from its superclass
>     @Override
>      ^
> src/main/org/h2/mvstore/type/ObjectType.java:149: method does not override
> a method from its superclass
>     @Override
>      ^
> src/main/org/h2/mvstore/type/ObjectType.java:209: method does not override
> a method from its superclass
>     @Override
>      ^
> src/main/org/h2/mvstore/type/ObjectType.java:352: method does not override
> a method from its superclass
>         @Override
>          ^
> src/main/org/h2/mvstore/type/ObjectType.java:357: method does not override
> a method from its superclass
>         @Override
>          ^
> src/main/org/h2/mvstore/type/ObjectType.java:368: method does not override
> a method from its superclass
>         @Override
>          ^
> src/main/org/h2/mvstore/type/ObjectType.java:373: method does not override
> a method from its superclass
>         @Override
>          ^
> src/main/org/h2/mvstore/type/ObjectType.java:378: method does not override
> a method from its superclass
>         @Override
>          ^
> src/main/org/h2/mvstore/type/ObjectType.java:402: method does not override
> a method from its superclass
>         @Override
>          ^
> src/main/org/h2/mvstore/type/ObjectTypeFactory.java:15: method does not
> override a method from its superclass
>     @Override
>      ^
> src/main/org/h2/mvstore/type/ObjectTypeFactory.java:20: method does not
> override a method from its superclass
>     @Override
>      ^
> src/main/org/h2/mvstore/type/ObjectTypeFactory.java:30: method does not
> override a method from its superclass
>     @Override
>      ^
> src/main/org/h2/mvstore/Page.java:438: cannot find symbol
> symbol  : method copyOf(long[],int)
> location: class java.util.Arrays
>                 children = Arrays.copyOf(children, children.length);
>                                  ^
> src/main/org/h2/mvstore/Page.java:439: cannot find symbol
> symbol  : method copyOf(org.h2.mvstore.Page[],int)
> location: class java.util.Arrays
>                 childrenPages = Arrays.copyOf(childrenPages,
> childrenPages.length);
>                                       ^
> src/main/org/h2/mvstore/Page.java:447: cannot find symbol
> symbol  : method copyOf(long[],int)
> location: class java.util.Arrays
>                 counts = Arrays.copyOf(counts, counts.length);
>                                ^
> src/main/org/h2/mvstore/Page.java:464: cannot find symbol
> symbol  : method copyOf(java.lang.Object[],int)
> location: class java.util.Arrays
>             keys = Arrays.copyOf(keys, keys.length);
>                          ^
> src/main/org/h2/mvstore/Page.java:485: cannot find symbol
> symbol  : method copyOf(java.lang.Object[],int)
> location: class java.util.Arrays
>             values = Arrays.copyOf(values, values.length);
>                            ^
> src/main/org/h2/mvstore/MVStoreTool.java:64: load(java.io.InputStream) in
> java.util.Properties cannot be applied to (java.io.StringReader)
>             prop.load(new StringReader(new String(header, "UTF-8")));
>                 ^
> src/main/org/h2/mvstore/rtree/SpatialType.java:40: method does not
> override a method from its superclass
>     @Override
>      ^
> src/main/org/h2/mvstore/rtree/SpatialType.java:60: method does not
> override a method from its superclass
>     @Override
>      ^
> src/main/org/h2/mvstore/rtree/SpatialType.java:65: method does not
> override a method from its superclass
>     @Override
>      ^
> src/main/org/h2/mvstore/rtree/SpatialType.java:70: method does not
> override a method from its superclass
>     @Override
>      ^
> src/main/org/h2/mvstore/rtree/SpatialType.java:89: method does not
> override a method from its superclass
>     @Override
>      ^
> src/main/org/h2/mvstore/rtree/SpatialType.java:108: method does not
> override a method from its superclass
>     @Override
>      ^
> 27 errors
> Exception in thread "main" java.lang.RuntimeException: An error occurred
>     at org.h2.build.BuildBase.javac(BuildBase.java:864)
>     at org.h2.build.Build.compile(Build.java:179)
>     at org.h2.build.Build.compile(Build.java:90)
>     at org.h2.build.Build.jar(Build.java:356)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:585)
>     at org.h2.build.BuildBase.invoke(BuildBase.java:241)
>     at org.h2.build.BuildBase.runTarget(BuildBase.java:207)
>     at org.h2.build.BuildBase.run(BuildBase.java:188)
>     at org.h2.build.Build.main(Build.java:35)
>
>
>
>
> Thanks
> - Adam B.
>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/h2-database?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to