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.

Bug 256836 - "Generate JNI Library Project" generates remote project (user can't select local host)
Summary: "Generate JNI Library Project" generates remote project (user can't select lo...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Mixed Development (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-27 15:08 UTC by soldatov
Modified: 2016-07-15 01:48 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2015-11-27 15:08:48 UTC
If current host is a remote host, then IDE will generate remote native project. And user can't select local host in a wizard.

Scenario:
- Add some remote host (sparc,sftp mode)
- Set this host as a default host
- Create Java project and add "native static void foo();" line
- Build project
- Call context menu on java file and select "Generate JNI Library Project"
==> "New JNI Library Project" window has not Host field
- Press Finish button

1) I Project Properties window I see Sparc host in "Build|Build Host" field
2) In Java project I see Run|VM Options="-Djava.library.path=/export/files/NB/CppJNILibrary_2/dist/Debug/GNU-Solaris-Sparc" on my x86 machine.
Comment 1 fmatz 2016-01-17 21:55:04 UTC
Hi,
I have installed a new NB 8.1, create a new Java Main.class 
but can not see the grayed out "Generate JNI Library Project" 
on right clicking this class.

What is wrong ?
Friedhold
Comment 2 Vladimir Kvashin 2016-01-19 12:02:24 UTC
Friedhold, what you describe is quite different from the original bug description. Please file it as a separate bug.
Comment 3 petrk 2016-07-13 15:35:08 UTC
Alexander, as far as I remember, you added functionality to generate project to Mixed Development. Can you please look at the bug?
Comment 4 Alexander Simon 2016-07-14 09:35:38 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/061c488379d2
Comment 5 Quality Engineering 2016-07-15 01:48:38 UTC
Integrated into 'main-silver', will be available in build *201607150002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/061c488379d2
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #256836 "Generate JNI Library Project" generates remote project (user can't select local host)