Re: NetBeans 12 and 4K monitor

2020-09-07 Thread Patrik Karlström
Not sure if this was mentioned but the following works for me.
GDK_SCALE=2 netbeans

Source: https://issues.apache.org/jira/browse/NETBEANS-2360

I tend to prefer lodpi on my XPS because of high battery consumption and
fan noise when on hidpi.

Den mån 7 sep. 2020 kl 07:39 skrev Klerman :

> Hello,
> I recently changed to this Dell XPS 13 which has a high resolution monitor
> and Ubuntu 20.04.
> My settings are 3840X2160, 300%.
> I installed NetBeans 12.0 and to my surprise, it's practically unusable in
> this machine, as it's unable to adapt itself to these scales and the
> resolutions.
> I Googled for a solution, and the two I found all recommend to edit the
> netbeans.conf file.
> Using the locate command, I found two of these files in this system:
> /home/me/.local/share/Trash/files/netbeans.conf
> and
> /snap/netbeans/30/netbeans/etc/netbeans.conf
> The file in the snap folder is readonly, and I can't find the way to make
> it writable. The chmod command leaves it untouched.
> The file in the home folder seems not to have any effect on NetBeans.
> Could anyone please point me to the solution of this problem ?.
> Many thanks in advance,
> Klerman.
>
>
>
> --
>
> Klerman Gutierrez.
> Cel. / Mov.: +58 414 5320193
> http://www.flickr.com/photos/rimlit
> www.facebook.com/klerman
>


Re: NetBeans 12 and 4K monitor

2020-09-07 Thread Laszlo Kishalmi
Make sure that you are using JDK 11+ when running NetBeans. The latest 
JDK is recommended as the HiDPI support is becoming better over the 
time. Honestly, I'd just use my display as 1080p. I've did the same with 
my 2nd generation GalagoPro (that came with a 3K display). I've never 
regretted that setting.


On 9/7/20 2:37 PM, Klerman wrote:

Laszlo,

Thanks to your suggestion, now I know where is the folder for the 
local netbeans configurations.
Anyway, the settings that I found by Googling the subject of netbeans 
and Hi res monitors didn't make any change. I still get microscopic 
icons and weird fonts in netbeans 12.




Re: NetBeans 12 and 4K monitor

2020-09-07 Thread Klerman
Don,

I just connected my Dell XPS 13 to an old monitor, made the adjustments in
Ubuntu, and now, I can see the netbeans perfectly running.
Still searching for a way to configure netbeans so I can use it with the
laptop alone.
Thanks for your help.
Klerman


Re: NetBeans 12 and 4K monitor

2020-09-07 Thread Klerman
Laszlo,

Thanks to your suggestion, now I know where is the folder for the local
netbeans configurations.
Anyway, the settings that I found by Googling the subject of netbeans and
Hi res monitors didn't make any change. I still get microscopic icons and
weird fonts in netbeans 12.


Re: Maven deployment plugin for JavaFX

2020-09-07 Thread Bradley Willcott

Hi David,

Hope this helps with the packaging. I have cut this out of one of my 
projects:





   org.codehaus.mojo
   exec-maven-plugin
   1.6.0
   
   
   Zip Binary Jar and libs
   package
   
   exec
   
   
   zip
   
${project.build.directory}
   
false
   
true
   
   -r
   
${project.build.finalName}.zip
   
${project.build.finalName}.jar
   libs
   
   
   
   


org.apache.maven.plugins
maven-jar-plugin
3.2.0



true
libs/
org.myapp.Main

true

true





org.apache.maven.plugins
maven-dependency-plugin
3.1.1


copy-dependencies
prepare-package

copy-dependencies


runtime
test

${project.build.directory}/libs








The /maven-dependency-plugin/ is used to copy all the dependencies into
the 'libs' directory.

The /maven-jar-plugin/ is used to add the classpathPrefix: 'libs/' to
the manifest.  The forward slash at the end is required.

