Another Thread About Compiling
I'm having problems compiling some java source files, and after scouring these forums and doing countless google searches I can't seem to get this figured out.
The source files are divided into two packages: tic, and tic.event. As such, the directory structure is a folder called "tic" that contains several source files and a .jar file and another folder "event" which contains the remaining source files.
Here's the command I've been trying to use:
>javac -classpath /home/tic:/home/tic/event:/home/tic/pircbot.jar tic/*.java tic/event/*.java
And I'm getting a ton of undefined symbol errors:
tic/event/Message.java:6: cannot resolve symbol
symbol : class TargetEvent
location: class tic.event.Message
public abstract class Message extends TargetEvent {
^
tic/event/ChannelEvent.java:6: cannot resolve symbol
symbol : class TargetEvent
location: class tic.event.ChannelEvent
public class ChannelEvent extends TargetEvent {
^
tic/event/Finger.java:6: cannot resolve symbol
symbol : class TargetEvent
location: class tic.event.Finger
public class Finger extends TargetEvent {
^
tic/event/NickChange.java:6: cannot resolve symbol
symbol : class TargetEvent
location: class tic.event.NickChange
public class NickChange extends TargetEvent {
^
tic/event/Notice.java:6: cannot resolve symbol
symbol : class TargetEvent
location: class tic.event.Notice
public class Notice extends TargetEvent {
^
tic/event/Ping.java:6: cannot resolve symbol
symbol : class TargetEvent
location: class tic.event.Ping
public class Ping extends TargetEvent {
^
tic/event/Quit.java:6: cannot resolve symbol
symbol : class SourceEvent
location: class tic.event.Quit
public class Quit extends SourceEvent {
^
tic/event/UserMode.java:6: cannot resolve symbol
symbol : class TargetEvent
location: class tic.event.UserMode
public class UserMode extends TargetEvent {
^
tic/event/Version.java:6: cannot resolve symbol
symbol : class TargetEvent
location: class tic.event.Version
public class Version extends TargetEvent {
^
tic/Client.java:288: cannot resolve symbol
symbol : class ServerResponse
location: class tic.Client
log.Log(this.getName(), new ServerResponse(response, code));
^
tic/Client.java:364: cannot resolve symbol
symbol : class Time
location: class tic.Client
log.Log(target, new Time(sourceNick, sourceLogin,
^
tic/event/Message.java:22: cannot resolve symbol
symbol : variable super
location: class tic.event.Message
return super.Serialize(outgoing);
^
tic/event/ChannelBanEvent.java:21: cannot resolve symbol
symbol : method Serialize (java.util.ArrayList)
location: class tic.event.ChannelEvent
return super.Serialize(outgoing);
^
tic/event/ChannelKeyEvent.java:21: cannot resolve symbol
symbol : method Serialize (java.util.ArrayList)
location: class tic.event.ChannelEvent
return super.Serialize(outgoing);
^
tic/event/ChannelSetLimit.java:21: cannot resolve symbol
symbol : method Serialize (java.util.ArrayList)
location: class tic.event.ChannelEvent
return super.Serialize(outgoing);
^
tic/event/RecipientChannelEvent.java:21: cannot resolve symbol
symbol : method Serialize (java.util.ArrayList)
location: class tic.event.ChannelEvent
return super.Serialize(outgoing);
^
tic/event/Mode.java:20: cannot resolve symbol
symbol : method Serialize (java.util.ArrayList)
location: class tic.event.ChannelEvent
return super.Serialize(outgoing);
^
tic/event/Notice.java:20: cannot resolve symbol
symbol : variable super
location: class tic.event.Notice
return super.Serialize(outgoing);
^
tic/event/Ping.java:20: cannot resolve symbol
symbol : variable super
location: class tic.event.Ping
return super.Serialize(outgoing);
^
tic/event/Quit.java:20: cannot resolve symbol
symbol : variable super
location: class tic.event.Quit
return super.Serialize(outgoing);
^
tic/event/Topic.java:25: cannot resolve symbol
symbol : method Serialize (java.util.ArrayList)
location: class tic.event.ChannelEvent
return super.Serialize(outgoing);
^
tic/event/UserMode.java:20: cannot resolve symbol
symbol : variable super
location: class tic.event.UserMode
return super.Serialize(outgoing);
^
22 errors
Most of those classes (Time, TargetEvent) are in the tic.event package. Not sure why it's unable to resolve things like super and serializable though. Any insight would be greatly appreciated. Thanks.

