Compiling Error

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

Moderator: Phades

Compiling Error

Postby skychi » Thu Feb 14, 2013 11:57 pm

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
skychi
 
Posts: 9
Joined: Sun Feb 10, 2013 5:00 am
Location: United States

Re: Compiling Error

Postby borka » Fri Feb 15, 2013 12:44 am

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
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Compiling Error

Postby aghmed » Fri Feb 15, 2013 1:36 am

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
aghmed
 
Posts: 238
Joined: Fri Sep 07, 2012 7:20 pm
Location: between London and third part of LSD

Re: Compiling Error

Postby skychi » Fri Feb 15, 2013 5:22 am

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
skychi
 
Posts: 9
Joined: Sun Feb 10, 2013 5:00 am
Location: United States

Re: Compiling Error

Postby borka » Fri Feb 15, 2013 7:10 am

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
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Compiling Error

Postby sabinati » Fri Feb 15, 2013 7:22 am

tina eat the ham
User avatar
sabinati
 
Posts: 15497
Joined: Mon Jul 13, 2009 4:25 am
Location: View active topics

Re: Compiling Error

Postby skychi » Sat Feb 16, 2013 5:10 am

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
skychi
 
Posts: 9
Joined: Sun Feb 10, 2013 5:00 am
Location: United States

Re: Compiling Error

Postby boshaw » Sat Feb 16, 2013 5:22 am

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
boshaw
 
Posts: 1538
Joined: Tue Jun 01, 2010 10:22 pm

Re: Compiling Error

Postby skychi » Sat Feb 16, 2013 5:37 am

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
User avatar
skychi
 
Posts: 9
Joined: Sun Feb 10, 2013 5:00 am
Location: United States


Return to The Wizards' Tower

Who is online

Users browsing this forum: No registered users and 10 guests