The /exec-maven-plugin/ is used to package everything into a 'zip'
archive for release.  Just unpack this zip file on the target system,
and set the CLASSPATH to include the jar file, and all should work.
I have as yet only tested this on my local system.

Cheers,
Brad.

On 4/9/20 9:21 pm, David Gradwell wrote:


Chris,

Hopefully some of the following will help.  We too did not want to use 
XCode (much!).  You have to install it and use certain upload/notarise 
tools, but that works.


So, my steps list is:

1.    Set up an Apple developer ID, pay fee etc.  using an 
email – we use a@b.c  in the following.


2.    Create and download a DeveloperID signing cert  to your 
development Mac's  login keychain from 
https://developer.apple.com/account/resources/certificates/list


3.    Create and download a Developer ID profile to System 
Preferences/Profiles.


4.    Build your project with Ant since Ant puts all the 
library files in a folder called lib in dist.  If Maven is your 
primary environment, just build the top level of the project with 
Ant.  If you know how to make Maven put all the dependencies in one 
place ready for jpackage please tell me !


5.    Local test the Ant project and if it behaves proceed.

6.    Make a Mac icon.

7.    Using the pre-release Java 15 (you will have to download 
it) then run jpackage with something like the following script.  I’ve 
hacked it a bit for confidentiality reasons.  There may be some space 
characters that need removing!.


export JAVA_HOME="/Users/myuser/Java Downloads/jdk-15.jdk/Contents/Home"

export PATH=" 
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/myuser/Java 
Downloads/jdk-15.jdk/Contents/Home/bin"


echo $PATH

rm -r /Users/myuser/NetBeansDev/MYAPPNAMEAnt/jpackageappimagetemp

rm -r /Users/myuser/NetBeansDev/MYAPPNAMEAnt/jpackageappimageoutput

jpackage --type app-image --app-version 0.0.1 --copyright "My company 
2020" --name MYAPPNAME --dest 
/Users/myuser/NetBeansDev/MYAPPNAMEAnt/jpackageappimageoutput --temp 
/Users/myuser/NetBeansDev/MYAPPNAMEAnt/jpackageappimagetemp --vendor 
"My Company" --icon 
/Users/myuser/NetBeansDev/MYAPPNAMEAnt/MYAPPNAME.icns --input 
/Users/myuser/NetBeansDev/MYAPPNAMEAnt/dist --main-jar 
MYAPPNAMEAnt.jar --main-class com.you MYAPPNAME.SomeClass 
--java-options " -Xdock:name=MYAPPNAME" --mac-package-identifier 
MYAPPNAME --mac-sign --mac-signing-keychain 
"/Users/myuser/Library/Keychains/login.keychain-db" --verbose


8.    Check that the signing worked and that the app has 
appeared at 

NetBeans 12 - how to point to LSP

2020-09-07 Thread Ewan Slater
Hi,

Could someone please point me to documentation tutorial for how to point 
Netbeans to an LSP server (running on my laptop)?

Ideally I’d like to be able to do this via the UI rather than editing config 
files directly.

Cheers,

Ewan


signature.asc
Description: Message signed with OpenPGP


RE: NetBeans 12 and 4K monitor

2020-09-07 Thread Lister Jonathan
Hi Klerman,
I have been happily using NetBeans with 4k displays for a few years now, albeit 
on physically large external monitors, not small laptop displays.

One of the tips that is often missed is to make sure that you are running 
NetBeans with a base JDK (netbeans_jdkhome) version > 8. JDK 9 brought support 
for HiDPI graphics, see https://openjdk.java.net/jeps/263

I am running NetBeans 11+ on JDK 13 with 2160 x 3840 (yes, portrait – actually 
two of those side by side) and scaled to +175%. With those settings I no longer 
need to change –fontSize in netbeans.conf

Hope this helps ;-)
J
From: Don mailto:don.albert...@gmail.com>>
Sent: Monday, 07 September, 2020 12:51
To: users@netbeans.apache.org
Subject: Re: NetBeans 12 and 4K monitor


I feel your pain.  When I got my XPS-13 it had Ubuntu 16 installed.  It has 
since been upgraded to 18. The XPS-13 by itself is good for taking to meetings 
(when they were in-person).  When I use Netbeans (or anything with a largish 
display pattern) I use the external monitor and a USB keyboard/mouse.

Don

On 9/7/20 1:38 AM, Klerman wrote:
Hello,
I recently changed to this Dell XPS 13 which has a high resolution monitor and 
Ubuntu 20.04.
My settings are 3840X2160, 300%.
I installed NetBeans 12.0 and to my surprise, it's practically unusable in this 
machine, as it's unable to adapt itself to these scales and the resolutions.
I Googled for a solution, and the two I found all recommend to edit the 
netbeans.conf file.
Using the locate command, I found two of these files in this system:
/home/me/.local/share/Trash/files/netbeans.conf
and
/snap/netbeans/30/netbeans/etc/netbeans.conf
The file in the snap folder is readonly, and I can't find the way to make it 
writable. The chmod command leaves it untouched.
The file in the home folder seems not to have any effect on NetBeans.
Could anyone please point me to the solution of this problem ?.
Many thanks in advance,
Klerman.



--

Klerman Gutierrez.
Cel. / Mov.: +58 414 5320193
http://www.flickr.com/photos/rimlit
www.facebook.com/klerman


RE: NetBeans 12 and 4K monitor

2020-09-07 Thread Lister Jonathan
Hi Klerman,
I have been happily using NetBeans with 4k displays for a few years now, albeit 
on physically large external monitors, not small laptop displays.

One of the tips that is often missed is to make sure that you are running 
NetBeans with a base JDK (netbeans_jdkhome) version > 8. JDK 9 brought support 
for HiDPI graphics, see https://openjdk.java.net/jeps/263

I am running NetBeans 11+ on JDK 13 with 2160 x 3840 (yes, portrait – actually 
two of those side by side) and scaled to +175%. With those settings I no longer 
need to change –fontSize in netbeans.conf

Hope this helps ;-)
J
From: Don 
Sent: Monday, 07 September, 2020 12:51
To: users@netbeans.apache.org
Subject: Re: NetBeans 12 and 4K monitor


I feel your pain.  When I got my XPS-13 it had Ubuntu 16 installed.  It has 
since been upgraded to 18. The XPS-13 by itself is good for taking to meetings 
(when they were in-person).  When I use Netbeans (or anything with a largish 
display pattern) I use the external monitor and a USB keyboard/mouse.

Don

On 9/7/20 1:38 AM, Klerman wrote:
Hello,
I recently changed to this Dell XPS 13 which has a high resolution monitor and 
Ubuntu 20.04.
My settings are 3840X2160, 300%.
I installed NetBeans 12.0 and to my surprise, it's practically unusable in this 
machine, as it's unable to adapt itself to these scales and the resolutions.
I Googled for a solution, and the two I found all recommend to edit the 
netbeans.conf file.
Using the locate command, I found two of these files in this system:
/home/me/.local/share/Trash/files/netbeans.conf
and
/snap/netbeans/30/netbeans/etc/netbeans.conf
The file in the snap folder is readonly, and I can't find the way to make it 
writable. The chmod command leaves it untouched.
The file in the home folder seems not to have any effect on NetBeans.
Could anyone please point me to the solution of this problem ?.
Many thanks in advance,
Klerman.



--

Klerman Gutierrez.
Cel. / Mov.: +58 414 5320193
http://www.flickr.com/photos/rimlit
www.facebook.com/klerman


NetBeans 8 logging stream

2020-09-07 Thread Christophe DOLCI
Hello all,

I’m using Netbeans RCP 8.0 (I know that’s an old one) like a framework for my 
application and, when I called it in script, all the log (fine, standard, 
error) is write in the stream stderr.
I would like to receive separate properly the stdout with my working logs and 
the stderr with all the error (LEVEL.SEVERE).

