I have a tiny little Java OpenJDK 17 Module file, module-info.java,
---------------------------
module JavaApplication
{
requires java.base;
}
---------------------------
and Netbeans 12.5 is giving me the following errors:
C:\Users\User\Documents\NetBeansProjects\JavaAppli cation1\src\Java1\Start.java:1: error: file should be on source path, or on patch path for module
package Java1;
C:\Users\User\Documents\NetBeansProjects\JavaAppli cation1\src\Java1\module-info.java:1: error: file should be on source path, or on patch path for module
module JavaApplication
2 errors
-If I have a Java application, where exactly am I supposed to put the module file itself, what do I do to get it to compile and insert correctly?
Particularly in a Netbeans 12.5 Java Application?
The originators of Java have posted a Java Enhancement Proposal statement on the web.
What it refers to is the floating point arithmetic behaviour in Java 1.1.
It also refers to SSE, a phenomenon in other language, such as C++.
They do refer to the original floating support semantics
that were there in version 1.1 of Java.
What they are describing, in these terms, is floating point arithmetic without
error phenomenon. A circumstance where:
---------------------------
package Java1;
import static java.lang.System.*;
public class Start
{
public static void main(String[] args)
{
out.println("Greetings");
out.println();
float a = 0.1F;
float b = 0.1F;
float c = a*b;
out.println(c);
double d = 0.1D;
double e = 0.1D;
double f = d*e;
out.println(f);
out.println();
out.println("Goodbye.");
}
}
---------------------------
should prints the solution 0.01 in both instances, instead of
0.010000001
0.010000000000000002
I am on Windows 10 64 bit Home, and am using Netbeans 12.5 successfully, but on
top of Java OpenJDK 17.
-Most importantly, JEP 306 refers to the adjustment of these very floating
point calculations, such that this code example will output
0.01
0.01
and nothing further, according to the language used on the JEP post.
How can I get the latter defaulting floating point defaulting behaviour with
OpenJDK 17?