Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Contributor
t_kusuma
Posts: 4
Registered: ‎04-01-2011
My Device: 9520 Storm2
My Carrier: vodafone spain

build4.7.xml:17: Java returned: 97

Hi ,

 

 

 

When i run build.xml  my build failed

 

 

 

 

 

 

Buildfile:

 

clean

 

D:\BBNDTV\NDTV\build4.7.xml:

 

build

 

[

 

[rapc] D:\BBNDTV\NDTV\src\com\july\ndtv\customFields\NDTVSubTopNavigation.java: Warning!: Slow compilation due to unused //#preprocess marker.

 

[rapc] D:\BBNDTV\NDTV\src\com\july\ndtv\customFields\PhotoGallery.java: Warning!: Slow compilation due to unused //#preprocess marker.

 

[rapc] Exported static routine: .main(String[]) is multiply defined.

 

[rapc] org.apache.tools.ant.Task: Warning!: No definition found

 

[rapc] org.apache.tools.ant.types.DataType: Warning!: No definition found

 

[rapc] org.apache.tools.ant.types.EnumeratedAttribute: Warning!: No definition found

 

[rapc] java.io.File: Warning!: No definition found

 

[rapc] java.util.List: Warning!: No definition found

 

[rapc] java.util.Map: Warning!: No definition found

 

[rapc] org.apache.tools.ant.types.Path: Warning!: No definition found

 

[rapc] org.apache.tools.ant.types.resources.Union: Warning!: No definition found

 

[rapc] ca.slashdev.bb.tasks.BaseTask: Warning!: Reference to undefined class: org.apache.tools.ant.Task

 

[rapc] java.util.HashMap: Warning!: No definition found

 

[rapc] ca.slashdev.bb.tasks.JadtoolTask: Warning!: Reference to undefined class: java.util.HashMap

 

[rapc] ca.slashdev.bb.tasks.JadtoolTask: Warning!: Reference to undefined class: java.util.Map

 

[rapc] ca.slashdev.bb.tasks.SigtoolTask: Warning!: Reference to undefined class: org.apache.tools.ant.types.resources.Union

 

[rapc] ca.slashdev.bb.tasks.SigtoolTask: Warning!: Reference to undefined class: org.apache.tools.ant.types.resources.Union

 

[rapc] ca.slashdev.bb.types.ApplicationType: Warning!: Reference to undefined class: org.apache.tools.ant.types.DataType

 

[rapc] ca.slashdev.bb.types.CodSetType: Warning!: Reference to undefined class: org.apache.tools.ant.types.DataType

 

[rapc] ca.slashdev.bb.types.CodSetType: Warning!: Reference to undefined class: org.apache.tools.ant.types.resources.Union

 

[rapc] ca.slashdev.bb.types.CodSetType: Warning!: Reference to undefined class: org.apache.tools.ant.types.resources.Union

 

[rapc] ca.slashdev.bb.types.EntryPointType: Warning!: Reference to undefined class: org.apache.tools.ant.types.DataType

 

[rapc] ca.slashdev.bb.types.JdpType: Warning!: Reference to undefined class: org.apache.tools.ant.types.DataType

 

[rapc] java.util.ArrayList: Warning!: No definition found

 

[rapc] ca.slashdev.bb.types.JdpType: Warning!: Reference to undefined class: java.util.ArrayList

 

[rapc] ca.slashdev.bb.types.JdpType: Warning!: Reference to undefined class: java.util.List

 

[rapc] ca.slashdev.bb.types.TypeAttribute: Warning!: No definition found for method: setValue

 

[rapc] ca.slashdev.bb.types.OverrideType: Warning!: Reference to undefined class: org.apache.tools.ant.types.DataType

 

[rapc] ca.slashdev.bb.types.TypeAttribute: Warning!: Reference to undefined class: org.apache.tools.ant.types.EnumeratedAttribute

 

[rapc] com.july.app.engine.connection.FormData: Error!: Missing stack map at label: 69

 

:rapc] Compiling 183 source files to Ndtv_47.cod

 

 

