Posts

Showing posts with the label java-10

How do I get today's date to print to the console in Java (2018)? [on hold]

Image
Clash Royale CLAN TAG #URR8PPP How do I get today's date to print to the console in Java (2018)? [on hold] I know this question has been asked a lot, but I've tested code from hundreds of posts about this, and none of it is working for me. I want to print something like this: Today's date is: 07/29/2018 Day of Week: Sunday Here is the code I am currently testing: package javaDemo; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; public class TodaysDate { public static void main(Stringargs) { System.out.println("Today's date is: "+DateTimeFormatter.ofPattern("MM/dd/yyyy").format(LocalDateTime.now()) + " Day of Week: "+LocalDateTime.now().getDayOfWeek()); } } This question appears to be off-topic. The users who voted to close gave this specific reason: "but I've tested code from hundreds of posts about this, and none of it is working for me." - like what code? ...

what does overwrite existing source file mean while converting webapp to war file

Image
Clash Royale CLAN TAG #URR8PPP what does overwrite existing source file mean while converting webapp to war file what does export source file mean. will it make it more stable and should i choose optimize for a specific run time I've had Tomcat 9 working fine with Java 10 before. Are you requiring the correct modules? – Jacob G. Jul 13 at 12:42 You mention tomcat 9, but your screenshot shows tomcat 6.0.29. – sjahan Jul 13 at 12:47 upgrade to tomcat 8 or 9 – benjamin c Jul 13 at 13:06 ...

Swings Issue on Java 10

Image
Clash Royale CLAN TAG #URR8PPP Swings Issue on Java 10 I am currently trying to move our application from Java 8 to Java 10 and in few months will be moving to Java 11. We have a legacy system which uses a bit of api's which are removed or will be removed I guess. We are using ant script (1.10.1) for our application compilation. Below is the same of the part that build our application: <target name="javac-setup" depends="flags, with.clover, jaxb-apply, flamingo.javac"/> <target name="javac" depends="javac-setup"> <mkdir dir="${workmanager.dir.classes}"/> <javac destdir="${workmanager.dir.classes}" deprecation="on" debug="${javac.debug}" encoding="iso-8859-1" includeantruntime="false"> <compilerarg line="-Xlint:static"/> <compilerarg line="-Xlint:unchecked"/> <compilera...

Run Apache TomEE 7.0.4 with JDK 9 and JDK 10

Image
Clash Royale CLAN TAG #URR8PPP Run Apache TomEE 7.0.4 with JDK 9 and JDK 10 I can not get TomEE 7.0.4 to work with java 9 and 10. TomEE 7.0.4 does not work with java 9 and 10. I think I understand that it is necessary to configure catalina.bat (I use windows). If I understood correctly, it all depends on the modules of jdk 9. I'm going crazy in finding a solution. To please help me to understand how to configure TomEE (catalina.bat or other)? " can not get TomEE 7.0.4 to work with Java 9 " - You need to provide more details on what's the failure or the like! – N00b Pr0grammer May 3 at 11:01 @javista Please find my updated answer below. – MWiesner 4 mins ago ...