PhilipNCG Staniforth Guest
|
Posted: Tue Oct 25, 2005 8:58 pm Post subject: Can't compile Sun samples using JBuilder 2005 |
|
|
Hi,
I'm fighting to get JBuilder 2005 to compile and execute code samples from
Sun. In the main the compiler errors indicate missing symbols for both code
samples. The code samples are JavaSoundDemo and those with the commapi.
I'm creating new projects and including all the source code then making,
rebuilding and running. In general the errors come about when making and
attempting to execute since that remakes the files. Few classes build
without error and produce java code.
I have checked and rechecked the location for the supplied dll, jar and
..properties files and possibly have them in other places to to cover the
options. I've tried to explicitly include references to the jar files that
come with the samples thinking that there's some important library missing.
I can run the bytecode as supplied so it seems that the environment is
close to being what it should though not entirely right since the
serialDemo does not see the PC's ports and the soundDemo does not show any
midi voices.
I am aware that the CLASSPATH needs setting up by pointing to the
directories with the .jars located. I'm not sure if the CLASSPATH requires
the .jar in the path statement.
I had some luck trying to get this working and at one point the SerialDemo
seemed to work after altering the CLASSPATH. Chasing a similar result for
the JavaSoundDemo I have the sound demo running but the Serial demo doesn't
work now!
I'm not sure what changed and all attepts seem to fail.
I note that the JavaSoundDemo requires the classes unpacking from the .jar.
I assume that the unpacked classes should go in a directory in the
CLASSPATH and probably best in the project /classes directory. Is this
right?
I feel certain that there's a problem finding the javax libraries and
something is wrong with CLASSPATH.
I'd like to start using these samples as the basis of experiemntation and
development activity.
Please shed some light on what I'm doing wrong.
Cheers,
Philip
The error lists from SerialDemo is thus...
< Build completed with 35 errors, 2 warnings and 6 files
built.
"PortRequestedDialog.java": cannot find symbol; symbol : class SerialDemo,
location: class PortRequestedDialog at line 45, column 13
"PortRequestedDialog.java": cannot find symbol; symbol : class SerialDemo,
location: class PortRequestedDialog at line 53, column 32
"PortRequestedDialog.java": operator + cannot be applied to
SerialDemo.getLocationOnScreen.x,int at line 81, column 50
"PortRequestedDialog.java": operator + cannot be applied to
SerialDemo.getLocationOnScreen.y,int at line 82, column 50
"PortRequestedDialog.java": cannot find symbol; symbol : method
setLocation(<nulltype>,<nulltype>), location: class PortRequestedDialog at
line 81, column 9
"SerialConnection.java": cannot find symbol; symbol : class SerialDemo,
location: class SerialConnection at line 45, column 13
"SerialConnection.java": cannot find symbol; symbol : class
SerialParameters, location: class SerialConnection at line 49, column 13
"SerialConnection.java": cannot find symbol; symbol : class SerialDemo,
location: class SerialConnection at line 70, column 29
"SerialConnection.java": cannot find symbol; symbol : class
SerialParameters, location: class SerialConnection at line 71, column 29
"SerialConnection.java": cannot find symbol; symbol : class
SerialConnectionException, location: class SerialConnection at line 90,
column 40
"SerialConnection.java": cannot find symbol; symbol : class
SerialConnectionException, location: class SerialConnection at line 167,
column 50
"SerialConnection.java": cannot find symbol; symbol : class
SerialConnectionException, location: class SerialConnection at line 97,
column 23
"SerialConnection.java": cannot find symbol; symbol : class
SerialConnectionException, location: class SerialConnection at line 107,
column 23
"SerialConnection.java": cannot find symbol; symbol : class
SerialConnectionException, location: class SerialConnection at line 114,
column 18
"SerialConnection.java": cannot find symbol; symbol : class
SerialConnectionException, location: class SerialConnection at line 126,
column 23
"SerialConnection.java": cannot find symbol; symbol : class
SerialConnectionException, location: class SerialConnection at line 140,
column 23
"SerialConnection.java": cannot find symbol; symbol : class
SerialConnectionException, location: class SerialConnection at line 188,
column 23
"SerialConnection.java": setFlowControlMode(int) in javax.comm.SerialPort
cannot be applied to (boolean) at line 193, column 19
"SerialConnection.java": cannot find symbol; symbol : class
SerialConnectionException, location: class SerialConnection at line 196,
column 23
"SerialConnection.java": cannot find symbol; symbol : class
PortRequestedDialog, location: class SerialConnection at line 302, column
13
"SerialConnection.java": cannot find symbol; symbol : class
PortRequestedDialog, location: class SerialConnection at line 302, column
43
"SerialDemo.java": cannot find symbol; symbol : class SerialParameters,
location: class SerialDemo at line 71, column 13
"SerialDemo.java": cannot find symbol; symbol : class SerialConnection,
location: class SerialDemo at line 72, column 13
"SerialDemo.java": cannot find symbol; symbol : class SerialParameters,
location: class SerialDemo at line 104, column 26
"SerialDemo.java": cannot find symbol; symbol : class SerialConnection,
location: class SerialDemo at line 178, column 26
"SerialDemo.java": cannot find symbol; symbol : class AlertDialog,
location: class SerialDemo at line 206, column 17
"SerialDemo.java": cannot find symbol; symbol : class AlertDialog,
location: class SerialDemo at line 206, column 38
"SerialDemo.java": cannot find symbol; symbol : class
SerialConnectionException, location: class SerialDemo at line 261, column
22
"SerialDemo.java": cannot find symbol; symbol : class AlertDialog,
location: class SerialDemo at line 262, column 17
"SerialDemo.java": cannot find symbol; symbol : class AlertDialog,
location: class SerialDemo at line 262, column 38
"SerialDemo.java": [deprecation]
save(java.io.OutputStream,java.lang.String) in java.util.Properties has
been deprecated at line 341, column 18
"SerialDemo.java": cannot find symbol; symbol : class AlertDialog,
location: class SerialDemo.ConfigurationPanel at line 585, column 21
"SerialDemo.java": cannot find symbol; symbol : class AlertDialog,
location: class SerialDemo.ConfigurationPanel at line 585, column 42
"SerialDemo.java": cannot find symbol; symbol : class
SerialConnectionException, location: class SerialDemo.ConfigurationPanel at
line 599, column 26
"SerialDemo.java": cannot find symbol; symbol : class AlertDialog,
location: class SerialDemo.ConfigurationPanel at line 602, column 21
"SerialDemo.java": cannot find symbol; symbol : class AlertDialog,
location: class SerialDemo.ConfigurationPanel at line 602, column 42
There have been deprecation warnings. Please consult the documentation for
a better alternative.
|
|