|
From: Leif M. <le...@ta...> - 2005-07-16 01:08:26
|
Gnana,
This appears to be a change in the way Java 1.5 handles compiling.
I specify a target JVM of 1.2 in the build file but was not specifying
the source.
I fixed this for the next release, but for now, open your build.xml file
into an
editor. Search for the javac task, there are a couple instances in the
file.
Modify them as follows, adding the source="1.2" attribute to each one:
<javac srcdir="${src.dir}/java" destdir="${build.classes}"
deprecation="on"
debug="on"
optimize="on"
source="1.2"
target="1.2"> <!-- The 1.2 target is done so we work with
older JVMs -->
<classpath refid="project.class.path"/>
</javac>
That should fix it for you. It would also work if you used Java 1.4 to
build.
Cheers,
Leif
Subramani, GnanaShekar (GE Healthcare, non-ge) wrote:
> Hi,
>
>
>
> I want to use the Java Service Wrapper for Solaris Intel. Since there
> was no binary readily available I downloaded the source and ran the
> build.sh. I got the following error.
>
>
>
> /apps/jboss/wrapper_3.1.2_src
>
> -bash-3.00$ ./build.sh
>
>
>
> Wrapper Build System
>
> --------------------
>
> Buildfile: build.xml
>
>
>
> init:
>
> OS='SunOS'
>
>
>
> update-info:
>
> Copying 1 file to
> /apps/jboss/wrapper_3.1.2_src/src/java/org/tanukisoftware/wrapper
>
> Copying 1 file to /apps/jboss/wrapper_3.1.2_src/src/c
>
>
>
> compile-java:
>
> Compiling 41 source files to /apps/jboss/wrapper_3.1.2_src/build/classes
>
> javac: target release 1.2 conflicts with default source release 1.5
>
>
>
> BUILD FAILED
>
> /apps/jboss/wrapper_3.1.2_src/build.xml:206: Compile failed; see the
> compiler error output for details.
>
>
>
> Total time: 1 second
>
>
>
> Request you to help / suggest.
>
>
>
> Thanks & Regards,
>
> -GnanaShekar-
>
|