Eclipse_Raptor_Java_Project_Errors

12 views
Skip to first unread message

fred

unread,
May 29, 2010, 9:14:14 AM5/29/10
to Raptor (chess-interface)
Hi, guys.
I'm trying to run raptor under Eclipse IDE, but when I check out SVN
and save as Java Project I get 68 errors marked in 'problems' with a
"Java Problem" 'type' description.
The raptor project folder shows a red error icon and the execution of
Raptor.java fails.
I tried it with 'OpenJDK' environment, with Sun default JDK, with
eclipse 'Galileo' or 'Helios', the builder was the 'Java Builder' and
SWT 3.6M3.
I'm using Linux Arch 64 bit or Ubuntu Lucid 64 bit.
What I'm doing wrong?
What's missing?
Bye.

P.S.: A few months ago I could execute Raptor.java and modify the
source code successfully.

Bodia

unread,
May 31, 2010, 4:13:19 AM5/31/10
to raptor-ches...@googlegroups.com
Hi,
try to check out SVN manually, edit build.xml by setting swtEnv to
"Linux_x86_64_GTK2". Run "ant install" from the console. Does this run
without problems?

Bodia

fred

unread,
May 31, 2010, 10:28:28 AM5/31/10
to Raptor (chess-interface)
Hi, Bodia & guys.

After set swtEnv to Linux_x86_64_GTK2 and run 'ant install' from
console, I had 43 errors.

...

root@s0u4t3u:~/Documentos/raptor/raptor# ant install
Buildfile: build.xml

init:
[echo] Your swtEnv is set to Linux_x86_64_GTK2.
[echo] If this is incorrect please edit the build.xml file and
change your swtEnv!

