What version of java do i have windows 10

How do i know which java version i have

This applets basically only checks the Java version and other prerequisites. Java version older than that does not support JNLP.

How do i know which java version i have

java check java version

java -version #for jre version javac -version # for java compiler version

Checking of what versions of Java will applet work with, I disagree. It is well known that running Java in the web browser is a security nightmare. The best approach (for your users’ security!) is to not use applets at all. But if you must do it, then you should be aiming to do it as securely as possible. That means writing your JNLP file to insist on a recent version of Java.

Читайте также:  Python datetime object to timestamp

How to find the version of a File on windows through Java program?

I want to design a function in Java which will have prototype like this.

public String FindVersion(String FullPath)

where FullPath can be: C:\tmp\readme.txt or C:\windows\system32\xcopy.exe or like C:\windows\system3

fileversioninfo is a Win32 API thing so you’ll need to use the JNI and some C code to get access to it or use an external library. There is a an API I found called Sigar that seems to be able to do this

The details that you are asking are very specific to the file-system of the operating system on which the Java runs. As of until Java 7(java.nio.file.attribute); we don’t have any API that gives you this information. The only option is to make use of some Win 32 API through the JNI interface.

Not all files track versioning, the average text file has no concept stored within the file or externally which encodes how many times it has been edited.

Some documents optionally store versioning information within the document, if enabled. For those files, the routine would look something like (in pseudocode)

public String FindVersion(String filepath)

Some documents are versioned, but the versioning information is not stored within the document, it is stored in a system which tracks the versioning information independently of the document. In such a case, you really want to deal with the revision control system which is authoratative over the document. Often such system have utilities to indicate which version of the controlled document was last retreived; other times you need to query the document against all revisions looking for the closest match.

Basically, there’s not one way to do it for every situation.

How to Check Your Java Version on Windows 10, Here, you’ll see your current Java version listed in the first line. If you don’t see About Java in the Start menu, search for “Configure Java” instead and click it. Then click “About” to see your Java version. Note: If you don’t see

Checking of what versions of Java will applet work with

When I’m making a new JNLP file, I have to enter the versions of JAVA that my applet can work with, for example

Obviously, I want my applet to work with as many versions as it can, (I do, right?) how can I know what is the minimum required version to run my applet?

obviously, I want my applet to work with as many versions as it can, (I do, right?)

I disagree. It is well known that running Java in the web browser is a security nightmare. The best approach (for your users’ security!) is to not use applets at all. But if you must do it, then you should be aiming to do it as securely as possible. That means writing your JNLP file to insist on a recent version of Java. Preferably, the most recent patch level of Java 7.

But to answer your Question, the simplest test to find the oldest a version of Java should support your application is to attempt to compile it with that version of the JDK. If it compiles on an old version JDK, then it is fairly likely that it will run.

But then you should test it, because successful compilation does not guarantee that the application will run properly.

And as @Lonzak points out, there is a separate issue of whether the user’s installed Java supports JNLP.

There ought to be a better way but the following are the most general ones in my opinion:

  • Set the version of the Java Applet in your IDE to the lowest version you want to support and start programming.
  • Check the libraries/functions you need and check in which version they have been added.

When you want to use the JNLP mechanism you are bound to the next generation java plugin. It is supported starting with Java 1.6.0_10 (6u10) . Java version older than that does not support JNLP. So if you want to support older java versions you have to use the «old» mechanism (e.g. applet, object and embed tags).

So what would could you do?

Write a preceding applet, which is compiled with Java 1.4 (or even earlier). This applets basically only checks the Java version and other prerequisites. If the Java version is not sufficient (<6u10) it displays an error and otherwise the JNLP based applet is started.

Java — How to check which JDBC API version a specific, One way to check the JDBC driver version is to open the ojdbc jar file and go inside the META-INF folder, and then open the «MANIFEST.MF» file. The version can be seen next to «Specification-Version». Another way is to run the command below on the location mentioned previously: java -jar ojdbc6.jar -getversion.

Источник

Как узнать версию Java в Windows 10

Как узнать версию Java на Windows 10

Получить базовые сведения об установленной платформе Java можно непосредственно из ее интерфейса, а именно – из панели управления Java.

  1. Откройте панель управления Java через поиск Windows или классическую «Панель управления». Как узнать версию Java на Windows 10-1
  2. В открывшемся окне панели нажмите «About…». Как узнать версию Java на Windows 10-2
  3. Появится окошко, в котором будет указана версия и сборка платформы. Как узнать версию Java на Windows 10-3

Способ 2: Консоль «PowerShell»

Удобно для получения номера версии и сборки Java использовать встроенную консоль «PowerShell».

