Chris_uk | 27 Mar 01:37 2015
Picon

Netbeans php and smarty.

Hi folks, firstly i don't know the first thing about how to make plugin adjustments otherwise i would just do
this and post it up for addition to future releases.

Im looking for an option to automagically create the template files when i make a php file. I think this could
work because netbeans already detects projects using smarty and adds the light bulb.

Current method, create php file this opens up, then go back and create template file.

What i would like to see, on open the php file dialogue complete as normal and select "make corresponding tpl
file". I believe it would only need a checkbox on the dialogue and an option in smarty plugin settings to set
the template directory. the php file and template can share the name with a different extension.

mja | 26 Mar 17:29 2015

Bug with Netbeans menus in Centos 7

I recently upgraded my system from Centos 6.5 to Centos 7. In the process of reloading everything I also
updated Netbeans from 8.0 to 8.0.2. Previously I never had any problems with Netbeans, but ever since the
update, mouse-menu interaction has been flawed. When I click on the menu title, the menu opens correctly,
but once I tried to move my mouse to actually select an option in that menu, the active menu changes to about 2
menus to the left, and  the selected option becomes whatever one or two options above where the mouse is in
the (incorrectly) active menu. If I right click a project I get the same results though it is clearer: The
menu selection seems to be offset incorrectly, such that it is registering the mouse's position as being
higher and further left than it actually is. This o
 nly effects menus (though there is some odd text bugs where the labels are a few pixels lower than they should
be cutting of the tail of any letter that has one, such as 'j' or 'y'), everyt!
 hing else functions correctly otherwise.

I've attached an image of the glitch i question. For context, I was trying to select something in the 'Tools'
menu. You will notice in the picture that the 'Profile' menu is open and 'Attach Profiler' is selected.
This wasn't selected when the mouse was parallel with the selection but rather only selected after going
further down (about where it is in the picture). Likewise, in the right click menu of a maven project, I have
to be parallel with the 'Debug' option in order to select the 'Run' option.

Is this a known bug, has anyone else seen this?

Attachments: 
http://forums.netbeans.org//files/netbeansbug_104.png

Mitch Claborn | 26 Mar 19:06 2015
Picon

Running pre-selected list of projects

Short version: is there a way to run a pre-selected list of projects, 
either all at once, or sequentially, with just a few clicks?  The list 
might have 20+ projects that I wish to run.  I know I can select the 
projects in the projects view and then right click and "run" and that 
will run them sequentially.  I'm hoping for a way to have that list of 
projects kept somewhere to make this faster.

Background: I use JRebel with NetBeans and really, really love it. But 
it only works if Compile on Save (CoS) is enable for all the projects 
that you care about using with JRebel.  When you do a NetBeans Clean + 
Build, the directory where the CoS classes are generated is cleared, 
rendering JRebel useless for that project.  To get that directory back, 
I must "run" the project.  I occasionally have to clean + build a 
project, and when I do I spend several minutes running projects to get 
back to productive development mode.

--

-- 

Mitch

Bayless Kirtley | 26 Mar 18:12 2015
Picon
Picon

Re: NB Can't find JDK

I understand all that. Strange thing though. When installing Netbeans, I did tell it JDK 1.8_05 and that was in the .conf file. But it was commented. Still that was the version that Netbeans wanted to use. It must get that somewhere other than the .conf file. When I uncommented it and changed to upd 40, it no longer complained.
 
Bayless
 
 
Sent: Thursday, March 26, 2015 10:38 AM
Subject: [nbusers] Re: NB Can't find JDK
 
You dont have to remove the existing jdk when you install a new one - then netbeans continues to work - i work with multiple jdks' installed at the same time for multiple reasons.
 
when you 1st install netbeans it needs a jre - and the default OS one will usually suffice to do the installation, if you have one, if you dont you must install one 1st. - when you do the installation it asks/and or prompts you for the jdk to use - and that jdk is the one that gets configured into etc/netbeans.conf.
 
when you change the jdk - remove one, install another - the etc/netbeans.conf file does not change
 
-Gary
----- Original Message -----
Sent: Wednesday, March 25, 2015 7:46 PM
Subject: [nbusers] Re: NB Can't find JDK
 
Thanks for the help, everyone. I was hoping for a “one time” solution. It does seem that Netbeans being tied closely enough to Java that there should be one. Oh well, life goes on.
 
Bayless
 
 
From: Brett Ryan
Sent: Wednesday, March 25, 2015 5:05 PM
Subject: [nbusers] Re: NB Can't find JDK
 
Its been a while since I've had to use windows, but i would set JDK_HOME as an environment variable and reference this in netbeans.conf. Its also required to be set for tools like maven and ant from the command line. This way i would also add %JDK_HOME%\bin;%JAVA_HOME%\bin to path, and set JAVA_HOME=%JDK_HOME%\jre

java does have a defaults system in windows through control panel, though its only for the JRE and as I recall it would only apply to the applet browser plugin being used.

On 26 Mar 2015, at 08:54, Bayless Kirtley <bkirt <at> cox.net> wrote:

