Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Question Directory Structure Issues

Joined
Apr 24, 2018
Messages
3
This all arose when I started trying to push my bot to svn. I originally had a single folder with source since I don't use an IDE. But when I tried to update it to svn and it wasn't working I decided to restructure my directory to match everyone elses. But now I can't even get runemate to load the bot.

Manifest:
Code:
<manifest>
    <main-class>com.runemate.bots.DuckIronMiner.DuckIronMiner</main-class>
    <name>Duck's Iron Banker</name>
    <tag-line>Mine and bank iron in Falador!</tag-line><!--Max of 50 chars-->
    <description>Mines iron ore in the Dwarven mine and banks at the east Falador bank(need pickaxe equipped or in inventory).</description><!--Max of 110 chars-->
    <version>1.0.0</version>
    <compatibility>
        <game>OSRS</game>
    </compatibility>
    <categories>
        <category>MINING</category>
    </categories>
    <!--Required to publish on the bot store-->
    <internal-id>DucksMineAndBank</internal-id>
    <!--The rest are optional-->
    <open-source>true</open-source>
    <hidden>false</hidden> <!--If you need to hide it from the bot store for maintenance-->
    <access>public</access>
    <tags>
        <tag>Iron</tag>
        <tag>Mining</tag>
    </tags>
    <!--<resources>
        <resource>path/to/file.png</resource>
    </resources>-->
</manifest>

Directory tree from the root of the SVN
Code:
QuackShack ~/Runescape/Bots/duckcity $ tree
.
|-- Makefile
|-- RuneMate.jar
`-- com
    `-- runemate
        `-- bots
            `-- DuckIronMiner
                |-- DuckIronMiner$State.class
                |-- DuckIronMiner.class
                |-- DuckIronMiner.java
                |-- DuckIronMiner.manifest.xml
                `-- Makefile

4 directories, 7 files

Then when I try to load my bot in runemate i get:
"Unable to locate "/home/~/Runescape/Bots/duckcity/com/runemate/bots/DuckIronMiner/DuckIronMiner.class"."

Which is funny because i can vim that file just by copying that entire path - which means it clearly does exist. What am I doing wrong here? Because I am at a loss.

My original configuration (which worked) had the manifest with <main-class>DuckIronMiner</main-class> in the root directory along with the class file.
 
cuppa.drink(java);
Joined
Mar 13, 2018
Messages
7,103
So I'm far from a pro with svn, but my repo itself looks like:
[svn repo]
|-- src
'-- manifest1.xml
'-- manifest2.xml
'-- com
`-- bots (etc)

My manifest looks like yours (<main-class>com.cuppajava.bots.botx.botx</main-class>). I'm thinking that maybe the searching for the main class starts from the path relative from their folder. So if you use the full path in the manifest, you need to put your manifest in the same folder as com

If that doesn't help, I hope someone more familiar with SVN can assist. Good luck :)
 
Joined
Apr 24, 2018
Messages
3
So I'm far from a pro with svn, but my repo itself looks like:
[svn repo]
|-- src
'-- manifest1.xml
'-- manifest2.xml
'-- com
`-- bots (etc)

My manifest looks like yours (<main-class>com.cuppajava.bots.botx.botx</main-class>). I'm thinking that maybe the searching for the main class starts from the path relative from their folder. So if you use the full path in the manifest, you need to put your manifest in the same folder as com

If that doesn't help, I hope someone more familiar with SVN can assist. Good luck :)


I tried that aswell in my frantic "try everything" mode and it produces the same result. I don't think its a svn issue but rather something wrong with my manifest but i just can't see it.

The current manifest location was the result of just looking up open source bots on the store and copying their file structure.
 
Top