compile:
[javac] Compiling 440 source files to /root/Documentos/raptor/
raptor/target/classes
[javac] /root/Documentos/raptor/raptor/src/raptor/swt/chess/
controller/ExamineController.java:2: warning: unmappable character for
encoding UTF8
[javac] � * New BSD License
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/alias/
ActivateScriptAlias.java:18: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: package raptor.script
[javac] import raptor.script.ChatEventScript;
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/alias/
DeactivateScriptAlias.java:18: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: package raptor.script
[javac] import raptor.script.ChatEventScript;
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/alias/
ListScriptsAlias.java:22: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: package raptor.script
[javac] import raptor.script.ChatEventScript;
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/alias/
ScriptAlias.java:18: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: package raptor.script
[javac] import raptor.script.ChatEventScript;
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/alias/
ShowScriptAlias.java:18: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: package raptor.script
[javac] import raptor.script.ChatEventScript;
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/connector/ics/
IcsConnector.java:61: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: package raptor.script
[javac] import raptor.script.ChatEventScript;
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
ScriptService.java:33: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: package raptor.script
[javac] import raptor.script.ChatEventScript;
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/connector/ics/
IcsConnector.java:223: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.connector.ics.IcsConnector
[javac] protected ChatEventScript[] chatEventScripts = null;
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
ScriptService.java:66: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.service.ScriptService
[javac] public Map<String, ChatEventScript> nameToChatEventScript
= new HashMap<String, ChatEventScript>();
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
ScriptService.java:141: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.service.ScriptService
[javac] public ChatEventScript getChatEventScript(String name) {
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
ScriptService.java:148: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.service.ScriptService
[javac] public ChatEventScript[] getChatEventScripts() {
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
ScriptService.java:158: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.service.ScriptService
[javac] public ChatEventScript[] getChatEventScripts(
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
ScriptService.java:216: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.service.ScriptService
[javac] public void save(ChatEventScript script) {
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/pref/
PreferenceUtils.java:51: cannot find symbol
[javac] symbol : class ChatEventScripts
[javac] location: package raptor.pref.page
[javac] import raptor.pref.page.ChatEventScripts;
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/script/
ScriptUtils.java:33: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.script.ScriptUtils
[javac] public static Properties serialize(ChatEventScript
script) {
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/script/
ScriptUtils.java:57: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.script.ScriptUtils
[javac] public static ChatEventScript unserializeChatEventScript(
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
AliasService.java:56: warning: [deprecation] raptor.alias.ScriptAlias
in raptor.alias has been deprecated
[javac] import raptor.alias.ScriptAlias;
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
AliasService.java:64: warning: [deprecation]
raptor.alias.ShowScriptAlias in raptor.alias has been deprecated
[javac] import raptor.alias.ShowScriptAlias;
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/alias/
ActivateScriptAlias.java:38: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.alias.ActivateScriptAlias
[javac] ChatEventScript script = ScriptService.getInstance()
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/alias/
DeactivateScriptAlias.java:38: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.alias.DeactivateScriptAlias
[javac] ChatEventScript script = ScriptService.getInstance()
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/alias/
ListScriptsAlias.java:37: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.alias.ListScriptsAlias
[javac] ChatEventScript[] scripts = ScriptService.getInstance()
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/alias/
ListScriptsAlias.java:41: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.alias.ListScriptsAlias
[javac] List<ChatEventScript> activeScripts = new
ArrayList<ChatEventScript>(
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/alias/
ListScriptsAlias.java:41: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.alias.ListScriptsAlias
[javac] List<ChatEventScript> activeScripts = new
ArrayList<ChatEventScript>(
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/alias/
ListScriptsAlias.java:43: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.alias.ListScriptsAlias
[javac] List<ChatEventScript> inactiveScripts = new
ArrayList<ChatEventScript>(
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/alias/
ListScriptsAlias.java:43: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.alias.ListScriptsAlias
[javac] List<ChatEventScript> inactiveScripts = new
ArrayList<ChatEventScript>(
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/alias/
ListScriptsAlias.java:45: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.alias.ListScriptsAlias
[javac] for (ChatEventScript script : scripts) {
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/alias/
ListScriptsAlias.java:56: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.alias.ListScriptsAlias
[javac] for (ChatEventScript script : activeScripts) {
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/alias/
ListScriptsAlias.java:61: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.alias.ListScriptsAlias
[javac] for (ChatEventScript script : inactiveScripts) {
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/alias/
ScriptAlias.java:64: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.alias.ScriptAlias
[javac] ChatEventScript chatEventScript = new
ChatEventScript();
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/alias/
ScriptAlias.java:64: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.alias.ScriptAlias
[javac] ChatEventScript chatEventScript = new
ChatEventScript();
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/alias/
ShowScriptAlias.java:46: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.alias.ShowScriptAlias
[javac] ChatEventScript script = ScriptService.getInstance()
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/connector/ics/
IcsConnector.java:2144: cannot find symbol
[javac] symbol: class ChatEventScript
[javac] for (ChatEventScript script : chatEventScripts) {
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
ScriptService.java:66: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.service.ScriptService
[javac] public Map<String, ChatEventScript> nameToChatEventScript
= new HashMap<String, ChatEventScript>();
[javac]

^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
ScriptService.java:149: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.service.ScriptService
[javac] ArrayList<ChatEventScript> result = new
ArrayList<ChatEventScript>(
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
ScriptService.java:149: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.service.ScriptService
[javac] ArrayList<ChatEventScript> result = new
ArrayList<ChatEventScript>(
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
ScriptService.java:152: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.service.ScriptService
[javac] return result.toArray(new ChatEventScript[0]);
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
ScriptService.java:160: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.service.ScriptService
[javac] ArrayList<ChatEventScript> result = new
ArrayList<ChatEventScript>();
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
ScriptService.java:160: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.service.ScriptService
[javac] ArrayList<ChatEventScript> result = new
ArrayList<ChatEventScript>();
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
ScriptService.java:161: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.service.ScriptService
[javac] for (ChatEventScript script : nameToChatEventScript
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
ScriptService.java:168: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.service.ScriptService
[javac] return result.toArray(new ChatEventScript[0]);
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
ScriptService.java:362: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.service.ScriptService
[javac] ChatEventScript script = ScriptUtils
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
ScriptService.java:395: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.service.ScriptService
[javac] ChatEventScript script = ScriptUtils
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/pref/
PreferenceUtils.java:246: cannot find symbol
[javac] symbol : class ChatEventScripts
[javac] location: class raptor.pref.PreferenceUtils
[javac] new ChatEventScripts()));
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/script/
ScriptUtils.java:59: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.script.ScriptUtils
[javac] ChatEventScript result = new ChatEventScript();
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/script/
ScriptUtils.java:59: cannot find symbol
[javac] symbol : class ChatEventScript
[javac] location: class raptor.script.ScriptUtils
[javac] ChatEventScript result = new ChatEventScript();
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
AliasService.java:88: warning: [deprecation] raptor.alias.ScriptAlias
in raptor.alias has been deprecated
[javac] RemoveExtendedCensorAlias.class, ScriptAlias.class,
[javac] ^
[javac] /root/Documentos/raptor/raptor/src/raptor/service/
AliasService.java:93: warning: [deprecation]
raptor.alias.ShowScriptAlias in raptor.alias has been deprecated
[javac] ShowScriptAlias.class, TellAllInChannelAlias.class,
[javac] ^
[javac] 43 errors
[javac] 5 warnings

BUILD FAILED
/root/Documentos/raptor/raptor/build.xml:56: Compile failed; see the
compiler error output for details.

Total time: 18 seconds

...

Any ideas?
Bye.

Bodia

unread,
May 31, 2010, 1:12:55 PM5/31/10
to raptor-ches...@googlegroups.com
Thanks for pointing out, now it's fixed. These two missing files weren't
comitted by some reason.

Bodia

31.05.10 17:28, fred wrote:
> Hi, Bodia& guys.

fred

unread,
Jun 1, 2010, 2:33:51 PM6/1/10
to Raptor (chess-interface)
Hello, Bodia.
Yes, man, now the javac compilation by Java or Ant builder succeeds
very well, but...
I still can't get Raptor.java to execute because of a strange log4j
warn:

...

log4j:WARN No appenders could be found for logger
(raptor.pref.RaptorPreferenceStore).
log4j:WARN Please initialize the log4j system properly.

...

St. Google already tried to help me, but all their tips failed.
I copied the log4j.properties file to some other folders in vain.
That is right, I'm a novice in Java language specifically.
Suggestions?


On 31 maio, 14:12, Bodia <bvk...@gmail.com> wrote:
> Thanks for pointing out, now it's fixed. These two missing files weren't
> comitted by some reason.
>

Bodia

unread,
Jun 3, 2010, 7:55:52 AM6/3/10
to raptor-ches...@googlegroups.com
Even if this warning arise Raptor should execute normaly, so maybe there
is another reason. Check swt.jar, because the build script assumes
you're running MacOSX by default. Try to replace lib/swt/swt.jar with
the one in trunk/raptor/projectFiles/swt/Linux_x86_64_GTK2/swt.jar

fred

unread,
Jun 4, 2010, 6:39:17 AM6/4/10
to Raptor (chess-interface)
Hi again, Bodia.
I have good news to us...
Raptor .98 RC2 'SVN version' worked!

...

Was not a 'swt.jar' architecture problem...
Was not a 'log4j' invisible problem... (you're right in saying that
should be execute normaly.)
Was not a 'build.xml' file problem...
Was not a Java or Ant builder problem...
I think it's an 'Eclipse' problem!

...

1. Inside 'Eclipse' I still have those 'log4j' warns with a
'terminated' execution when using 'raptor/src/raptor/Raptor.java'
file.
2. Inside 'Eclipse', using this another file 'raptor/target/install/
Raptor.java' with 'raptor.Raptor' main class, I have the same 'log4j'
warns and the 'terminated' execution status.
3. But when I did a clean 'ant install' using pure command line
console, I could run 'java -jar Raptor.jar' successfully!

...

Thanks, man! Your words "Even if this warning arise Raptor should
execute normaly, so maybe there
is another reason." were very useful.
Now I have to finish some others chess piece sets to include in raptor
project. And I will learn this strange Java language too, to help the
group with some code. (I was with my computer broken and I recently
acquired a new motherboard...)
See you later!
Bye.

On 3 jun, 08:55, Bodia <bvk...@gmail.com> wrote:
> Even if this warning arise Raptor should execute normaly, so maybe there
> is another reason. Check swt.jar, because the build script assumes
> you're running MacOSX by default. Try to replace lib/swt/swt.jar with
Reply all
Reply to author
Forward
0 new messages