2011-08-01 44 views
0

我試圖用NetBeans 6.5.1編譯iReport 4.0.2。在iReport論壇上,它表示這是與之兼容的NetBeans平臺。使用NetBeans 6.5.1從源代碼編譯iReport 4.0.2 java.io.IOException

然而,編譯項目時,我得到這個錯誤:

C:\ Program Files文件\的NetBeans 6.5.1 \安全帶\ suite.xml:106:以下 發生錯誤而執行這一行:
C:\ Program Files \ NetBeans 6.5.1 \ harness \ build.xml:98:java.io.IOException:沒有定義netbeans.dest.dir在 V:\ iReport-4.0.2-src \ iReport -4.0.2-src \ jasperreports-components

這是行1 06在suite.xml

<subant target="netbeans" buildpath="${modules.sorted}" inheritrefs="false" inheritall="false"/> 

這是build.xml中的管線98:

> 

...它基本上是關閉的XML的開始標記(parseprojectxml) - 這是的上下文線(單個尖括號):

<parseprojectxml 
     project="." 
     publicpackagesproperty="public.packages" 
     friendsproperty="friends" 
     javadocpackagesproperty="module.javadoc.packages" 
     moduledependenciesproperty="module.dependencies" 
     moduleclasspathproperty="module.classpath" 
     publicpackagejardir="${public.package.jar.dir}" 
     modulerunclasspathproperty="module.run.classpath" 
     classpathextensionsproperty="class.path.extensions" 
    > 
     <testtype name="unit" 
        folder="test.unit.folder" 
        runtimecp="test.unit.runtime.cp" 
        compilecp="test.unit.compile.cp" 
        compiledep="test.unit.testdep"/> 
     <testtype name="qa-functional" 
        folder="test.qa-functional.folder" 
        runtimecp="test.qa-functional.runtime.cp" 
        compilecp="test.qa-functional.compile.cp" 
        compiledep="test.qa-functional.testdep"/> 
    </parseprojectxml> 

回答

1

的問題在某種程度上通過在NetBeans IDE打開每個模塊,然後打開屬性對話框並點擊OK爲每個模塊來解決。我重新啓動IDE,然後設法運行該項目。

如果有人可以解釋導致問題的原因以及爲什麼我的行爲能夠解決問題......我希望對此行爲有一個解釋。

謝謝!

2

我在iReports中繼版本(> 4.6.0)中也遇到了上述問題。標誌着關閉只讀模式(以前​​的答案的解決方案做)後,您可能需要在JasperReports中的擴展和MongoDbPlugin添加

<nbmproject2:property name="netbeans.dest.dir" value="nbplatform.${nbplatform.active}.netbeans.dest.dir" xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/> 

拉夫Ĵ

0

我可以編譯iREPORT分享到人人與NetBeans success.I認爲你必須修改文件名稱爲 「platform-private.properties」