Thank you a lot. That worked. But will I have to do it again every time I get a Java update? It really seems like Netbeans should be able to just automatically use the default Jdk unless I tell it otherwise.
 
Bayless
 
 
Sent: Wednesday, March 25, 2015 4:03 PM
Subject: [nbusers] Re: NB Can't find JDK
 
at /netbeans/etc/netbeans.conf,  uncomment #netbeans_jdkhome="/path/to/jdk" (delete #), add the path to your installed jdk.
 
On Wed, Mar 25, 2015 at 9:49 PM, Bayless Kirtley <bkirt <at> cox.net> wrote:
After updating Java and removing the older version, Netbeans can’t find the older one and I have to tell it to use the default before it will start. I can’t find where to tell Netbeans to always assume the default or at least point to the only version I have. It has never done this in the past that I can remember.
 

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5856 / Virus Database: 4315/9379 - Release Date: 03/25/15

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5856 / Virus Database: 4315/9379 - Release Date: 03/25/15

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5856 / Virus Database: 4315/9387 - Release Date: 03/26/15

Michel Roussel | 26 Mar 15:40 2015

Variables with address

Hello,
First of all, sorry for my english...hope you will understand !...
I'm a newbie with Netbeans and I would like to use it to develop programs in C for embedded systems.
For that, I use C compiler/ for HC12 µC. In embedded system, some components must be used by writing/reading at an address.
Wtih my compiler, I must declare these components like this:
 
char ECONTACT <at> 0x230;
volatile short HCTL1 <at> 0x240;
etc...
 
My problem is that Netbeans doesn't understand <at> 0x230 so every lines like these are fault ('Unable to resolve identifier ECONTACT')
 
Can you tell me how to resolve this problem ?
 
Thanks in advance
 
Michel   
Bayless Kirtley | 26 Mar 14:27 2015
Picon
Picon

Re: NB Can't find JDK

Thanks for the explanation Brett. I’ve been a Java developer for years and have used Netbeans since 5.0 but I’m not a Windows expert. It is strange though that I have never run into this before. I guess I was just a little more aggressive this time in cleaning up old installed programs.
 
Bayless
 
 
From: Brett Ryan
Sent: Wednesday, March 25, 2015 10:28 PM
Subject: [nbusers] Re: NB Can't find JDK
 
This isn't so much NetBeans problem but more of the operating system in question does not offer any defaulting mechanism for a full tool installation.
 
Oracle could potentially offer a 'jdkhome.exe' utility that could read a registry entry similar to how the browser plugin works but return the path to the currently selected JDK installation. You could look at creating some sort of request for this within OpenJDK but it's a windows specific function as other OS's have a valid defaulting mechanism built in.
 
Note also that JDK and JRE are not synonymous, you would likely have one JRE but may have the last three versions of the JDK installed for building software against (1.6, 1.7, 1.8) and need to select between them.
 
 
 
 
On 26 Mar 2015, at 13:46, Bayless Kirtley <bkirt <at> cox.net> wrote:
 
Thanks for the help, everyone. I was hoping for a “one time” solution. It does seem that Netbeans being tied closely enough to Java that there should be one. Oh well, life goes on.
 
Bayless
 
 
From: Brett Ryan
Sent: Wednesday, March 25, 2015 5:05 PM
Subject: [nbusers] Re: NB Can't find JDK
 
Its been a while since I've had to use windows, but i would set JDK_HOME as an environment variable and reference this in netbeans.conf. Its also required to be set for tools like maven and ant from the command line. This way i would also add %JDK_HOME%\bin;%JAVA_HOME%\bin to path, and set JAVA_HOME=%JDK_HOME%\jre

java does have a defaults system in windows through control panel, though its only for the JRE and as I recall it would only apply to the applet browser plugin being used.

On 26 Mar 2015, at 08:54, Bayless Kirtley <bkirt <at> cox.net> wrote:

Thank you a lot. That worked. But will I have to do it again every time I get a Java update? It really seems like Netbeans should be able to just automatically use the default Jdk unless I tell it otherwise.
 
Bayless
 
 
Sent: Wednesday, March 25, 2015 4:03 PM
Subject: [nbusers] Re: NB Can't find JDK
 
at /netbeans/etc/netbeans.conf,  uncomment #netbeans_jdkhome="/path/to/jdk" (delete #), add the path to your installed jdk.
 
On Wed, Mar 25, 2015 at 9:49 PM, Bayless Kirtley <bkirt <at> cox.net> wrote:
After updating Java and removing the older version, Netbeans can’t find the older one and I have to tell it to use the default before it will start. I can’t find where to tell Netbeans to always assume the default or at least point to the only version I have. It has never done this in the past that I can remember.
 
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5856 / Virus Database: 4315/9379 - Release Date: 03/25/15
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5856 / Virus Database: 4315/9379 - Release Date: 03/25/15
 

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5856 / Virus Database: 4315/9383 - Release Date: 03/25/15

netmackan | 26 Mar 12:55 2015

