Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem building jar file with ant

Status
Not open for further replies.

trojan800

Programmer
Nov 27, 2001
53
US
First off, sorry if this is in the wrong forum as I think this may be more a problem with ant and not java, but I am usure of where else to look for help.

I am building an app with Jbuilder 2005 and everything works when I choose to run the program. The problem is when I try to build a jar file using ant. Below is what I get when I run ant:

[rory@localhost rory]$ ant -version
> >>>Apache Ant version 1.5.2-23 compiled on November 12 2003
> >>>[rory@localhost rory]$ cd tsunami/
> >>>[rory@localhost tsunami]$ ant
> >>>Buildfile: build.xml
> >>>
> >>>clean_everything:
> >>> [echo] *** cleanup: removing all files before building
> >>> [delete] Deleting directory /home/rory/tsunami/jars
> >>>
> >>>default:
> >>> [echo] *** building an tsunami distribution
> >>>
> >>>default:
> >>>
> >>>compile_application_classes:
> >>> [echo] *** compile_application_classes: creating application
> >>>class files
> >>> [mkdir] Created dir: /home/rory/tsunami/jars
> >>> [javac] Compiling 125 source files to
> >>>/home/rory/tsunami/application_classes [javac]
> >>>/home/rory/tsunami/src/com/tricon/tsunami/client/ui/desktop/segyheaders/TraceHeaderPanel.java:92:
> >>>error: Type `JSpinner' not found in declaration of field
> >>>`_trace_sequence_number'.
> >>> [javac] private JSpinner _trace_sequence_number
> >>>= new JSpinner();
> >>> [javac] ^
> >>> [javac]
> >>>/home/rory/tsunami/src/com/tricon/tsunami/client/ui/desktop/segyheaders/EBCDICHeaderPanel.java:76:
> >>>error: Type `JTextArea' not found in declaration of field `_textArea'.
> >>> [javac] JTextArea _textArea;
> >>> [javac] ^
> >>> [javac]
> >>>/home/rory/tsunami/src/com/tricon/tsunami/client/ui/desktop/logfileviewer/ProcessMonitor.java:68:
> >>>error: Type `JTextArea' not found in declaration of field `_textArea'.
> >>> [javac] private JTextArea _textArea;
> >>> [javac] ^
> >>> [javac]
> >>>/home/rory/tsunami/src/com/tricon/tsunami/client/ui/desktop/logfileviewer/LogFileViewer.java:77:
> >>>error: Type `JTextArea' not found in declaration of field `_textArea'.
> >>> [javac] private JTextArea _textArea;
> >>> [javac] ^
> >>> [javac]
> >>>/home/rory/tsunami/src/com/tricon/tsunami/client/ui/desktop/GeometryPanel.java:69:
> >>>error: Class or interface `javax.swing.JSpinner.NumberEditor' not
> >>>found in import.
> >>> [javac] import javax.swing.JSpinner.NumberEditor;
> >>> [javac] ^
> >>> [javac]
> >>>/home/rory/tsunami/src/com/tricon/tsunami/client/plot/ZoomControls.java:0:
> >>>internal compiler error: Segmentation fault
> >>> [javac] Please submit a full bug report,
> >>> [javac] with preprocessed source if appropriate.
> >>> [javac] See <URL: for
> >>>instructions.
> >>>
> >>>BUILD FAILED
> >>>file:/home/rory/tsunami/ant/build_tsunami.xml:83: Compile failed; see
> >>>the compiler error output for details.
> >>>
> >>>Total time: 4 seconds
> >>>

The problem appears to be with locating some java objects.

This is what I have poiting to java in my bash-profile

export JAVA_HOME=/home/rory/j2sdk1.4.2_07
export JDK_JARS=/home/rory/j2sdk1.4.2_07/jre/lib

Any ideas why it can find these things in Jbuilder and not with ant? Also I am newbie with using ant, so please let me know if there is anything else I should provide to help you, help me with this problem. Thanks in advance for any and all help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top