[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: javac problem compiling a new .deb



Is this package destined for Debian? Has a free JVM been attempted?

On Thu, 20 Jan 2005 17:13:23 +0100, Paolo Ariano wrote:

> Hi *
> 
> i'm trying to pack a new .deb based on java software but the dpkg-build 
> return me:
> 
> cd source && /usr/java/jdk1.5.0_01/bin/java -classpath 
> /usr/share/ant1.6/lib/ant.jar:/usr/share/ant1.6/lib/ant-launcher.jar  
> -Dant.home=/usr/share/ant1.6 org.apache.tools.ant.Main 
> -Dcompile.debug=true -Dcompile.optimize=true  build
> Buildfile: build.xml
> 
> compile:
>     [mkdir] Created dir: /home/paolo/Devel/imagej-1.33/source/build
>     [javac] Compiling 221 source files to 
> /home/paolo/Devel/imagej-1.33/source/build
> 
> BUILD FAILED
> /home/paolo/Devel/imagej-1.33/source/build.xml:9: Unable to find a javac 
> compiler;
> com.sun.tools.javac.Main is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK
> 
> Total time: 4 seconds
> make: *** [debian/stamp-ant-build] Error 1
> ____________________________________________________________________________________________
> 
> can't understand were is the problem i've installed sun-j2sdk1.5debian 
> and all
> seems to be ok /usr/bin/java and javac in my debian/rules there is:
> 
> #!/usr/bin/make -f
> # debian/rules for imagej (uses CDBS)
> 
> # Uncomment this to turn on verbose mode.
> export DH_VERBOSE=1
> 
> include /usr/share/cdbs/1/rules/debhelper.mk
> include /usr/share/cdbs/1/class/ant.mk
> include /usr/share/cdbs/1/rules/simple-patchsys.mk
> 
> DEB_BUILDDIR                    := source
> DEB_ANT_BUILD_TARGET := build
> #JAVA_HOME                      := /usr/java/jdk1.5.0_01
> #JAVA_HOME_DIRS               := /usr/java/jdk1.5.0_01
> JAVACMD                             := /usr/bin/java
> ANT_HOME                          := /usr/share/ant1.6
> DEB_CLASSPATH               := 
> $(ANT_HOME)/lib/ant.jar:$(ANT_HOME)/lib/ant-launcher.jar
> 
> common-install-impl::
>     /usr/bin/install -m 644 $(DEB_BUILDDIR)/ij.jar \
>       debian/imagej/usr/share/java/
>     /usr/bin/install -m 755 debian/imagej.sh \
>       debian/imagej/usr/bin/imagej
> ___________________________________________________________________________________________
> 
> 
> and the build.xml contain:
> 
> <project name="ImageJ" default="run">
> 
>   <target name="compile" description="Compile everything.">
>     <!-- First, ensure the build directory exists. -->
>     <mkdir dir="build" />
>     <!-- Build everything; add debug="on" to debug -->
>     <javac srcdir="." destdir="build" optimize="on" debug="on" target="1.1">
>       <!-- The plugins directory only needs to be present at runtime,
>            not at build time. -->
>       <exclude name="plugins/*" />
>     </javac>
>   </target>
> 
> can't understand where is the problem
> thanks
> paolo




Reply to: