Re: Where to put driver JAR

2021-11-01 Thread Richard Grin
Window Services > Databases > Drivers. New Driver... and add the jar of the MySQL driver; Driver class com.mysq.cj.jdbc.Driver (for version 8 of MySQL). Le 02/11/2021 à 06:31, Greenberg, Gary a écrit : Just got a new laptop and installed NB 12.5 on it. Need to connect to mySQL (remote

Where to put driver JAR

2021-11-01 Thread Greenberg, Gary
Just got a new laptop and installed NB 12.5 on it. Need to connect to mySQL (remote host). I did run mysql-jconnect MSI file which suppose to install the driver on my box. However Netbeans cannot find it. I can extract JAR from MSI, but not sure where shall I drop it in the Netbeans installation.

Re: OT perhaps (better directed to Oracle?): Suggestions for improving checked exceptions in Java.

2021-11-01 Thread Owen Thomas
On Fri, 29 Oct 2021 at 11:48, Owen Thomas wrote: > I say the following. Have an abstract checked exception class in the Java > SE API. Call it, say, Checked*Managed*Exception. Descendents of this > class behave like any other checked exception, with perhaps a few caveats > [covered in the

Re: OT perhaps (better directed to Oracle?): Suggestions for improving checked exceptions in Java.

2021-11-01 Thread Owen Thomas
On Tue, 2 Nov 2021 at 06:35, Emilian Bold wrote: > It looks to me that the JVM doesn't have the concept of checked > exceptions, only Java has. So, it may be valid bytecode to just rip out > checked exception from the method signatures. New compilations, targeting a > modified JAR, will not

Re: OT perhaps (better directed to Oracle?): Suggestions for improving checked exceptions in Java.

2021-11-01 Thread Emilian Bold
It looks to me that the JVM doesn't have the concept of checked exceptions, only Java has. So, it may be valid bytecode to just rip out checked exception from the method signatures. New compilations, targeting a modified JAR, will not complain about the checked exception. At runtime they will be

Re: OT perhaps (better directed to Oracle?): Suggestions for improving checked exceptions in Java.

2021-11-01 Thread Alonso Del Arte
> Might it be good to have a way to indicate to others that your module can guarantee that checked exceptions have not been buried inside unchecked ones? Okay, that might be good to know. We can certainly write that in the Javadoc, but without a system like what you're proposing we would be on

"Go to Type" & JDK class loading/decompilation anomaly

2021-11-01 Thread Giles Winstanley
Trying to examine source of JDK class (e.g. JTable), so bring up "Go to Source" window, type name, and click OK. I have multiple Java Platforms defined, each of which has its sources defined/attached as populated by default Netbeans discovery on definition. The first time I lookup a class in this