Compiling Error

Forum for alternative clients, mods & discussions on the same.

Moderator: Phades

User avatar
skychi
Posts: 9
Joined: Sun Feb 10, 2013 5:00 am
Location: United States

Compiling Error

Post by skychi »

after editing tile colors in the MapView.java , i am now ready to pack it back up.
the problem is, i get 100 Errors when trying to compile with JDK.

Image
Image
if anyone knows why it isnt compiling right please let me know.
the only thing i changed was the colors :S
It is forbidden to kill; therefore all murderers are punished unless they kill in large numbers and to the sound of trumpets.
-Voltaire
User avatar
borka
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Compiling Error

Post by borka »

did you grab the MapView.java from src in a Git repsitory?

try to copy over your edited file back into src and compile the whole client with ant
(and thus getting a haven.jar containing the MapView classes)

example

Code: Select all

ant -buildfile C:\Temp\hnhclient\build.xml -diagnostics -logfile
where hnhclient is the folder with pulled git rep of client
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
User avatar
aghmed
Posts: 238
Joined: Fri Sep 07, 2012 7:20 pm
Location: between London and third part of LSD

Re: Compiling Error

Post by aghmed »

typical noobish mistake
you have closed "}" once too much.

open file with notepad++, you will see all
public static class StupidJavaCodeContainer {
/* oh, i love swing. */
class checkOutMyPathfinder{
Image
}}
User avatar
skychi
Posts: 9
Joined: Sun Feb 10, 2013 5:00 am
Location: United States

Re: Compiling Error

Post by skychi »

aghmed wrote:typical noobish mistake
you have closed "}" once too much.

open file with notepad++, you will see all
i used 3rd party software to decompile it, my mistakes.
i will grab the source from git.
didn't realize it was already decompiled.
thanks.
It is forbidden to kill; therefore all murderers are punished unless they kill in large numbers and to the sound of trumpets.
-Voltaire
User avatar
borka
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Compiling Error

Post by borka »

this thread might come in handy:
viewtopic.php?f=27&t=28878

:)
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
User avatar
sabinati
Posts: 15527
Joined: Mon Jul 13, 2009 4:25 am
Location: View active topics

Re: Compiling Error

Post by sabinati »

tina eat the ham
User avatar
skychi
Posts: 9
Joined: Sun Feb 10, 2013 5:00 am
Location: United States

Re: Compiling Error

Post by skychi »

hmm. i keep getting same error over and over, i can't seem to find this character.
Image
It is forbidden to kill; therefore all murderers are punished unless they kill in large numbers and to the sound of trumpets.
-Voltaire
User avatar
boshaw
Posts: 1612
Joined: Tue Jun 01, 2010 10:22 pm

Re: Compiling Error

Post by boshaw »

skychi wrote:hmm. i keep getting same error over and over, i can't seem to find this character.
Image
try
javac -encoding UTF8 files....

or if you're using the ant build.xml
find:

Code: Select all

<javac srcdir="src" destdir="build/classes" debug="on"
           source="1.5" target="1.5" includeantruntime="no">
and make it

Code: Select all

    
<javac srcdir="src" destdir="build/classes" debug="on"
           source="1.5" target="1.5" includeantruntime="no"
           encoding="UTF8">
User avatar
skychi
Posts: 9
Joined: Sun Feb 10, 2013 5:00 am
Location: United States

Re: Compiling Error

Post by skychi »

boshaw wrote:
skychi wrote:hmm. i keep getting same error over and over, i can't seem to find this character.
Image
try
javac -encoding UTF8 files....

or if you're using the ant build.xml
find:

Code: Select all

<javac srcdir="src" destdir="build/classes" debug="on"
           source="1.5" target="1.5" includeantruntime="no">
and make it

Code: Select all

    

<javac srcdir="src" destdir="build/classes" debug="on"
           source="1.5" target="1.5" includeantruntime="no"
           encoding="UTF8">
thankyou! this helped me a lot.
issue had been solved. :)
mods can now /thread
It is forbidden to kill; therefore all murderers are punished unless they kill in large numbers and to the sound of trumpets.
-Voltaire

Return to “The Wizards' Tower”