Loading ...
Sorry, an error occurred while loading the content.

Building PCGen

Expand Messages
  • Barak
    Since the autobuild site seems to be stuck with a PCGen.jar file dated 10/11, could someone e-mail me about how to build pcgen from the CVS? I have java SDK
    Message 1 of 12 , Oct 19, 2002
    • 0 Attachment
      Since the autobuild site seems to be stuck with a PCGen.jar file dated
      10/11, could someone e-mail me about how to build pcgen from the CVS?

      I have java SDK 1.4.0, just no real knowledge of how to use it.

      Thanks.

      Barak
      LST Gibbon
      Output Sheet Gibbon
    • julieangalak
      I m trying to build pcgen, and am having trouble with it. I checked it out anonymously (from the src module) but I m having trouble with ant. I tried
      Message 2 of 12 , Jun 26, 2003
      • 0 Attachment
        I'm trying to build pcgen, and am having trouble with it. I checked
        it out anonymously (from the src module) but I'm having trouble with
        ant.

        I tried installing the latest version of ant, and that complained
        about javacc. I then went back and installed version 1.3 (as per the
        DEVELOPER_INSTALL file), and placed all the .class files from
        optional.jar into the ant\lib directory. When I run ant, I get a
        message that says "files\anta==a was unexpected at this time"

        I tried building the classes directly, but at least one of them seems
        to refer to a "SkinLookAndFeel" class that's a "com.l2fprod" class.
        Where do I get that one? Should I be downloading it separately?
        What's going on?

        Any advice on how to get the files downloaded and built would be
        greatly appreciated.
      • Emily Smirle
        ... OK, right there that s bad. Put optional.jar into the ant lib directory. Don t unjar it or anything, just put it right in. -- Emily Smirle (jerril)
        Message 3 of 12 , Jun 26, 2003
        • 0 Attachment
          julieangalak wrote:
          > I tried installing the latest version of ant, and that complained
          > about javacc. I then went back and installed version 1.3 (as per the
          > DEVELOPER_INSTALL file), and placed all the .class files from
          > optional.jar into the ant\lib directory.

          OK, right there that's bad.

          Put optional.jar into the ant\lib directory. Don't unjar it or anything,
          just put it right in.
          --
          Emily Smirle (jerril) Beware, for my Axe
          GMGen Princess will cut you off at the knees.
          Watch out for the spikes.
        • julieangalak
          ... anything, ... That makes sense, but I ve still got problems... I ve installed ant 1.5.3 (the latest), and it has an optional.jar file in its lib
          Message 4 of 12 , Jun 26, 2003
          • 0 Attachment
            --- In pcgen@yahoogroups.com, Emily Smirle <smirle4498@r...> wrote:
            > julieangalak wrote:
            > > I tried installing the latest version of ant, and that complained
            > > about javacc. I then went back and installed version 1.3 (as per the
            > > DEVELOPER_INSTALL file), and placed all the .class files from
            > > optional.jar into the ant\lib directory.
            >
            > OK, right there that's bad.
            >
            > Put optional.jar into the ant\lib directory. Don't unjar it or
            anything,
            > just put it right in.

            That makes sense, but I've still got problems...

            I've installed ant 1.5.3 (the latest), and it has an "optional.jar"
            file in its lib directory. If I just run it as is, I get this error:

            compile-compile:

            BUILD FAILED
            file:G:/rpg/d&d3/sources/build.xml:139: JavaCC home must be a valid
            directory.

            I downloaded an older optional.jar file (from ant 1.3), called
            "jakarta-ant-1.3-optional.jar When I place it in the lib directory, I
            get this eeror:

            Invalid implementation version between Ant core and Ant optional tasks.
            core : 1.5.3
            optional: null

            I tried renaming that file to just "optional.jar", overwriting the one
            that came with the ant distro, and got the same result.

            Please advise further.

            If anyone can tell me an older, specific version of ant that is
            available from ant.apache.org (or elsewhere) that will work, along
            with specific directions, I'd appreciate it.

            Thanks,
            Juliean
          • Barak
            Help! I haven t actually done a build in months. I tried to today and it s not working. Any help appreciated. :p Following is from the attempt to build (**
            Message 5 of 12 , Nov 5, 2006
            • 0 Attachment
              Help!

              I haven't actually done a build in months. I tried to today and it's not
              working. Any help appreciated. :p

              Following is from the attempt to build (** are notes inserted by me):

              Unable to locate tools.jar. Expected to find it in C:\Program
              Files\Java\jre1.5.
              0_09\lib\tools.jar

              ** - I checked and this file does exist in the directory listed (I even
              re-installed the JDK in case something got mixed up when I changed machines)

              Buildfile: build.xml

              init:
              [mkdir] Created dir: E:\pcgendev\code\build
              [mkdir] Created dir: E:\pcgendev\code\build\classes
              [mkdir] Created dir: E:\pcgendev\code\build\testclasses
              [mkdir] Created dir: E:\pcgendev\code\build\test-results\xml
              [mkdir] Created dir: E:\pcgendev\code\build\src\pcgen\util
              [mkdir] Created dir: E:\pcgendev\code\build\rpt

              properties:
              [copy] Copying 133 files to E:\pcgendev\code\build\classes

              compile-compile:
              [javacc] Java Compiler Compiler Version 3.2 (Parser Generator)
              [javacc] (type "javacc" with no arguments for help)
              [javacc] Reading from file
              E:\pcgendev\code\src\java\pcgen\util\DiceExpressio
              n.jj . . .
              [javacc] File "TokenMgrError.java" does not exist. Will create one.
              [javacc] File "ParseException.java" does not exist. Will create one.
              [javacc] File "Token.java" does not exist. Will create one.
              [javacc] File "SimpleCharStream.java" does not exist. Will create one.
              [javacc] Parser generated successfully.

              compile-optimize:
              [javac] Since fork is true, ignoring compiler setting.
              [javac] Compiling 1777 source files to E:\pcgendev\code\build\classes
              [javac] Since fork is true, ignoring compiler setting.

              BUILD FAILED
              E:\pcgendev\build.xml:179: Error running javac.exe compiler

              ** - and then this one... No idea here

              Total time: 10 seconds
              Press any key to continue . . .


              Barak
            • James Dempsey
              Hi Barak, ... The problem is that the default Java on your machine is the 1.5 Java Runtime Environment (JRE) rather than the Software Development Kit (SDK).
              Message 6 of 12 , Nov 5, 2006
              • 0 Attachment
                Hi Barak,

                On 05/11/06, Barak <barak@...> wrote:
                >
                > Help!
                >
                > I haven't actually done a build in months. I tried to today and it's not
                > working. Any help appreciated. :p
                >
                > Following is from the attempt to build (** are notes inserted by me):
                >
                > Unable to locate tools.jar. Expected to find it in C:\Program
                > Files\Java\jre1.5.
                > 0_09\lib\tools.jar
                >
                > ** - I checked and this file does exist in the directory listed (I even
                > re-installed the JDK in case something got mixed up when I changed
                > machines)



                The problem is that the default Java on your machine is the 1.5 Java Runtime
                Environment (JRE) rather than the Software Development Kit (SDK). The JRE
                doesn't include a Java compiler. You can download the SDK from
                http://java.sun.com/javase/downloads/index.jsp

                --
                Cheers,
                James Dempsey
                PCGen Code SB


                [Non-text portions of this message have been removed]
              • barak@hughes.net
                ... Runtime ... The JRE ... Err... you missed that last line up there eh? I just re-downloaded and re-installed the SDK this morning before trying to do the
                Message 7 of 12 , Nov 5, 2006
                • 0 Attachment
                  ----Original Message----
                  > > re-installed the JDK in case something got mixed up when I changed

                  > The problem is that the default Java on your machine is the 1.5 Java
                  Runtime
                  > Environment (JRE) rather than the Software Development Kit (SDK).
                  The JRE
                  > doesn't include a Java compiler. You can download the SDK from
                  > http://java.sun.com/javase/downloads/index.jsp


                  Err... you missed that last line up there eh? I just re-downloaded
                  and re-installed the SDK this morning before trying to do the build. :
                  p

                  Looks like I have an environment variable not set right... thought the
                  install would take care of that. *sigh*

                  Time to go digging around.

                  Barak
                • thpr
                  ... Try JAVA_HOME. It seems to be pointed to your JRE (hence James comment about running the JRE not JDK)
                  Message 8 of 12 , Nov 5, 2006
                  • 0 Attachment
                    --- In pcgen@yahoogroups.com, "barak@..." <barak@...> wrote:
                    > Err... you missed that last line up there eh? I just re-downloaded
                    > and re-installed the SDK this morning before trying to do the build. >
                    > Looks like I have an environment variable not set right... thought the
                    > install would take care of that. *sigh*

                    Try JAVA_HOME. It seems to be pointed to your JRE (hence James'
                    comment about running the JRE not JDK)
                  • James Dempsey
                    Hi, ... I saw it, but given the information above wanted to make sure the distinction is clear - you obviously have it clear but I have encountered quite a few
                    Message 9 of 12 , Nov 5, 2006
                    • 0 Attachment
                      Hi,

                      On 06/11/06, barak@... <barak@...> wrote:
                      >
                      > ----Original Message----
                      > > > re-installed the JDK in case something got mixed up when I changed
                      >
                      > > The problem is that the default Java on your machine is the 1.5 Java
                      > Runtime
                      > > Environment (JRE) rather than the Software Development Kit (SDK).
                      > The JRE
                      > > doesn't include a Java compiler. You can download the SDK from
                      > > http://java.sun.com/javase/downloads/index.jsp
                      >
                      >
                      > Err... you missed that last line up there eh? I just re-downloaded
                      > and re-installed the SDK this morning before trying to do the build. :
                      > p



                      I saw it, but given the information above wanted to make sure the
                      distinction is clear - you obviously have it clear but I have encountered
                      quite a few people who use the terms interchangeably.



                      Looks like I have an environment variable not set right... thought the
                      > install would take care of that. *sigh*
                      >
                      > Time to go digging around.



                      The two most likely culprits are JAVA_HOME and your path.

                      http://java.sun.com/j2se/1.5.0/install-windows.html#install might have some
                      useful info too.

                      --
                      Cheers,
                      James


                      [Non-text portions of this message have been removed]
                    • Barak
                      ... And of course I can t figure out what should be set where. There is no system or environment variable that is holding the path name that comes out in that
                      Message 10 of 12 , Nov 5, 2006
                      • 0 Attachment
                        > -----Original Message-----
                        > thought the install would take care of that. *sigh*
                        >
                        > Time to go digging around.

                        And of course I can't figure out what should be set where.

                        There is no system or environment variable that is holding the path name
                        that comes out in that build failure I posted earlier, nor can I figure out
                        how it is constructed in the build.xml so I can see what *its* looking at
                        and figure it out that way... *sigh*

                        All the java references I did find in the variables were referencing my last
                        version of _08.

                        Any further help would be appreciated.

                        Barak
                      • Barak
                        ... Ouch. Big difference. :p ... Well, not sure which it was, but I added the _09 to the path and set JAVA_HOME (which wasn t set anywhere that I could find)
                        Message 11 of 12 , Nov 5, 2006
                        • 0 Attachment
                          > -----Original Message-----

                          > I saw it, but given the information above wanted to make sure the
                          > distinction is clear - you obviously have it clear but I have
                          > encountered quite a few people who use the terms interchangeably.

                          Ouch. Big difference. :p

                          > > Time to go digging around.

                          > The two most likely culprits are JAVA_HOME and your path.

                          Well, not sure which it was, but I added the _09 to the path and set
                          JAVA_HOME (which wasn't set anywhere that I could find) and now it happily
                          builds.

                          Thanks for the help!

                          Barak
                        • Eduard Martinescu
                          I found that the best way to handle Java upgrades on Windows is to just uninstall all existing versions, and then install the new version. This usually results
                          Message 12 of 12 , Nov 6, 2006
                          • 0 Attachment
                            I found that the best way to handle Java upgrades on Windows is to just
                            uninstall all existing versions, and then install the new version. This
                            usually results in a clean system with JAVA_HOME and PATH set up correctly.

                            Of course, if you were using Linux, there wouldn't be this problem of a
                            split JRE/JDK install. :)

                            Ed
                          Your message has been successfully submitted and would be delivered to recipients shortly.