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.
I am working on [Truffle](https://github.com/graalvm/truffle) and in order to open the source in NetBeans one needs to run $ mx netbeansinit this generates the NetBeans Ant Project metadata. However there is one problem, the project needs to reference the "current" JDK. But that isn't possible to do automatically, user needs to go into the IDE and set it up properly. Could there be a way to set a fixed path to the JDK in the project.properties?
Created attachment 161691 [details] Proposed patch
Added proposed patch.
Properties required for per project platform: platforms.MyJDK.home=/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home platform.active=MyJDK
It is hard for me to get "the whole" picture. Having a use-case describing the overall usage of the APIs throughout the three modules, would make things clear. Maybe unnecessary, if we think this new system isn't going to be used by anyone else. On the other hand, there isn't the "unit" picture either. I haven't found any test. Btw. one of the apichanges.xml is referencing: <class package="org.netbeans.modules.java.api.common.classpath" name="ClassPathProviderImpl"/> - is this class public at all?
1) I will add an use case into JavaProject apichanges.xml 2) I will add an unit test 3) ClassPathProviderImpl - unfortunately it's a part of the friend API, I am trying to extend the class in API quality but I cannot change the name anymore.
http://hg.netbeans.org/jet-main/rev/87db59b3827e http://hg.netbeans.org/jet-main/rev/97cc7dba24cb
Integrated into 'main-silver', will be available in build *201608270002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/87db59b3827e User: Tomas Zezula <tzezula@netbeans.org> Log: #267489:Truffle 'mx netbeansinit' cannot hardcode path to JDK
Works great. Thanks.