Help Installing Sources

This forum is for discussion of the open source Java VGA Planets Client (JVC) software by Lars Dam.

Moderators: BitMask, Havok

User avatar
Quapla
Posts: 91

Help Installing Sources

Post#1 » Wed May 01, 2013 9:03 am

Hi folks,

can anybody help me installing JVC sources with Netbeans?

It''s hard to start a new business ;)

I have:
JDK
Netbeans
Sources from SF (Checked out with Smart CVS) - no way to check out with Netbeans
and last but not least almost no knowledge about Java ;))

Quapla
...still playing VPA in a box...
latest VPA: https://sourceforge.net/projects/vpa/

User avatar
BitMask
Site Admin
Posts: 2318
Contact:

Re: Help Installing Sources

Post#2 » Wed May 01, 2013 10:06 am

JVC is also built with ant makefiles and not through the IDE itself IIRC.
Follow the instructions in \docs\build.txt

The one important thing to remember: Only use Java V1.6 and not the newer version or you will get some errors to fix. Once you have it compiling under Java 1.6 you can upgrade and fix any issues.

You can also contact Lars Dam. He will be happy to assist. (His mail is on SourceForge or PM him through this forum)

User avatar
BitMask
Site Admin
Posts: 2318
Contact:

Re: Help Installing Sources

Post#3 » Wed May 01, 2013 10:13 am

I found a Netbeans project file that I created a few years back. Perhaps it will be useful.

Under your source folder make a new folder called nbproject and put this project.xml file in there. (this folder should be in the same level as addins, build, client, dist, lib, docs, etc. folders)

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
    <type>org.netbeans.modules.ant.freeform</type>
    <configuration>
        <general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">
            <name>JVC client</name>
        </general-data>
        <general-data xmlns="http://www.netbeans.org/ns/freeform-project/2">
            <!-- Do not use Project Properties customizer when editing this file manually. -->
            <name>JVC client</name>
            <properties/>
            <folders>
                <source-folder>
                    <label>client\src</label>
                    <type>java</type>
                    <location>client/src</location>
                    <encoding>UTF-8</encoding>
                </source-folder>
                <source-folder>
                    <label>addins\src</label>
                    <type>java</type>
                    <location>addins/src</location>
                    <encoding>UTF-8</encoding>
                </source-folder>
                <source-folder>
                    <label>testgames</label>
                    <type>java</type>
                    <location>testgames</location>
                    <encoding>UTF-8</encoding>
                </source-folder>
                <source-folder>
                    <label>JVC client</label>
                    <location>.</location>
                    <encoding>UTF-8</encoding>
                </source-folder>
            </folders>
            <ide-actions>
                <action name="build">
                    <target>DeployRelease</target>
                </action>
                <action name="run">
                    <target>DeployTest</target>
                </action>
            </ide-actions>
            <view>
                <items>
                    <source-folder style="packages">
                        <label>client\src</label>
                        <location>client/src</location>
                    </source-folder>
                    <source-folder style="packages">
                        <label>addins\src</label>
                        <location>addins/src</location>
                    </source-folder>
                    <source-folder style="packages">
                        <label>testgames</label>
                        <location>testgames</location>
                    </source-folder>
                    <source-file>
                        <location>build.xml</location>
                    </source-file>
                </items>
                <context-menu>
                    <ide-action name="build"/>
                    <ide-action name="run"/>
                </context-menu>
            </view>
        </general-data>
        <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2">
            <compilation-unit>
                <package-root>client/src</package-root>
                <source-level>1.4</source-level>
            </compilation-unit>
            <compilation-unit>
                <package-root>addins/src</package-root>
                <classpath mode="compile">lib/activation.jar;lib/mail.jar;dist/jvc.jar</classpath>
                <source-level>1.4</source-level>
            </compilation-unit>
            <compilation-unit>
                <package-root>testgames</package-root>
                <unit-tests/>
                <source-level>1.4</source-level>
            </compilation-unit>
        </java-data>
    </configuration>
</project>

Return to “Project 5: Open Source Java VGA Planets Client”

Who is online

Users browsing this forum: No registered users and 0 guests

cron