JRE 8 update 31 on a Machine of Windows 8 'Java-version' does not

Hi people

I work for a software development company. For the moment, we test Java 8 features with our software and the use of Java 8 in our environment. For installation, we use an automatic installation of the .msi file for 32-bit and 64-bit Version of Java 8.

So far, everything works fine on our test with Java update 31 8 machines. The only thing we noticed is that we had a few mistakes when we were checking the version of java via the console.

For example, when upgrade us a Java 7 to 8 Java machine, we have first of all uninstall Java 7, restart and then install Java 8. After that the process, we receive an error when we execute the command 'java-version '.

Error: The "java" command is not found or is written incorrect (not exactly this error, because we have a German version of windows).

This only happens on machines with windows 8

On a windows 7, we get a correct output:

C:\ > java-version

Java version "1.8.0_31".

Java (TM) SE Runtime Environment (build 1.8.0_31 - b13)

Java for 64-bit Server VM (build 25.31 - b07, mixed mode)

We could resolve the problem on a windows machine 8 by adding the java installation directory in the systemvariable "path." Once the 'C:\Program Files\Java\jre1.8.0_31\bin' is added, the command returns the correct output.

This work around is not a good option, in my opinion, because I don't want to install some GPO crazy to hardcode the installationdir in the systemvariable. I think that the installer must handle this task for me.

Someone here run into similar problems with java on windows 8 at or someone knows a better way to solve the problem?

Best regards

Daniel

We could resolve the problem on a windows machine 8 by adding the java installation directory in the systemvariable "path." Once the 'C:\Program Files\Java\jre1.8.0_31\bin' is added, the command returns the correct output.

This work around is not a good option, in my opinion, because I don't want to install some GPO crazy to hardcode the installationdir in the systemvariable. I think that the installer must handle this task for me.

Someone here run into similar problems with java on windows 8 at or someone knows a better way to solve the problem?

Your "workaround" is your solution. The Java installer does NOT change the path. Any change in the path must be carried out by the user.

Another alternative is to create a simple "java.bat" file that is located in a directory that is located on the path.

This batch file can add the entry appropriate to the PATH environment variable and then launch Java.

Tags: Java

