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.
Summary: | can not build main-silver with jdk8 | ||
---|---|---|---|
Product: | www | Reporter: | err <err> |
Component: | Builds & Repositories | Assignee: | pgebauer <pgebauer> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | anebuzelsky, markiewb, skygo, sunflower |
Priority: | P2 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 250848 | ||
Bug Blocks: | |||
Attachments: | fix for the build on windows |
Description
err
2015-04-20 17:46:19 UTC
Make sure to also have the JDK8 javac on PATH and it works. (In reply to Antonin Nebuzelsky from comment #1) > Make sure to also have the JDK8 javac on PATH and it works. Would you clarify as to why this is required? And why isn't it a WONTFIX rather than WORKSFORME? I added javac to the path, still fails. $ uname -a CYGWIN_NT-6.1 spirit 1.7.30(0.272/5/3) 2014-05-23 10:36 x86_64 Cygwin $ echo $JAVA_HOME /b/j/Java/latest $ which javac /b/j/Java/latest/bin/javac $ ls -l /b/j/Java/latest lrwxrwxrwx 1 err None 11 Mar 13 08:24 /b/j/Java/latest -> jdk1.8.0_40 $ echo $PATH /err/bin:/usr/local/bin:/usr/bin:/cygdrive/c/ProgramData/Oracle/Java/javapath:/pf/Windows Resource Kits/Tools:.......:/pf/TortoiseHg:/pf/Skype/Phone:/usr/lib/lapack:/b/j/Java/latest/bin $ cat nbbuild/user.build.properties cluster.config=basic nbjdk.home=C:/b/j/Java/latest permit.jdk8.builds=true BTW, the page http://wiki.netbeans.org/WorkingWithNetBeansSources makes no mention of this requirement. (In reply to err from comment #3) > I added javac to the path, still fails. Did you "ant clean" before retrying "ant build"? (In reply to Antonin Nebuzelsky from comment #4) > (In reply to err from comment #3) > > I added javac to the path, still fails. > > Did you "ant clean" before retrying "ant build"? Yes. I just tried again, with JAVA_HOME both ways. It fails as in the initial report. I can build main-silver with jdk8 on our linux build machine without problems. The issue is very likely related to the reporter's local JDK setup. I will try to reproduce the issue on Windows. hi, I try it on fedora linux 22 and windows with same ant 1.9.4 jdk 7_80 and jdk 8_60 running on jdk7 -> targeting 1.7 windows and linux build OK targeting 1.8 both build fail on the erasure issue running on jdk8 -> targeting 1.8 linux pass windows on error because of nashhorn. PS on fedora default ant install some libs are missing (need a full ant) Created attachment 156590 [details]
fix for the build on windows
The project properties were not compatible with windows build.
I put same configuration as in other modules
using ${nb_all} and ${path.separator}
Regards
Since the problem is NOT "related to the reporter's local JDK setup" as suggested in comment #6, and further analysis done by @skygo shows a possible fix, setting the priority back to 2. See bug # 250848, this bug /may/ be a dup of that one, or depend on it or something. Solved during on jdk9 branch bootstrap path could not be build nevertheless java_home settings due to usage of linux specific path separator jet-main#75112bea32f9 |