Thread: Compile errors in dementhium 634 on debian vps

Results 1 to 3 of 3
  1. #1 Compile errors in dementhium 634 on debian vps 
    Registered Member
    Join Date
    Jun 2011
    Posts
    89
    Thanks given
    12
    Thanks received
    3
    Rep Power
    1
    import was removed still have those error left


    Code:
    Compiling RS2Server...
    src/org/dementhium/io/XMLHandler.java:29: cannot find symbol
    symbol  : class XStream
    location: class org.dementhium.io.XMLHandler
            private static XStream xmlHandler;
                           ^
    src/org/dementhium/io/XMLHandler.java:32: cannot find symbol
    symbol  : class XStream
    location: class org.dementhium.io.XMLHandler
                    xmlHandler = new XStream();
                                     ^
    2 errors
    Compiling World...
    src/org/dementhium/io/XMLHandler.java:29: cannot find symbol
    symbol  : class XStream
    location: class org.dementhium.io.XMLHandler
            private static XStream xmlHandler;
                           ^
    src/org/dementhium/io/XMLHandler.java:32: cannot find symbol
    symbol  : class XStream
    location: class org.dementhium.io.XMLHandler
                    xmlHandler = new XStream();
                                     ^
    2 errors
    Compiling handlers......
    src/org/dementhium/io/XMLHandler.java:29: cannot find symbol
    symbol  : class XStream
    location: class org.dementhium.io.XMLHandler
            private static XStream xmlHandler;
                           ^
    src/org/dementhium/io/XMLHandler.java:32: cannot find symbol
    symbol  : class XStream
    location: class org.dementhium.io.XMLHandler
                    xmlHandler = new XStream();
                                     ^
    2 errors
    Compiling ActionSender
    src/org/dementhium/io/XMLHandler.java:29: cannot find symbol
    symbol  : class XStream
    location: class org.dementhium.io.XMLHandler
            private static XStream xmlHandler;
                           ^
    src/org/dementhium/io/XMLHandler.java:32: cannot find symbol
    symbol  : class XStream
    location: class org.dementhium.io.XMLHandler
                    xmlHandler = new XStream();
                                     ^
    2 errors
    Compiling Definition
    src/org/dementhium/io/XMLHandler.java:29: cannot find symbol
    symbol  : class XStream
    location: class org.dementhium.io.XMLHandler
            private static XStream xmlHandler;
                           ^
    src/org/dementhium/io/XMLHandler.java:32: cannot find symbol
    symbol  : class XStream
    location: class org.dementhium.io.XMLHandler
                    xmlHandler = new XStream();
                                     ^
    2 errors
    Compiling Dementhium
    src/org/dementhium/io/XMLHandler.java:29: cannot find symbol
    symbol  : class XStream
    location: class org.dementhium.io.XMLHandler
            private static XStream xmlHandler;
                           ^
    src/org/dementhium/io/XMLHandler.java:32: cannot find symbol
    symbol  : class XStream
    location: class org.dementhium.io.XMLHandler
                    xmlHandler = new XStream();
                                     ^
    2 errors
    Compiling Clans
    src/org/dementhium/io/XMLHandler.java:29: cannot find symbol
    symbol  : class XStream
    location: class org.dementhium.io.XMLHandler
            private static XStream xmlHandler;
                           ^
    src/org/dementhium/io/XMLHandler.java:32: cannot find symbol
    symbol  : class XStream
    location: class org.dementhium.io.XMLHandler
                    xmlHandler = new XStream();
                                     ^
    2 errors
    Complete

    Code:
    package org.dementhium.io;
    
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    
    import org.dementhium.content.areas.impl.CircularArea;
    import org.dementhium.content.areas.impl.IrregularArea;
    import org.dementhium.content.areas.impl.RectangularArea;
    import org.dementhium.content.skills.magic.Spell;
    import org.dementhium.identifiers.Identifier;
    import org.dementhium.model.Item;
    import org.dementhium.model.Location;
    import org.dementhium.model.definition.NPCDefinition;
    import org.dementhium.model.definition.WeaponInterface;
    import org.dementhium.model.definition.WeaponInterface.WeaponButton;
    
    /**
     * 
     * @author 'Mystic Flow <Steven@************.org>
     */
    @SuppressWarnings("unchecked")
    public final class XMLHandler {
    
    	private XMLHandler() { }
    
    	private static XStream xmlHandler;
    	
    	static {
    		xmlHandler = new XStream();
    		xmlHandler.alias("spell", Spell.class);
    		xmlHandler.alias("item", Item.class);
    		xmlHandler.alias("rectangle", RectangularArea.class);
    		xmlHandler.alias("circle", CircularArea.class);
    		xmlHandler.alias("irregular", IrregularArea.class);
    		xmlHandler.alias("position", Location.class);
    		xmlHandler.alias("identifier", Identifier.class);
    		xmlHandler.alias("ban", String.class);
    		xmlHandler.alias("npcDefinition", NPCDefinition.class);
    		xmlHandler.alias("weaponInterface", WeaponInterface.class);
    		xmlHandler.alias("weaponButton", WeaponButton.class);
    	}
    
    	public static void toXML(String file, Object object) throws IOException {
    		OutputStream out = new FileOutputStream(file);
    		try {
    			xmlHandler.toXML(object, out);
    			out.flush();
    		} finally {
    			out.close();
    		}
    	}
    
    	public static <T> T fromXML(String file) throws IOException {
    		InputStream in = new FileInputStream(file);
    		try {
    			return (T) xmlHandler.fromXML(in);
    		} finally {
    			in.close();
    		}
    	}
    }
    compiler code is this one

    Code:
    echo Compiling RS2Server...
    javac -d bin -cp lib/netty-3.2.jar -sourcepath src src/org/dementhium/RS2Server.java
    echo Compiling World...
    javac -d bin -cp lib/netty-3.2.jar -sourcepath src src/org/dementhium/model/World.java
    echo Compiling handlers......
    javac -d bin -cp lib/netty-3.2.jar -sourcepath src src/org/dementhium/net/packethandlers/*.java
    echo Compiling ActionSender
    javac -d bin -cp lib/netty-3.2.jar -sourcepath src src/org/dementhium/net/*.java
    echo Compiling Definition
    javac -d bin -cp lib/netty-3.2.jar -sourcepath src src/org/dementhium/model/definition/*.java
    echo Compiling Dementhium
    javac -d bin -cp lib/netty-3.2.jar -sourcepath src src/org/dementhium/*.java
    echo Compiling Clans
    javac -d bin -cp lib/netty-3.2.jar -sourcepath src src/org/dementhium/content/clans/*.java
    echo Complete
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jan 2008
    Posts
    965
    Thanks given
    2
    Thanks received
    17
    Rep Power
    0
    I may be wrong but i guess you don't have any file named XStream. or you dont have any imports ?
    Reply With Quote  
     

  3. #3  
    Registered Member Deathbyu's Avatar
    Join Date
    Aug 2010
    Posts
    359
    Thanks given
    17
    Thanks received
    7
    Rep Power
    1
    get the brand new netty version keep the old 3.2 in there or else it wont run but also get 3.2.4 wich i did and it works put it in the lib folder... idk the exact link but just google netty 3.2.4
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. 614 loads 634 compile error under debian vps
    By Coder Joker in forum Help
    Replies: 3
    Last Post: 06-13-2011, 08:57 PM
  2. [614] Compile Errors [614]
    By scenescape in forum Help
    Replies: 12
    Last Post: 12-23-2010, 12:02 AM
  3. 3 compile errors (PIC)
    By Haxed' in forum Help
    Replies: 3
    Last Post: 11-29-2009, 04:24 PM
  4. Compile Errors
    By Queer in forum Help
    Replies: 16
    Last Post: 10-19-2009, 06:12 PM
  5. [508] Compile Errors
    By 00o0o0oo0 in forum Help
    Replies: 0
    Last Post: 05-29-2009, 09:42 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •