aimacode / aima-java

Java implementation of algorithms from Russell And Norvig's "Artificial Intelligence - A Modern Approach"
MIT License
1.55k stars 795 forks source link

"ant" in aima-core results in unmappable error in ubuntu 10 #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

------------------------------------------------------------------------
arun@arun-VirtualBox:~/Downloads/aima-core$ ant
Buildfile: /home/arun/Downloads/aima-core/build.xml

aima-core.clean:
   [delete] Deleting directory /home/arun/Downloads/aima-core/build

aima-core.makedirs:
    [mkdir] Created dir: /home/arun/Downloads/aima-core/build
    [mkdir] Created dir: /home/arun/Downloads/aima-core/build/bin
    [mkdir] Created dir: /home/arun/Downloads/aima-core/build/bin/main
    [mkdir] Created dir: /home/arun/Downloads/aima-core/build/bin/test
    [mkdir] Created dir: /home/arun/Downloads/aima-core/build/doc
    [mkdir] Created dir: /home/arun/Downloads/aima-core/build/doc/javadoc
    [mkdir] Created dir: /home/arun/Downloads/aima-core/build/release

aima-core.compile-all:
    [javac] /home/arun/Downloads/aima-core/build.xml:43: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 350 source files to /home/arun/Downloads/aima-core/build/bin/main
    [javac] /home/arun/Downloads/aima-core/src/main/java/aima/core/agent/Action.java:14: unmappable character for encoding UTF8
    [javac]      * Note: AIMA3e - NoOp, or �no operation,� is the name of an assembly
    [javac]                                ^
    [javac] /home/arun/Downloads/aima-core/src/main/java/aima/core/agent/Action.java:14: unmappable character for encoding UTF8
    [javac]      * Note: AIMA3e - NoOp, or �no operation,� is the name of an assembly
    [javac]                                              ^
    [javac] 2 errors

BUILD FAILED
/home/arun/Downloads/aima-core/build.xml:43: Compile failed; see the compiler 
error output for details.

Total time: 2 seconds

----------------------------------------------------------------------
The ant command should build the files. But, am receiving the errors.

I am using Ubuntu 10.10. I am trying to run Genetic algorithm code. When i try 
to build the aima-core , using ant i am unable to do it. I am getting this 
error. 
I am using the latest(Nov 05 th release) aima-core available online. 

I have to change the encoding .. but am not sure where should I change how to 
Change.. I am really new to programming.. If anyone could explain me clearly 
using the commands should be used and files to be edited , thats really 
helpful!!! please ...

Original issue reported on code.google.com by arun.nurak on 17 Dec 2010 at 4:53

GoogleCodeExporter commented 9 years ago
Hi arun.nurak,

As an immediate fix for your local copy just edit the file:

/home/arun/Downloads/aima-core/src/main/java/aima/core/agent/Action.java

and remove the 14th line, where there are character encodings that are not 
recognized on that platform. If you get similar errors and they are in comment 
blocks then just do the same thing. I will remove them from the main source. 
Thanks for the detailed bug and let me know if you've any additional questions.

Ciaran

Original comment by ctjoreilly@gmail.com on 17 Dec 2010 at 4:51

GoogleCodeExporter commented 9 years ago
Fixed, SVN rev=762, and verified on Ubuntu platform 9.4. 

Original comment by ctjoreilly@gmail.com on 17 Dec 2010 at 5:32