Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4050750
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:06:31+00:00 2026-05-20T14:06:31+00:00

I’m writing a program that needs to watch for file system events on multiple

  • 0

I’m writing a program that needs to watch for file system events on multiple platforms. Java 7 includes a new standard library, WatchService, that acts as an abstraction for the different types of filesystem event handlers (inotify, FSEvents, FileSystemWatcher etc).

Is it the case that code compiled with the Java 7 compiler needs a Java 7 JVM to run it?

If so, will I have all sorts of problems with client machines that don’t have JVM 7 installed/available for that platform (older OSXs, Windows XP etc)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T14:06:32+00:00Added an answer on May 20, 2026 at 2:06 pm

    Is it the case that code compiled with the Java 7 compiler needs a Java 7 JVM to run it?

    Yes.

    You would be able to use a Java 7 compiler to compile with -target 6.0, but that won’t help if the code depends on Java 7 – specific class libraries … as yours apparently does.

    If so, will I have all sorts of problems with client machines that don’t have JVM 7 installed/available for that platform (older OSXs, Windows XP etc)?

    Yes. That is certainly the case on the “installed” front. If your code depends on Java 7, the best option is to get your customers to install a Java 7 JVM to run it. (It is a simple matter to install multiple versions of Java side-by-side, and there’s a good chance that other Java apps will run fine with a Java 7 JVM.)

    On the “available” front, we won’t know for sure which platforms will be supported until Oracle actually releases Java 7. If there are significant platforms that are not supported, there is a good chance that either:

    • someone will port OpenJDK 7 to the platform, or
    • a 3rd-party vendor (e.g. IBM) will support it in their Java 7 offering.

    (But I wouldn’t bet on anyone supporting Windows pre-XP, and old versions of OSX are doubtful, IMO.)


    My advice would be not to “jump” to Java 7 … yet … if supporting old platforms is an important requirement.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.