Build failed

 

D:\BBNDTV\NDTV\build4.7.xml:17: Java returned: 97

 

 

 

 

 

 

build.xml

 

<?xml version="1.0" encoding="UTF-8"?>
<project name="Building project" default="build" basedir=".">
	<property name="jde.home" value="D:\Blackberry_Eclipse\eclipse-bb-4.7\plugins\net.rim.eide.componentpack4.7.0_4.7.0.46\components" />
	<property name="sigtool.jde" value="D:\Blackberry_Eclipse\eclipse-bb-4.7\plugins\net.rim.eide.componentpack4.7.0_4.7.0.46\components"/>
	<taskdef resource="bb-ant-defs.xml" classpath="lib/bb-ant-tools.jar" />
	<property name="src.dir" value="src" />
	<property name="lib.dir" value="lib" />
	<property name="signingpassword" value="July123#"/>
	<target name="clean">
		<delete>
			<fileset dir="release\4.7" />
		</delete>
	</target>

	
	<target name = "build" depends="clean">
		<rapc destdir="release\4.7" output="Ndtv_47" defines="NOT_JDE_4_5;JDE_4_7">
			<jdp  title="Ndtv_47" 
				vendor="July Systems" 
				version="1.1" 
				type="cldc" 
				description="Ndtv"
				icon="../../resources/4.7/webclip_icon-corv.png"
				
			/>
			<src>
				<fileset dir="${src.dir}">
					<include name="**/*.java" />
					<include name="**/*.png" />
					<include name="**/*.gif" />
					<include name="**/*.bin" />
				</fileset>
			
				<fileset dir="resources\4.7">
					<include name="**/*.png" />
				</fileset>
				<fileset dir="${lib.dir}">
					<include name="**/*.jar" />
				</fileset>
			</src>
			
		</rapc>
	</target>

	<target name="sign" depends="build">
		<java jar="${sigtool.jde}\bin\SignatureTool.jar" fork="true" dir="release\4.7" failonerror="true">
			<arg line=" -a -c -C  *.cod -p ${signingpassword}" />
		</java>
	</target>


	<target name="ota" depends="sign">
		<jadtool input="release\4.7\Ndtv_47.jad" destdir="release\4.7\ota">
			<fileset dir="release\4.7" includes="*.cod" />
		</jadtool>
	</target>
</project>

 

 

 

 

 

 

I have cross checked jde home which is correct. 

 

 

 

Thanks,

 

kusuma

 

Please use plain text.
Developer
pprasad
Posts: 62
Registered: ‎12-07-2009
My Device: Bold 9000

Re: build4.7.xml:17: Java returned: 97

Have you verified the java classpath?

 

Please use plain text.
New Contributor
t_kusuma
Posts: 4
Registered: ‎04-01-2011
My Device: 9520 Storm2
My Carrier: vodafone spain

Re: build4.7.xml:17: Java returned: 97

yes

 

in env variables i have set it as

  system variable Path :  C:\Program Files\Java\jdk1.6.0_22\bin

i have alspo added path in user variables

 

But still the problem persists.

Please use plain text.
Developer
pprasad
Posts: 62
Registered: ‎12-07-2009
My Device: Bold 9000

Re: build4.7.xml:17: Java returned: 97

Difficult to analyse this.

The error is shown at:

[rapc] com.july.app.engine.connection.FormData: Error!: Missing stack map at label: 69

 

"com.july.app.engine.connection.FormData:" is your own package.

 

Try turning on the verbose="true" option for rapc.

With this you can verify all the paths being used by rapc.

 

 

 

Please use plain text.
Contributor
Sonic_Spring
Posts: 32
Registered: ‎05-18-2011
My Device: BlackBerry 10 Dev Alpha, Blackberry 9700
My Carrier: -

Re: build4.7.xml:17: Java returned: 97

Hello!

Today I had the same problem: build4.6.xml:17: Java returned: 97 (for jde 4.6)

And I fixed it with removing unused *.java file from source folder

Please use plain text.