Similar Questions

  • Security updates have blocked incoming messages in Windows Mail - security popup does not accept the password, error number: 0x800CCC92

    Original title: updates blocked mail in Windows Mail - security popup does not accept the password

    Hello - three updates installed security today (KB2691442, 2718523, 2596744).

    Now Windows mail will no longer accept mail entering into my pop3 account.  Security pop - up demand for a/c of the user and the password - I've checked tools > accounts > properties, reset the password, but it does not accept pop-up.  Here is the error message:

    .... POP3, server response: '-ERR [AUTH] username and password not accepted.', Port: 995, secure (SSL): Yes, Server error: 0x800CCC90, error number: 0x800CCC92

    Help please! John

    Hello

     
    See the steps in the links.
    Troubleshoot Windows Mail

    Windows Mail: Setting up an account of end-to-end

    Hope the information is useful.

  • Update for Windows Vista (KB969947) security does not maintain install

    Update for Windows Vista (KB969947) security does not maintain install
    I have tried several times over the past two months installing this update, nothing seems to help scaned pc thinking it as spyware or some other malicious code nothing it just fails and I can't clear it out! any help at all would be great!
    Thanks in advance

    What application or antivirus security suite is installed and your current subscription?  What anti-spyware (other than Defender) applications?  What third-party firewall (if applicable)?

    A (another) Norton or McAfee application has already been installed on this machine (for example, a free trial version which is preinstalled when you bought it)?

    The foregoing despite...

    See the section "How to get help" of http://support.microsoft.com/kb/969947

    For individuals, please visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy.  If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.

    Consumer Security Support homepage
    https://consumersecuritysupport.Microsoft.com/

    For more information about how to contact your local Microsoft subsidiary for security update support issues, visit the International Support Web site: http://support.microsoft.com/common/international.aspx

    For enterprise customers, support for security updates is available through your usual support contacts.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Why the Firefox 4 is not restore all the sessions that were open at the time? Before the update, I've been invited either ("SAVE AND QUIT") or even if she closed UNEXPECTEDLY (crushed), he AGAIN restored. New version does not offer "save and exit".

    Question
    Why don't Firefox4 restore any sessions that were open at the time? Before the update, I've been invited either ('SAVE AND QUIT'), or even if it closed UNEXPECTEDLY (crash etc) it STILL restored everything. New version does not offer "save and exit".

    Now, Firefox always stores the old session which you can access from the history menu by selecting "restore previous Session."

    If you always open the last set of tabs, another approach is the following:

    1. Click on the orange button Firefox, then select options to open the options window
    2. Go to the general Panel
    3. Change the setting "When Firefox starts" to "show my windows and tabs from last time '.
  • updated my iPad to 9.3 air activate iPad display does not not my account information, but the Mac computer accepts my Apple ID and password

    updated my iPad to 9.3 air activate iPad display does not not my account information, but the Mac computer accepts my Apple ID and password

    A lot of people is affected by this problem, and Apple has worked on the issue.  Some found the following steps useful for this issue:

    Go to iCloud.com and select settings once you are connected.  Click on your device listed there and remove them from the account (not typing not erase or lost mode).  Restart your device and must ignore this lock of Activation screen because you actually disabled the lock by removing the device for iCloud.com

    I hope that helps!

  • OSX EL CAPITAN UPDATE CANNOT BE INSTALLED TO THIS DISK. THIS VOLUME DOES NOT MEET THE CONDITIONS FOR THIS UPDATE

    Hi all

    My iMac features are:

    • 27-inch, late 2013
    • 3.2 GHz Intel Core i5 processor
    • 8 GB 1600 MHz DDR3 memory
    • Start drive Macintosh HD
    • NVIDIA GeForce GT 1024Mo of 755M graphics
    • Storage: 301,35 free GB of 999,35 GB

    Running currently on OS X El Capitan with Update Version 10.11.3 installed January 27, 2016

    Problem: I was on the purchase of 2016 Office for Mac and tried to install the update of El Capitan OS X 10.11.1 which is necessary to solve the problems with this version of Microsoft Office.  During installation, the following error message appears:

    "OS X El Capitan update cannot be installed on this drive. This volume does not meet the conditions required for this update".

    I would be very happy if someone can help me in installing this update.

    Thank you.

    Slpm6

    I just got a quick reply saying 'You are not allowed to create or update this content'. What should I do to solve the problem? Thank you.

    You are using a newer version of El Capitan that the updater contains and so cannot install it.

    (139598)

  • Windows 2008 Server: unable to update the password. the value provided for the new password does not respect length, complexity, or history of the field requirements

    Unable to update the password. the value provided for the new password does not respect length, complexity, or history of the field requirements

    Hello

    I suggest you to send your request in this forum for better support.
  • Windows Live Hotmail Inbox does not update the autom automatically, until I have click Refresh. My OS is VISTA and IE9

    Windows Live Hotmail Inbox does not update the autom automatically, until I have click Refresh. My OS is VISTA and IE9.

    How can I solve the problem?

    Hi PaulaCohen,

    The question you posted would be better suited to the Windows Live community. Please visit the link below to find a community that will provide the support you want.
    http://windowslivehelp.com/product.aspx?ProductID=1

  • Windows 7 Windows Media Player 12 does not update the library when I add an item to the library - please help!

    Windows 7 Windows Media Player 12 does not update the library when I add an item to the library, also, when I delete a file from the folder that contains the media player does not remove it from the library. Can you help me please?

    Hello

    For the question, you can also view the following link for more information:

    You cannot view, add, or delete items in the library of Windows Media Player 11

    The steps are also applicable for Windows Media Player 12.

    Thank you

    Mary
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • updated my driver for my Ethernet controller and now it does not work

    Original title:

    Network network network Ethernet device

    I updated my driver for my Ethernet controller and now it does not work... I can't put it up, are the only choices that I
    to establish a wireless connection or set up a broadband connection using a user name and password but my ISP does not require
    a kind it will not accomplish the connection in place, I use win 7 64, how do I fix this so I can use my connection ethernet again?

    Hello

    You can try the following steps and check if it works:

    Method 1:

    You can restore to an earlier device driver if you are having problems with your computer or device after upgrading the driver.

    Restore a driver with its previous version

    http://Windows.Microsoft.com/en-us/Windows7/restore-a-driver-to-its-previous-version

    Method 2:

    If the steps above fail then you can perform a System Restore to an earlier point when it was working fine.

    It will be useful.

  • He repeats to me update failed and he said photo shop is installed, but does not appear when I search for it, how can I fix

    He repeats to me update failed and he said photo shop is installed, but does not appear when I search for it, how can I fix

    Nevermind I figured it

  • Updated for Photoshop, InDesign, and Illustrator 6/18, now nothing does not open: error 16

    Updated for Photoshop, InDesign, and Illustrator 6/18, now nothing does not open: error 16. None of the 16 fixed error using the Adobe PCD folder permissionms and SLS store work. Uninstall and reinstall do not work. Is on the phone with Adobe 5 times since that happened on June 18. Probalby spent 5 hours on the phone with 4 different tech. I'm waiting for a recall, but the guy Adobe told me that it will be 2 days. Other engine have this same problem... everything is resolved? Help!

    PS - also made a new user account and tried to open with that, thinking it was a permissions problem. Always error 16. Frustrating... can not work if I don't have the software.

    I found a solution on a post in the forum.

    Installation of creative application Cloud Desktop caused my PS CS6 and applications of Cloud Photoshop CC go error 16. After trying just about everything, open the Terminal and type:

    sudo chmod-r 777 library/Application\ Support / Adobe

    instantly solves the problem.

    I think I typed in my login pw also when he asked for it.

    It worked for me also! After 8 days and 7 hours on the phone with Adobe, it worked. And no thanks Adobe... the tech support people 'high' of my case, but continued in havingme circles try the same thing with the same results: error 16. I was promised a call back 3 times and NEVER RECEIVED a reminder. I used to think strongly about Adobe and I look forward to the new release... no more. It is aggravating and costly for a professional designer go 8 days without being able to use the software, that we rely on. Kudo forum for suggesting a solution that works. Boo to Adobe for not to do so.

  • after update 31.1.2 yesterday 1 works on side, 1 does not work, affecting all good?

    After that update Thunderbird was installed yesterday, the works of default account, the second account does not work. flash error message dropped something on the server an ora network problem. Don't stay long enough to copy. Has worked with FAI for an hour (they were connected on my machine). All the settings are correct. We have removed the account and rebuilt three times, has failed every time with the same message. only difference found in settings between account was in the Local Directory:

     GOOD ACCOUNT:
      C:\Users\Sue Fineman\AppData\Roaming\Thunderbird\Profiles\83bt5cdt.default\ImapMail\mail.nwi.net
     BAD ACCOUNT:
      C:\Users\Sue Fineman\AppData\Roaming\Thunderbird\Profiles\83bt5cdt.default\ImapMail\mail.nwi-3.net
    

    The wrong account began as ending with mail.nwi - 1 .net. ISP says that is incorrect, Thunderbird will not be deleted.

    He would pay change the profile or as SeaMonkey say long "delete the profile that it will rebuild?

    Any help will be greatly appreciated as my wife is a writer and need this account.

    You can post your troubleshooting information?
    Help (Alt - H) - troubleshooting information

  • Update Windows on the Web does not show updates

    Using IE8 on Windows XP SP3 machine. MS pushed 14 updates of security for me this week. (I do not update automatically, so) I started installing the 12 Oct. The first 9 installed but the last 5 years has failed. They pushed once again and installed the Oct. 13. Log files show some errors, but all updates are listed in Add/Remove programs as added 13 Oct. I tried to go towww.update.microsoft.com which lists my updates installed and scanned for needed updates. All I get is a page asking me orders to go to the start menu, updates of windows of my office instead of typing the url. Other information: between the two dates of update I told my machine to hide a particular update me. (Other threads think it's a problem). I recently spent software AV of BitDefender to ESET (Sept. 17).  So I do not know if this problem is called Windows Update fails to load, but of course, it will fail to load at the appropriate location, resting place.

    I have the answer! I found this answer (google) of someone who had a pc the windows update web site thought was a pimp. My problem is that web site update thought I had VISTA. So I deleted the key from registry HKEY_Local_Machine/software/microsoft/windows/current value/internet settings/5.0/USER Agent. (If the value contains a BONE which is incorrect, of course.) In my case, the value says windows NT 6.0, which is VISTA, not XP SP3. You will also need to do the same thing if your HKEY_current_user (by the same path) is incorrect (which was ok for me). After the backup of the key, and then delete it, then reboot, windows built the correct registry value and I'm back in business!

  • With recent updates, restoring with restore points is more and now IE does not work properly.

    I just had a few security updates for my machine and now there is no restore points, restore reports again that restore points are invalid, try another date of restoration (I'm guessing on this one).  Internet Explore ceased operation (for denial of service in IE error messages).  Norton finds nothing.  Any suggestions?  P.S. I don't browse the internet, check e-mail, or any other activity on this machine and only play an internet game on it.  Any suggestions or helpful hints before moving a complete system recovery disc?

    You used the word "n" and system restore in the same paragraph.  It's a good sign for boredom.

    Here are a few known issues in SR and Norton, you can read and see if they will work for you.  It is possible that your SR will never work unless you reinstall the system restore (not XP - just the system restore part) which would mean you would lose all your old PHI from scratch with new RPs.

    I can't help you with your IE, but if you provide the following information, maybe someone else can.

    SR already worked successfully for you in the past?

    What is your system brand and model?

    What is your Version of XP and the Service Pack?

    What is your version of Internet Explorer?

    You have a different browser like Firefox or Chrome that operate and is only IE afflicted?

    See if IE will work if you click on start, programs, accessories, System Tools, Internet Explorer (No Add-ons).

    What is the exact error that you see when you try to use IE?

    Describe your current antivirus and software anti malware situation: McAfee, Norton, Spybot, AVG, Avira!, Defender, ZoneAlarm, PC Tools, MSE, Comodo, etc..
    What is the issue that you are experiencing that you think that the system restore will be remedied (or you are just convenient)?  System Restore is not a time machine.
    Some tools Anti Virus 'protect' your system so that they will not allow a restore of the system work properly.
    For example, if you use Norton/Symantec products, you will see a message like this:
    Restoration incomplete. Your computer cannot be restored...
    It is also a popular Symantec problem (well, I'll be polite and call an "undocumented feature"...), they wrote an article about it:
    According to what you use for malware protection, you may need to disable the product temporarily, do the system restore and then turn the products light up again when the system restore is complete.
    Sometimes you need start your system in Mode safe and so that your protection programs are not running, and then do the system restore.  Tips from Microsoft in some of their articles that if the system restore does not restore your computer, start in Safe Mode, and then run the system restore.  It works for some configurations.
    System Restore is sometimes so afflicted or Restore Points are suspicious, the best solution is to reinstall your system restore.  This will remove the old Restore Points, but sometimes it's the only way to fix a broken system restore.  You don't have to reinstall XP, only the part of system restore.
    That can leave you with your problem of unspecified origin that you hope the system restore will fix (using a system restore is usually not equivalent to fixing the problem though).
    Give these ideas some consideration if they apply to you.

    I would like to deal with the problem as if there was no such thing as the system restore, fix your other questions, stabilizes, then get your SR works after that.  Certainly, it should work well, but I wouldn't count on it as a way to solve problems.

Maybe you are looking for