This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Generated Ant build references dependent libraries in a way that will not compile on other machines. Steps to duplicate: 1) create a new project, Category: "JAVA", Project: Java Application (IDE will manage and generate ant files for you) 2) add a lib folder inside your project with a dependent jar 3) write code that references the dependent jar 4) Under project properties->Libraries, add the jar file in the compile tab 5) save project 6) Copy project to another OS (I tried both Linux to WindowsXP and WindowsXP to Linux) 7) calling ant from the command line fails with a "Cannot find symbol" with every reference to classes in the jar 8) Loading the project in Netbeans results in a "Reference Problems" Why this is a bug: I can't check in the ant build files because it builds on a different OS. If I can't check in the build files the ant files feature does me no good, I'll have to write my own build.xml anyway. The jars are relative to the project, stored in the project and it shouldn't use include a full path. Looking at the nbproject\project.properties if looks like it is indended to work the way I think it should: I only see relative paths. Here is my project.properties: vadoc.notree=false javadoc.private=false javadoc.splitindex=true javadoc.use=true javadoc.version=false javadoc.windowtitle= jnlp.codebase.type=local jnlp.enabled=false jnlp.offline-allowed=false jnlp.signed=false main.class=XmlStoreAndZeus meta.inf.dir=${src.dir}/META-INF platform.active=default_platform run.classpath=\ ${javac.classpath}:\ ${build.classes.dir}:\ ${file.reference.jaxb-impl.jar-1}:\ ${file.reference.xstream-1.2.2.jar} # Space-separated list of JVM arguments used when running the project # (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value # or test-sys-prop.name=value to set system properties for unit tests): run.jvmargs= run.test.classpath=\ ${javac.test.classpath}:\ ${build.test.classes.dir}:\ ${file.reference.jaxb-impl.jar-1}:\ ${file.reference.xstream-1.2.2.jar} source.encoding=UTF-8 src.dir=src src.samples.dir=samples src.src-gen.dir=src-gen test.src.dir=test
*** This issue has been marked as a duplicate of 44035 ***