Как узнать версию Java на Windows 10-4

  • Выполните в открывшейся консоли команду Get-Command Java | Select-Object Version . Существует и более информативный вариант команды – Get-Command java | Select-Object -ExpandProperty Version . Как узнать версию Java на Windows 10-5
  • В результате в консоль будут выведены номер версии, обновления, сборки и ревизии.

    Способ 3: Командная строка

    В классической «Командной строке» команда получения номера версии платформы Java еще проще, чем в «PowerShell», но здесь есть один нюанс.

      Откройте «Командную строку» от имени администратора из поиска Windows или другим известным способом.

    Как узнать версию Java на Windows 10-6

  • Выполните команду java -version . Как узнать версию Java на Windows 10-7
  • Обратите внимание на формат вывода: номер версии указывается второй цифрой, вначале идет 1 независимо от версии. Например, результат «1.8.0_331» станет означать, что на компьютере установлена версия платформы 8.0, сборка 331.

    Способ 4: Панель управления

    Номер версии и сборки также указан в окне апплета «Программы и компоненты», там же указывается название поставщика и дата установки платформы.

    Как узнать версию Java на Windows 10-8

  • Найдите в списке элемент «Java» и посмотрите версию и номер сборки. Как узнать версию Java на Windows 10-9
  • Способ 5: Проводник

    Как узнать версию Java на Windows 10-10

    Наконец, узнать номер версии и сборки платформы можно с помощью обычного «Проводника». Если пользователь не менял путь установки, папку Java можно будет найти в расположении C:\Program Files\Java .

    В этом каталоге располагается папка с файлами установки, в названии которой указывается номер версии и сборки в том же формате, в котором их выводит «Командная строка», смотрите Способ 3.

    Источник

    How to check which version of Java you have installed in Windows 10, in 2 steps

    Email icon An envelope. It indicates the ability to send an email.

    Twitter LinkedIn icon The word «in».

    LinkedIn Fliboard icon A stylized letter F.

    Flipboard Facebook Icon The letter F.

    Facebook Email icon An envelope. It indicates the ability to send an email.

    Email Link icon An image of a chain link. It symobilizes a website link url.

    Dell XPS 15 2019

    • To check which version of Java you have on your Windows computer, you’ll need to open the Command Prompt app.
    • If you don’t have the latest version of Java installed, Windows may have trouble downloading or running certain programs.
    • Visit Business Insider’s homepage for more stories.

    Java is a programming language that’s used to install and run programs. Chances are that there are already several programs on your Windows computer that run using Java, even if you don’t know it.

    However, if Windows isn’t running the latest version of Java, you may have trouble downloading new programs, or even opening some websites.

    To check which version of Java you’re running, you’ll need to use Windows 10’s Command Prompt app. The Command Prompt can seem intimidating at first, but if you know what to type, you’ll be fine.

    Here’s everything you need to know.

    Check out the products mentioned in this article:

    Windows 10 (From $139.99 at Best Buy)

    Lenovo IdeaPad 130 (From $299.99 at Best Buy)

    How to check which Java version you have in Windows 10

    1. Type «Command Prompt» into the search bar next to your Start menu, and click on it when it appears in the search results.

    2. Type «java -version» into the Command Prompt, then press Enter on your keyboard.

    After a moment, your screen should display the information your computer has about Java, including what version you have installed.

    If nothing displays, it most likely means that you don’t have Java installed on your computer at all. Luckily, you can download it for free here.

    Источник

    What version of Java am I using?

    NOTE: The latest version of major browsers like Chrome and Firefox does not support NPAPI plugins anymore (except for Flash). This means the some plugins like Java, Microsoft Silverlight and Adobe Acrobat will not work anymore out of the box. The reason is because they make browsing slower, less secure and more likely to crash. In replacement, browser makers have implemented various Web APIs so that websites can do the same things they’ve always done using plugins.

    For some applications and Websites to run properly you must have Java installed on your Computer. To visit the official java page, click here. The page automatically detects java installed on your computer and shows the version of Java installed.

    Note: An important caveat is that you can have many installations of Java on your computer. You should test each of your web browsers on this page as they could be using different versions of Java.

    The easiest way to find your Java version is using the Command Prompt (for Windows) or Terminal (for macOs or Linux).

    On Windows Command Prompt

    1. Open the Command Prompt.
    2. Type java -version and hit enter.
    3. The first line that comes back is your version, e.g. java version «1.6.0_15»

    What version of java in command prompt window.

    On Windows 10

    1. Click the Start button.
    2. Scroll through the applications and programs listed until you see the Java folder.
    3. Click on the Java folder, then About Java to see the Java version.

    On Windows 8

    1. Right-click on the screen at bottom-left corner and choose the Control Panel from the pop-up menu.
    2. When the Control Panel appears, select Programs.
    3. Click Programs and Features.
    4. The installed Java version(s) are listed.

    On Windows 7

    1. Click Start
    2. Select Control Panel
    3. Select Programs
    4. Click Programs and Features
    5. The installed Java version(s) are listed.

    On macOs

    1. Open the Spotlight Search by pressing following keys: command + spacebar .
    2. Type terminal and press enter.
    3. On the Termimal window, type java -version and press enter.
    4. The first line that comes back is your version, e.g. java version «1.6.0_15»

    What version of java in terminal window.

    On Linux

    1. Press the following keys: CTRL + ALT + T (shortcut for Terminal in Linux).
    2. On the Termimal window, type java -version and press enter.

    What version of java in terminal window.

    1. Home
    2. What is my Browser
    3. Check Chrome version
    4. Check Safari version
    5. Check Firefox version
    6. Check Edge version
    7. Check IE version
    8. Check Opera version
    9. Check UC Browser version
    10. Check MS Outlook version
    11. Check Flash version
    12. Check Java version
    13. Check iTunes version
    14. Check Windows Version
    15. Check Linux version
    16. Check Mac version
    17. Check Minecraft version
    18. Check Android version
    19. Check MS Office version
    20. Check Skype version
    21. Check Antivirus Version

    Источник

    Оцените статью