Both Maven pom.xml and nbproject

Hi,

I am investigating a migration for our project from Ant (NetBeans projects) to Maven. At the moment I have
got that far that the project can be built either using Ant or Maven as I have both build.xml+nbproject and pom.xml.

The issue now is that when opening the projects in the IDE, as there is a nbproject, that will be opened but I
want to start use the Maven project still keeping the Ant one for some time.

[Question] 
Is there a way to make NetBeans IDE to use the Maven project even if there is a nbproject?

Bayless Kirtley | 26 Mar 03:46 2015
Picon
Picon

Re: NB Can't find JDK

Thanks for the help, everyone. I was hoping for a “one time” solution. It does seem that Netbeans being tied closely enough to Java that there should be one. Oh well, life goes on.
 
Bayless
 
 
From: Brett Ryan
Sent: Wednesday, March 25, 2015 5:05 PM
Subject: [nbusers] Re: NB Can't find JDK
 
Its been a while since I've had to use windows, but i would set JDK_HOME as an environment variable and reference this in netbeans.conf. Its also required to be set for tools like maven and ant from the command line. This way i would also add %JDK_HOME%\bin;%JAVA_HOME%\bin to path, and set JAVA_HOME=%JDK_HOME%\jre

java does have a defaults system in windows through control panel, though its only for the JRE and as I recall it would only apply to the applet browser plugin being used.

On 26 Mar 2015, at 08:54, Bayless Kirtley <bkirt <at> cox.net> wrote:

Thank you a lot. That worked. But will I have to do it again every time I get a Java update? It really seems like Netbeans should be able to just automatically use the default Jdk unless I tell it otherwise.
 
Bayless
 
 
Sent: Wednesday, March 25, 2015 4:03 PM
Subject: [nbusers] Re: NB Can't find JDK
 
at /netbeans/etc/netbeans.conf,  uncomment #netbeans_jdkhome="/path/to/jdk" (delete #), add the path to your installed jdk.
 
On Wed, Mar 25, 2015 at 9:49 PM, Bayless Kirtley <bkirt <at> cox.net> wrote:
After updating Java and removing the older version, Netbeans can’t find the older one and I have to tell it to use the default before it will start. I can’t find where to tell Netbeans to always assume the default or at least point to the only version I have. It has never done this in the past that I can remember.
 

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5856 / Virus Database: 4315/9379 - Release Date: 03/25/15

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5856 / Virus Database: 4315/9379 - Release Date: 03/25/15

Bayless Kirtley | 25 Mar 22:54 2015
Picon
Picon

Re: NB Can't find JDK

Thank you a lot. That worked. But will I have to do it again every time I get a Java update? It really seems like Netbeans should be able to just automatically use the default Jdk unless I tell it otherwise.
 
Bayless
 
 
Sent: Wednesday, March 25, 2015 4:03 PM
Subject: [nbusers] Re: NB Can't find JDK
 
at /netbeans/etc/netbeans.conf,  uncomment #netbeans_jdkhome="/path/to/jdk" (delete #), add the path to your installed jdk.
 
On Wed, Mar 25, 2015 at 9:49 PM, Bayless Kirtley <bkirt <at> cox.net> wrote:
After updating Java and removing the older version, Netbeans can’t find the older one and I have to tell it to use the default before it will start. I can’t find where to tell Netbeans to always assume the default or at least point to the only version I have. It has never done this in the past that I can remember.
 

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5856 / Virus Database: 4315/9379 - Release Date: 03/25/15

Bayless Kirtley | 25 Mar 22:38 2015
Picon
Picon

Re: NB Can't find JDK

Sorry. I should have said, using Windows 7, 64 bit. Is there a Windows option?
 
 
From: kbnk
Sent: Wednesday, March 25, 2015 4:24 PM
Subject: [nbusers] Re: NB Can't find JDK
 
Hello,

When using linux, try to utilize alternatives when setting jdk/jre home dir. When installing Netbeans, point to the JDK referred with alternatives link. Whenever jdk version changes, you will be able to smoothly switch the JDK version.

Best regards.

On 03/25/2015 10:03 PM, djamel torche wrote:
at /netbeans/etc/netbeans.conf,  uncomment #netbeans_jdkhome="/path/to/jdk" (delete #), add the path to your installed jdk.
 
On Wed, Mar 25, 2015 at 9:49 PM, Bayless Kirtley <bkirt <at> cox.net> wrote:
After updating Java and removing the older version, Netbeans can’t find the older one and I have to tell it to use the default before it will start. I can’t find where to tell Netbeans to always assume the default or at least point to the only version I have. It has never done this in the past that I can remember.
 

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2015.0.5856 / Virus Database: 4315/9379 - Release Date: 03/25/15

Bayless Kirtley | 25 Mar 21:49 2015
Picon
Picon

NB Can't find JDK

After updating Java and removing the older version, Netbeans can’t find the older one and I have to tell it to use the default before it will start. I can’t find where to tell Netbeans to always assume the default or at least point to the only version I have. It has never done this in the past that I can remember.

Gmane