Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-482

Javadoc : cannot load class java.com.sun.tools.javadoc.Main

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.2
    • 1.4.2
    • Core features, JRuby
    • None
    • Win7, JRuby 1.5.1

    Description

      Looks like tools.jar is not included in the classpath.

      This the calling line:
      package(:zip, :id=>"#

      {id}

      -docs").include(Java::Commands.javadoc(project("ode").projects).target) unless ENV["JAVADOC"] =~ /^(no|off|false|skip)$/i

      This is a trace:

        • Invoke ode:jca-server
        • Invoke ode:tools
        • Invoke ode:utils
        • Invoke ode:agents
          Generating Javadoc for C:/Users/vanto/dev/svn/ode-trunk
          javadoc -d -verbose ode:agents ode:axis2 ode:axis2-war ode:bpel-api ode:bpel-api-jca ode:bpel-compiler ode:bpel-connector ode:bpel-dao ode:bpel-epr ode:bpel-obj ode:bpel-ql ode:bpel-runtime ode:bpel-schemas ode:bpel-scripts ode:bpel-store
          ode:bpel-test ode:dao-hibernate ode:dao-hibernate-db ode:dao-jpa ode:dao-jpa-ojpa-derby ode:jacob ode:jbi ode:jca-ra ode:jca-server ode:scheduler-simple ode:tools ode:utils
          Buildr aborted!
          NameError : cannot load Java class java.com.sun.tools.javadoc.Main
          c:/local/buildr-1.4.0/lib/ruby/site_ruby/shared/builtin/javasupport/java.rb:51:in `method_missing'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/java/commands.rb:189:in `javadoc'
          C:/Users/vanto/dev/svn/ode-trunk/Rakefile:610
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/project.rb:225:in `instance_exec'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/project.rb:225:in `define'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/project.rb:636:in `execute'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:146:in `switch_to_namespace'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/project.rb:635:in `execute'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:636:in `invoke_with_call_chain'
          c:/local/buildr-1.4.0/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:622:in `invoke_with_call_chain'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:617:in `invoke'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/util.rb:204:in `to_proc'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/project.rb:281:in `each'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/project.rb:281:in `projects'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/project.rb:971:in `projects'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:400:in `raw_load_buildfile'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:218:in `load_buildfile'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:502:in `standard_exception_handling'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:213:in `load_buildfile'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:137:in `run'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:502:in `standard_exception_handling'
          c:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/lib/buildr/core/application.rb:135:in `run'
          C:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/bin/buildr:19
          C:/local/buildr-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.4.2-java/bin/buildr:19:in
          `load'
          c:\local\buildr-1.4.0\bin\buildr:19

      Thanks,
      Tammo

      Attachments

        Issue Links

          Activity

            People

              toulmean Antoine Toulme
              vanto Tammo van Lessen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: