java-10 Questions
7
Solved
TLDR: On Java 9/10, a web app in Tomcat has no access to JAXB even though its reference implementation is present on the class path.
Edit: No, this is not a duplicate of How to resolve java.lang.N...
46
Solved
I have some code that uses JAXB API classes which have been provided as a part of the JDK in Java 6/7/8. When I run the same code with Java 9, at runtime I get errors indicating that JAXB classes c...
3
As answered in How to ignore the system default Locale to retrieve resourceBundle you can configure in Java 8 or older to not fallback to default locale via:
ResourceBundle.getBundle("MyResources"...
Sallyanne asked 24/5, 2017 at 20:2
9
Solved
I am using the 'jshell command in my machine it is not recognised. But java command is working fine. is there any environment setup for jshell in jdk 10
C:\Users\Kannan
λ jshell
'jshell' is not re...
3
Solved
Basically, I am using the following code to parse string as LocalDateTime, which works fine most of the time.
DateTimeFormatter dtformatter = DateTimeFormatter.ofPattern("yyyyMMddHHmmssSSS");
H...
3
I'm trying use XMLReaderFactory, but this is deprecated.
Now, how Can I create a instance of XMLReader?
2
Solved
I've installed the version 2018.1 of IntelliJ IDEA (COMMUNITY EDITION), which added support for Java 10.
When I tried to use new "var" to type local variable, the IDE highlights it with red colour...
Azpurua asked 10/4, 2018 at 3:50
4
Solved
There error message in question is
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.1.0:shade (default) on project myapp-core: Error creating shaded jar: null: Illegal...
Precipitancy asked 7/9, 2018 at 11:9
10
Solved
I'm developing on a Maven project (branch platform-bom_brussels-sr7) in Eclipse. When I recently tried switching the Java Build Path for the project to JDK 10, Eclipse build can no longer find clas...
2
Solved
I simply installed JDK 10 on my mac machine. Checked for the version:-
localhost:java-10 vinayprajapati$ java -version
java version "10" 2018-03-20
Java(TM) SE Runtime Environment 18.3 (build 10+4...
11
Solved
I have a trivial Maven project:
src
└── main
└── java
└── module-info.java
pom.xml
pom.xml:
<groupId>org.example</groupId>
<artifactId>example</artifactId>
<version...
Jamesjamesian asked 21/3, 2018 at 5:35
6
It's very strange. I am moving a dynamic web project from Java 8 to Java 10.
The last thing I cannot get the dependency resolved is the javax.xml.namespace.QName class.
You can see in the attache...
1
Background:
OpenJDK have released a style guide for local variable type inference.
I was looking for a checkstyle built in rule that addresses it but didn't found one.
What I'm trying to get is pre...
Delphine asked 29/5, 2020 at 4:10
12
I'm trying to compile my maven project using Java 10 but I'm having trouble. In my IDE (IntelliJ IDEA) everything compiles and runs just fine under Java 10. I installed the latest maven version 3.5...
3
Solved
IntelliJ shows type hints for local variables in Kotlin as shown here:
This makes it easy to see the type of variables even if their types are inferred.
Java 10 introduces type inference for Java ...
Halm asked 26/6, 2019 at 15:0
2
Solved
I am not sure if latest version of eclipse i.e. Oxygen supports java 10 or not. I configured the JRE for java 10 from preferences on my mac machine.
Also, I tried adding maven compiler plugin a...
4
Solved
I've installed apache-tomcat-9.0.7 on my windows machine and have following environment configurations:
echo %JAVA_HOME%
C:\Program Files\Java\ jdk-10.0.1
echo %JRE_HOME%
C:\Program Files\Ja...
2
Hey I'm trying to get a Maven Java project to run via Jenkins build, It run perfectly via the command line but when I run this via Jenkins. I get this error:
Unable to make field private final jav...
2
Solved
I work with some friends on a jdk 10 application which use the jigsaw feature set (introduced in jdk9) and junit5 with maven as build-management.
But always if we try to run tests with Maven we ge...
Syringomyelia asked 14/5, 2018 at 16:11
3
Solved
I recently installed jdk10. I was doing normal code and it is not working.
Am I doing something wrong here?
Please see the code and Exception stacktrace.
As far as I understand there should be no ...
Victimize asked 16/6, 2018 at 5:49
3
Solved
I was reading about the new features released in Java 10 and I found this:
Java 10 introduced var as a reserve type name to reduce verbosity.
It can be used as a variable, method, and package name...
2
In JavaFX 8 it was possible to override the TableView.resizeColumnToFitContent function. This is vital for our purposes since it allows us to enhance the way column headers are laid out beyond the ...
4
Solved
Folks - I am facing challenges while trying to uninstall JDK from my MAC (macOS High Sierra Version 10.13.4 - 17E199). I have two JDK instances installed and I want to uninstall both of them.
I am...
4
Solved
Heyo!
I've ran into some troubles when attempting to boot up Intellij (ultimate) with JDK 10.0.1 and "spring-boot-starter-test". If I run the main method, regardless of its content and regardless ...
Ciaracibber asked 13/5, 2018 at 11:14
4
Solved
How do you create an Unmodifiable List/Set/Map with Collectors.toList/toSet/toMap, since toList (and the like) are document as :
There are no guarantees on the type, mutability, serializability,...
Megaera asked 5/3, 2018 at 9:6
1 Next >
© 2022 - 2024 — McMap. All rights reserved.