Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: What is the problem ?

  1. #1
    Junior Member
    Join Date
    Mar 2021
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default What is the problem ?

    package day30_datetime;
    import java.time.LocalTime;
    public class C2_LocalTime {
        public static void main(String[] args) {
     
            LocalTime saat = LocalTime.now();
            System.out.println(saat);        
        }
    }



    .................................................. ..................................................
    can't open C:\Users\Tec Pro\AppData\Local\Temp\eoi1CD3.tmp\plugins\org.ecl ipse.justj.openjdk.hotspot.jre.minimal.stripped.wi n32.x86_64_15.0.1.v20201027-0507\jre\lib\tzmappings.
    Exception in thread "main" java.lang.Error: java.io.FileNotFoundException: C:\Users\Tec Pro\AppData\Local\Temp\eoi1CD3.tmp\plugins\org.ecl ipse.justj.openjdk.hotspot.jre.minimal.stripped.wi n32.x86_64_15.0.1.v20201027-0507\jre\lib\tzdb.dat (The system cannot find the file specified)
    at java.base/sun.util.calendar.ZoneInfoFile$1.run(Unknown Source)
    at java.base/sun.util.calendar.ZoneInfoFile$1.run(Unknown Source)
    at java.base/java.security.AccessController.doPrivileged(Unknow n Source)
    at java.base/sun.util.calendar.ZoneInfoFile.<clinit>(Unknown Source)
    at java.base/sun.util.calendar.ZoneInfo.getTimeZone(Unknown Source)
    at java.base/java.util.TimeZone.getTimeZone(Unknown Source)
    at java.base/java.util.TimeZone.setDefaultZone(Unknown Source)
    at java.base/java.util.TimeZone.getDefaultRef(Unknown Source)
    at java.base/java.util.TimeZone.getDefault(Unknown Source)
    at java.base/java.time.ZoneId.systemDefault(Unknown Source)
    at java.base/java.time.Clock.systemDefaultZone(Unknown Source)
    at java.base/java.time.LocalTime.now(Unknown Source)
    at day30_datetime.C2_LocalTime.main(C2_LocalTime.java :6)
    Caused by: java.io.FileNotFoundException: C:\Users\Tec Pro\AppData\Local\Temp\eoi1CD3.tmp\plugins\org.ecl ipse.justj.openjdk.hotspot.jre.minimal.stripped.wi n32.x86_64_15.0.1.v20201027-0507\jre\lib\tzdb.dat (The system cannot find the file specified)
    at java.base/java.io.FileInputStream.open0(Native Method)
    at java.base/java.io.FileInputStream.open(Unknown Source)
    at java.base/java.io.FileInputStream.<init>(Unknown Source)
    ... 13 more
    Last edited by Norm; March 19th, 2021 at 04:26 PM. Reason: Added []s to code tags

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: What is the problem ?

    The program can not find the file named in the error message. I don't know anything about the openjdk program.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Catch block problem. Please fix my problem.
    By damnitsme in forum What's Wrong With My Code?
    Replies: 3
    Last Post: February 3rd, 2014, 01:49 AM
  2. Problem with Project Euler problem 18
    By sara_magdy in forum What's Wrong With My Code?
    Replies: 2
    Last Post: July 19th, 2013, 12:46 PM
  3. Replies: 3
    Last Post: January 5th, 2012, 01:44 AM
  4. [SOLVED] [Problem] imports javax.swing problem
    By Brollie in forum AWT / Java Swing
    Replies: 8
    Last Post: July 5th, 2009, 07:59 AM
  5. Java program for 2-D Array Maze
    By Peetah05 in forum Collections and Generics
    Replies: 11
    Last Post: May 8th, 2009, 04:30 AM