Results 1 to 12 of 12
  1. #1
    TheAnonyMoose is offline Member
    Join Date
    May 2014
    Posts
    7
    Rep Power
    0

    Default Need help compiling on debian

    Im having an issue when trying to compile my java source on debian (I might not have set it up correctly)

    These are the kind of issues im having:
    Need help compiling on debian-fb1f7a99ab.png

    I will be willing to pay for you time I can use skype/teamspeak unless it wont be required in which I will still pay for the help

  2. #2
    kneitzel is offline Senior Member
    Join Date
    Feb 2014
    Posts
    447
    Rep Power
    1

    Default Re: Need help compiling on debian

    I don't think that you need to pay anyone here :)

    Just give us all details. What did you call exactly?
    Where did you call it? Did you put a @ in front of your source file by accident?

    Konrad

  3. #3
    TheAnonyMoose is offline Member
    Join Date
    May 2014
    Posts
    7
    Rep Power
    0

    Default Re: Need help compiling on debian

    Quote Originally Posted by kneitzel View Post
    I don't think that you need to pay anyone here :)

    Just give us all details. What did you call exactly?
    Where did you call it? Did you put a @ in front of your source file by accident?

    Konrad
    This is an example of Cache.Java
    Java Code:
    package com.rs.cache;
    
    import com.alex.io.OutputStream;
    import com.alex.store.Store;
    import com.alex.util.whirlpool.Whirlpool;
    import com.rs.Settings;
    import com.rs.utils.Utils;
    
    import java.io.IOException;
    
    public final class Cache {
    
    	public static Store STORE;
    
    	private Cache() {
    
    	}
    
    	public static void init() throws IOException {
    		STORE = new Store(Settings.CACHE_PATH);
    	}
    
    	public static final byte[] generateUkeysFile() {
    		OutputStream stream = new OutputStream();
    		stream.writeByte(STORE.getIndexes().length);
    		for (int index = 0; index < STORE.getIndexes().length; index++) {
    			if (STORE.getIndexes()[index] == null) {
    				stream.writeInt(0);
    				stream.writeInt(0);
    				stream.writeBytes(new byte[64]);
    				continue;
    			}
    			stream.writeInt(STORE.getIndexes()[index].getCRC());
    			stream.writeInt(STORE.getIndexes()[index].getTable().getRevision());
    			stream.writeBytes(STORE.getIndexes()[index].getWhirlpool());
    		}
    		byte[] archive = new byte[stream.getOffset()];
    		stream.setOffset(0);
    		stream.getBytes(archive, 0, archive.length);
    		OutputStream hashStream = new OutputStream(65);
    		hashStream.writeByte(0);
    		hashStream.writeBytes(Whirlpool.getHash(archive, 0, archive.length));
    		byte[] hash = new byte[hashStream.getOffset()];
    		hashStream.setOffset(0);
    		hashStream.getBytes(hash, 0, hash.length);
    		hash = Utils.cryptRSA(hash, Settings.GRAB_SERVER_PRIVATE_EXPONENT, Settings.GRAB_SERVER_MODULUS);
    		stream.writeBytes(hash);
    		archive = new byte[stream.getOffset()];
    		stream.setOffset(0);
    		stream.getBytes(archive, 0, archive.length);
    		return archive;
    	}
    
    }
    It seems to be a problem with the java installation on debian because on other sources it gives me the same error but with "public" function declarations and such.

    I know how to program in java and all the files are working 100%. I know this because I compiled it on my computer (windows) and it is all working just fine on that.

    EDIT:
    I forgot to mention that these errors are showing up in almost every source file I am using.
    Last edited by TheAnonyMoose; 05-28-2014 at 12:06 AM.

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,318
    Rep Power
    25

    Default Re: Need help compiling on debian

    Can you post the commandline you are using? The image in post#1 didn't show it.
    If you don't understand my response, don't ignore it, ask a question.

  5. #5
    TheAnonyMoose is offline Member
    Join Date
    May 2014
    Posts
    7
    Rep Power
    0

    Default Re: Need help compiling on debian

    Quote Originally Posted by Norm View Post
    Can you post the commandline you are using? The image in post#1 didn't show it.
    If you really want to see it lol.

    Java Code:
    javac -d bin -cp lib/: -sourcepath src src/com/rs/*;src/com/rs/cache/*;src/com/rs/cache/loaders/*;src/com/rs/cores/*;src/com/rs/game/*;src/com/rs/game/item/*;src/com/rs/game/minigames/*;src/com/rs/game/minigames/clanwars/*;src/com/rs/game/minigames/creations/*;src/com/rs/game/minigames/duel/*;src/com/rs/game/minigames/pest/*;src/com/rs/game/npc/*;src/com/rs/game/npc/combat/*;src/com/rs/game/npc/combat/impl/*;src/com/rs/game/npc/corp/*;src/com/rs/game/npc/dragons/*;src/com/rs/game/npc/dungeonnering/*;src/com/rs/game/npc/familiar/*;src/com/rs/game/npc/fightcaves/*;src/com/rs/game/npc/fightkiln/*;src/com/rs/game/npc/fightpits/*;src/com/rs/game/npc/godwars/*;src/com/rs/game/npc/godwars/armadyl/*;src/com/rs/game/npc/godwars/bandos/*;src/com/rs/game/npc/godwars/saradomin/*;src/com/rs/game/npc/godwars/zammorak/*;src/com/rs/game/npc/godwars/zaros/*;src/com/rs/game/npc/kalph/*;src/com/rs/game/npc/nomad/*;src/com/rs/game/npc/others/*;src/com/rs/game/npc/pet/*;src/com/rs/game/npc/qbd/*;src/com/rs/game/npc/slayer/*;src/com/rs/game/npc/sorgar/*;src/com/rs/game/player/*;src/com/rs/game/player/actions/*;src/com/rs/game/player/actions/mining/*;src/com/rs/game/player/actions/runecrafting/*;src/com/rs/game/player/actions/thieving/*;src/com/rs/game/player/content/*;src/com/rs/game/player/content/agility/*;src/com/rs/game/player/content/construction/*;src/com/rs/game/player/content/dungeoneering/*;src/com/rs/game/player/content/dungeoneering/rooms/*;src/com/rs/game/player/content/pet/*;src/com/rs/game/player/controlers/*;src/com/rs/game/player/controlers/castlewars/*;src/com/rs/game/player/controlers/events/*;src/com/rs/game/player/controlers/fightpits/*;src/com/rs/game/player/controlers/pestcontrol/*;src/com/rs/game/player/cutscenes/*;src/com/rs/game/player/cutscenes/actions/*;src/com/rs/game/player/dialogues/*;src/com/rs/game/player/quests/*;src/com/rs/game/tasks/*;src/com/rs/io/*;src/com/rs/net/*;src/com/rs/net/decoders/*;src/com/rs/net/decoders/handlers/*;src/com/rs/net/encoders/*src/com/rs/tools/*;src/com/rs/utils/*;src/com/rs/utils/huffman/*;

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,318
    Rep Power
    25

    Default Re: Need help compiling on debian

    Have you tried a much simpler test with a simple program like HelloWorld?
    What happened?
    If you don't understand my response, don't ignore it, ask a question.

  7. #7
    TheAnonyMoose is offline Member
    Join Date
    May 2014
    Posts
    7
    Rep Power
    0

    Default Re: Need help compiling on debian

    Quote Originally Posted by Norm View Post
    Have you tried a much simpler test with a simple program like HelloWorld?
    What happened?
    I havent, however like I said above I know for a fact that this source code all works. As you can see by the errors above theres some problem with recognizing java based functions such as "import" and "package" which is what I want to know how to fix.

    Here is the result of a simple helloworld without any importing or packaging
    Need help compiling on debian-2e8e146d70.png
    Last edited by TheAnonyMoose; 05-28-2014 at 12:49 AM.

  8. #8
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,318
    Rep Power
    25

    Default Re: Need help compiling on debian

    command not found
    does not sound like a compiler error. That looks more like something from the OS
    If you don't understand my response, don't ignore it, ask a question.

  9. #9
    TheAnonyMoose is offline Member
    Join Date
    May 2014
    Posts
    7
    Rep Power
    0

    Default Re: Need help compiling on debian

    Quote Originally Posted by Norm View Post
    does not sound like a compiler error. That looks more like something from the OS
    Well im running linux-debian but the jdk should recognize import and package shouldnt it? I cant find anything on this kind of problem anywhere else so thats why im here lol

  10. #10
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,318
    Rep Power
    25

    Default Re: Need help compiling on debian

    Can the OS put out that error message: command not found
    Can it read a java source as a script and try to find "commands"?
    If you don't understand my response, don't ignore it, ask a question.

  11. #11
    TheAnonyMoose is offline Member
    Join Date
    May 2014
    Posts
    7
    Rep Power
    0

    Default Re: Need help compiling on debian

    Quote Originally Posted by Norm View Post
    Can the OS put out that error message: command not found
    Can it read a java source as a script and try to find "commands"?
    It can, however since im using javac the source is only being interpreted by the jdk.

  12. #12
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,318
    Rep Power
    25

    Default Re: Need help compiling on debian

    It can
    Can you make the OS generate that error message?
    Post the console for that.
    Last edited by Norm; 05-28-2014 at 02:07 AM.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Not compiling :(
    By Darkzombies in forum New To Java
    Replies: 14
    Last Post: 11-19-2012, 05:40 AM
  2. Replies: 1
    Last Post: 12-18-2010, 04:44 PM
  3. Replies: 3
    Last Post: 11-05-2010, 06:55 AM
  4. debian package
    By jperson in forum Advanced Java
    Replies: 3
    Last Post: 01-19-2010, 02:53 PM
  5. JVM error when starting Eclipse[with Debian]
    By cakirhal in forum Eclipse
    Replies: 0
    Last Post: 03-07-2009, 08:07 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
  •