As I understand, by default, netbeans RCP log all in stderr stream, right? Do 
you know any tip to change this?

Regards

Christophe




Re: NetBeans 12 and 4K monitor

2020-09-07 Thread Don
I feel your pain.  When I got my XPS-13 it had Ubuntu 16 installed.  It 
has since been upgraded to 18. The XPS-13 by itself is good for taking 
to meetings (when they were in-person).  When I use Netbeans (or 
anything with a largish display pattern) I use the external monitor and 
a USB keyboard/mouse.


Don

On 9/7/20 1:38 AM, Klerman wrote:


Hello,
I recently changed to this Dell XPS 13 which has a high resolution 
monitor and Ubuntu 20.04.

My settings are 3840X2160, 300%.
I installed NetBeans 12.0 and to my surprise, it's practically 
unusable in this machine, as it's unable to adapt itself to these 
scales and the resolutions.
I Googled for a solution, and the two I found all recommend to edit 
the netbeans.conf file.

Using the locate command, I found two of these files in this system:
/home/me/.local/share/Trash/files/netbeans.conf
and
/snap/netbeans/30/netbeans/etc/netbeans.conf
The file in the snap folder is readonly, and I can't find the way to 
make it writable. The chmod command leaves it untouched.

The file in the home folder seems not to have any effect on NetBeans.
Could anyone please point me to the solution of this problem ?.
Many thanks in advance,
Klerman.



--

Klerman Gutierrez.
Cel. / Mov.: +58 414 5320193
http://www.flickr.com/photos/rimlit
www.facebook.com/klerman 


Re: NetBeans 12 and 4K monitor

2020-09-07 Thread Laszlo Kishalmi

Just do a:

mkdir $HOME/snap/netbeans/common/data/12.0/etc
cp /snap/netbeans/current/netbeans/etc/netbeans.conf 
$HOME/snap/netbeans/common/data/12.0/etc/



You would be able to customize the NetBeans config at: 
$HOME/snap/netbeans/common/data/12.0/etc/netbeans.conf



On 9/6/20 10:38 PM, Klerman wrote:

Hello,
I recently changed to this Dell XPS 13 which has a high resolution 
monitor and Ubuntu 20.04.

My settings are 3840X2160, 300%.
I installed NetBeans 12.0 and to my surprise, it's practically 
unusable in this machine, as it's unable to adapt itself to these 
scales and the resolutions.
I Googled for a solution, and the two I found all recommend to edit 
the netbeans.conf file.

Using the locate command, I found two of these files in this system:
/home/me/.local/share/Trash/files/netbeans.conf
and
/snap/netbeans/30/netbeans/etc/netbeans.conf
The file in the snap folder is readonly, and I can't find the way to 
make it writable. The chmod command leaves it untouched.

The file in the home folder seems not to have any effect on NetBeans.
Could anyone please point me to the solution of this problem ?.
Many thanks in advance,
Klerman.



--

Klerman Gutierrez.
Cel. / Mov.: +58 414 5320193
http://www.flickr.com/photos/rimlit
www.facebook.com/klerman 


RE: NetBeans 12 and 4K monitor

2020-09-07 Thread Rob Walker
Weird – I was pleasantly surprised with NB 11 on the XPS13 I had for a while. 
Seemed to handle scaling much better than past editions, or Eclipse. I forget 
though if I had to make some specific Java setting for it. I do kind of vaguely 
remember one.
-R

From: Klerman 
Sent: 07 September 2020 07:08
To: users@netbeans.apache.org
Cc: darinsmil...@gmail.com
Subject: Re: NetBeans 12 and 4K monitor

Hello Daring,
Yes I did. The command doesn't make any effect on NetBeans.


Re: NetBeans 12 and 4K monitor

2020-09-07 Thread Klerman
Hello Daring,
Yes I did. The command doesn't make any effect on NetBeans.