Menu

Problem Compiling/running

Help
2006-10-03
2013-04-09
  • Nobody/Anonymous

    I run build_all and this error comes up at the end:
    BUILD FAILED
    file:/root/pain_0_46/build.xml:61: The <javadoc2> task doesn't support the "breakiterator" attribute.

    So I ran build_code since I figured the docs aren't that necessary. It worked fine but when I went in to run run.cmd this came up:
    # ./run.cmd
    Usage: java [-options] class [args...]
               (to execute a class)
       or  java [-options] -jar jarfile [args...]
               (to execute a jar file)

    where options include:
        -client       to select the "client" VM
        -server       to select the "server" VM
        -hotspot      is a synonym for the "client" VM  [deprecated]
                      The default VM is client.

        -cp <class search path of directories and zip/jar files>
        -classpath <class search path of directories and zip/jar files>
                      A : separated list of directories, JAR archives,
                      and ZIP archives to search for class files.
        -D<name>=<value>
                      set a system property
        -verbose[:class|gc|jni]
                      enable verbose output
        -version      print product version and exit
        -version:<value>
                      require the specified version to run
        -showversion  print product version and continue
        -jre-restrict-search | -jre-no-restrict-search
                      include/exclude user private JREs in the version search
        -? -help      print this help message
        -X            print help on non-standard options
        -ea[:<packagename>...|:<classname>]
        -enableassertions[:<packagename>...|:<classname>]
                      enable assertions
        -da[:<packagename>...|:<classname>]
        -disableassertions[:<packagename>...|:<classname>]
                      disable assertions
        -esa | -enablesystemassertions
                      enable system assertions
        -dsa | -disablesystemassertions
                      disable system assertions
    ./run.cmd: line 1: ../../codebase/classes: is a directory
    ./run.cmd: line 1: ./classes: is a directory

    Any suggestions?

     
    • Nobody/Anonymous

      I fixed the startup bug by changing all the ; to : in the run.cmd since it's a linux system, not windows. Any suggestions for the compiler error?

       
    • Mike Fursov

      Mike Fursov - 2006-10-12

      I'll take a look at the javadoc problem
      You can just remove the whole javadoc section from the file and build without it.

       
    • Nobody/Anonymous

      Microsoft Windows [Version 6.0.6001]
      Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

      C:\Windows\System32>cd c:\PainCodebase

      c:\PainCodebase>ant
      Buildfile: build.xml

      init:
          [mkdir] Created dir: c:\PainCodebase\db\classes
          [mkdir] Created dir: c:\PainCodebase\db\doc
          [mkdir] Created dir: c:\PainCodebase\codebase\classes
          [mkdir] Created dir: c:\PainCodebase\codebase\doc
          [mkdir] Created dir: c:\PainCodebase\tests\classes
          [mkdir] Created dir: c:\PainCodebase\gui\classes
          [mkdir] Created dir: c:\PainCodebase\gui\doc
          [mkdir] Created dir: c:\PainCodebase\gui_codebase_module\classes
          [mkdir] Created dir: c:\PainCodebase\mudlibs\tinylib\classes

      paindb:
           [echo] compiling..
          [javac] Compiling 39 source files to c:\PainCodebase\db\classes

      codebase:
           [echo] compiling..
          [javac] Compiling 64 source files to c:\PainCodebase\codebase\classes

      mudlib:
           [echo] compiling..
          [javac] Compiling 168 source files to c:\PainCodebase\mudlibs\tinylib\classe
      s
          [javac] c:\PainCodebase\mudlibs\tinylib\src\net\sourceforge\pain\tinylib\log
      ic\fn\LogoFn.java:14: reference to Console is ambiguous, both class java.io.Cons
      ole in java.io and class net.sourceforge.pain.tinylib.Console in net.sourceforge
      .pain.tinylib match
          [javac]     public static void showLogo(Console console) {
          [javac]                                 ^
          [javac] 1 error

      BUILD FAILED
      c:\PainCodebase\build.xml:70: Compile failed; see the compiler error output for
      details.

      Total time: 3 seconds
      c:\PainCodebase>CD %ANT_HOME%

      C:\ant>CD %JAVA_HOME%

      C:\Program Files\Java\jdk1.6.0_12>

      Hoping somebody still looks at these forums...seems kind of dead now :( Anyway, if someone does read this any idea why the build is failing on me? :( Also where do I look for the compiler error output? Thanks in advance.

       
  • Nobody/Anonymous

    1. Open c:\PainCodebase\mudlibs\tinylib\src\net\sourceforge\pain\tinylib\logic\fn\LogoFn.java using a text editor
    2. Locate this line at the top:
        import java.io.*;
    3. Replace said line with these 2 lines:
        import java.io.IOException;
        import java.io.FileReader;
    4. Save the file and rebuild by running ant.

     

Log in to post a comment.