• 0

Windows 7 is windows vista v6.1!?


Question

I am programing a software to edit some windows seven features with java...

Well the most important thing is that the program should not run on any operating system other then windows 7

So what is the code to see if the os is windows 7?

I am using this code

		if(!System.getProperty("os.name").toLowerCase().equals("windows vista")||!System.getProperty("os.version").equals("6.1")){
		JOptionPane.showMessageDialog(null, "Win7Plus only works on windows 7", "Win7Plus",JOptionPane.PLAIN_MESSAGE);
		System.exit(0);
		}

Although it is working it still feels wrong!!!

i mean ---> System.getProperty("os.name").toLowerCase().equals("windows vista")

Am i doing this the write way or should i use another code????

Link to comment
https://www.neowin.net/forum/topic/846114-windows-7-is-windows-vista-v61/
Share on other sites

12 answers to this question

Recommended Posts

  • 0

i think I'll stick with the code i am using now then.

thanks everyone for your replies.

Here is what i have done so far if anyone is interested to take a look.

it is only about 50 kb and need the jre

Editing file now...

Edited by Teddy*
  • 0
Going by Kernel Version wont work, im not sure what else you'd use though since im not actually a programmer

It will work, because it is not the "kernel version." It is the version number for the operating system as a whole. If you want to know if it is Windows 7/R2, you check for 6.1. End of story.

As for the string "windows vista," no, 7 is not called "Windows Vista" anywhere. I don't know Java so I have no idea why that would work. Perhaps the JVM is running in compatibility mode and thus thinking it's running on Vista, or maybe it just hasn't been updated and thinks it's Vista because it has no idea 7 exists. This is a Java issue, not a Windows issue, and one you should probably try to get to the bottom of to make sure your program will actually work. In fact, I just tried to run your .jar on my Windows 7 machine and it fails with an error saying it only runs on Windows 7. This is with the latest JVM.

  • 0

I've never believed this "backwards compatibility" line for one second--that's extremely inconsistent with MS's past history. Where's the relevant documentation to back that up on MSDN--because that's where it would matter (to developers), and I've only started hearing that line a few weeks before 7 was released. MS started publishing Win7 developer documentation for guidance months before that, and I've never seen that come from a source that targeted developers.

To the original poster--what "features" of Win7 are you editing? Do you really want to have to rewrite your detection code when Win8 comes out if your editing program still applies then? What about Server 2008? Is the fact that the ribbon API (for one) is getting backported to Vista relevant, and should your app then be made to work on Vista also?

For the longest time, MS has been strongly suggesting to look for the availability of features instead of coming up with crazy OS detection algorithms that can break when the next version is released.

  • 0
I've never believed this "backwards compatibility" line for one second--that's extremely inconsistent with MS's past history. Where's the relevant documentation to back that up on MSDN--because that's where it would matter (to developers), and I've only started hearing that line a few weeks before 7 was released. MS started publishing Win7 developer documentation for guidance months before that, and I've never seen that come from a source that targeted developers.

It is true. Earlier example code (going back further than just a few months before the launch) even used 7.0. It's not very inconsistent, as they've done it with several previous versions as well. I have no idea why you feel this is something that would be documented now. It's not like it actually matters to anyone. The whole issue is stupid.

For the longest time, MS has been strongly suggesting to look for the availability of features instead of coming up with crazy OS detection algorithms that can break when the next version is released.

Yes, they do, but people never listen. Keeping the same major version (as they did with 2000/XP/2003) means a small amount of programs that would otherwise break unless they had compatibility shims applied now just work. That's the gain. Where's the loss? There isn't any, except for the moronic flame wars on the net. It's just a number, and it's hilarious to see people go on long rants about how "NO NO NO NO!!!! 6.1 is not the version number of the OS!!! It's really 7.0!!! 6.1 is just what the "kernel" tells you as a lie!!! Blah blah!!" as if it having the version number somehow meant that Windows 7 (the product name) was no longer Windows 7.

  • 0
It is true. Earlier example code (going back further than just a few months before the launch) even used 7.0. It's not very inconsistent, as they've done it with several previous versions as well. I have no idea why you feel this is something that would be documented now. It's not like it actually matters to anyone. The whole issue is stupid.

Yes, they do, but people never listen. Keeping the same major version (as they did with 2000/XP/2003) means a small amount of programs that would otherwise break unless they had compatibility shims applied now just work. That's the gain. Where's the loss? There isn't any, except for the moronic flame wars on the net. It's just a number, and it's hilarious to see people go on long rants about how "NO NO NO NO!!!! 6.1 is not the version number of the OS!!! It's really 7.0!!! 6.1 is just what the "kernel" tells you as a lie!!! Blah blah!!" as if it having the version number somehow meant that Windows 7 (the product name) was no longer Windows 7.

The inconsistency part I'm referring to is the claim that the version number has been artificially kept to 6.x for compatibility purposes and nothing else.

I maintain that it's been kept at 6.x because from the kernel team's perspective, 7 is a relatively small jump ahead and not the huge architectural rewrite that going from 5.x to 6.x was[*] (or 4.x to 5.x before that).

The "compatibility" excuse is just something that was put out there by some marketing drone who wanted to dispel the growing notion that it's just a minor release and that if it weren't for compatibility's sake, they would otherwise have changed it to 7.0.

[*] Unlike others however, I certainly won't claim that little work has been made elsewhere--the biggest development effort just didn't take place in the kernel.

  • 0

First of all, it is not just a kernel version number. It is the OS version. The two are not separate. This is not Linux. Second, 7/R2 has substantial changes to the "kernel" all the way to critical parts like the scheduler (which is extremely risky business). Third, there actually were pages that referenced 7.0 on MSDN, but these have since been removed (like all pre-release documentation), not that it matters.

What 7 doesn't have much of is breaking changes. That combined with the major compatibility problems Vista had means that justifying any avoidable compatibility issues this time around was next to impossible. Windows 7 is so critically important to Microsoft. It's that simple. If they could have justified it, I'm certain they would have given it the version number 7.0 so it would look nicer and distance it from Vista. This is what a PR guy would have done, and it's unlikely that he'd accept "the developers just don't feel that it's worth the jump" as a valid reason for not changing it.

There doesn't have to be any PR conspiracy here. I certainly agree that there are no breaking architectural changes and that it is in that sense a "minor" release, but I feel that you're really grasping at straws. The "excuse" given is a valid one, so there's no real reason to doubt it.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • If they ever come out and say the AI is no longer accessible to the gen pop people aren't going to know how to tie their own shoelaces.
    • It's hard not to when they are shoehorning Ai into EVERYTHING. Some are active users by choice, I bet a lot of them are because it's shoved in their face the entire time.
    • Thunderbird 152.0 by Razvan Serea Thunderbird is a free, open-source, cross-platform application for managing email and news feeds. It is a local (rather than a web-based) email application that is powerful yet easy-to-use. Thunderbird is clean and elegant by default, but easily customizable to match your workflow and visual preferences. It is loaded with unique and powerful features. Thunderbird is developed, tested, translated and supported by the folks at Mozilla Corporation and by a group of dedicated volunteers. Thunderbird gives you control and ownership over your email. There are lots of add-ons available for Thunderbird that enable you to extend and customize your email experience. Thunderbird gives you IMAP/POP support, a built-in RSS reader, support for HTML mail, powerful quick search, saved search folders, advanced message filtering, message grouping, labels, return receipts, smart address book LDAP address completion, import tools, and the ability to manage multiple e-mail and newsgroup accounts. Thunderbird 152.0 changelog: SecurityDevices enabled in enterprise policies One-click account setup for Thundermail accounts What’s Changed Use 'Add' instead of 'New' for account, calendar, address book creation buttons GMail OAuth updated to use PKCE Mail server hostname also checked when detecting address books and calendars Updated about:rights to replace local with hosted url 'Hide completed tasks' now also hides cancelled tasks What’s Fixed New mail alerts appeared on wrong monitor in three-monitor setup Spam messages triggered new mail notifications before being moved to Spam folder Filtered IMAP or NNTP subscriptions were lost after closing Subscribe dialog 'Download Headers' dialog for newsgroups failed to open Messages nested deeper than 255 levels disappeared from threading view Performing Delete followed by Undo on thread parent message could corrupt view Single messages still appeared collapsible after thread members were deleted Updated threads remained misordered until folder refresh or resort Non-threaded subject sorting separated 'RE:' replies from original messages BCC recipients were included in signed email headers Filter search on Body missed draft messages containing German umlauts Thunderbird could crash during local message search Blocked file warning showed without 'Unblock File' button in compose window Forwarding/Redirecting Exchange messages failed with NS_ERROR_OUT_OF_MEMORY Compose window closed early and send progress dialog hung after NNTP failure Compose window stayed open after sending when mailnews.sendInBackground set Microsoft OAuth2 failed when HTTPS localhost redirect was not intercepted Pasting contact photos stopped working when photo button had focus Filter dialog lacked focus ring and had poorly distinguishable buttons Subfolder kept stale accessibility unread count after unread messages were deleted 'Edit as New Message' and inline 'Forward' not possible with PGP-signed messages Various MIME improvements EWS messages could go missing from folder view IMAP "Show only subscribed folders" could not be changed without restart Unable to delete more than 1000 messages at a time on Microsoft 365 EWS folders in Trash were moved to Trash again instead of being hard deleted IMAP notifications repeated for emails read on another device after sleep wake POP3 deadlocked when server went silent without closing socket Calendar acceptance no longer distinguished between single occurrence and series Transparent popups on macOS made calendar event editing difficult Duplicate attendees were added to invitations instead of being filtered out Task percentage complete was not preserved separately from status in tooltips Visual and UX improvements Security fixes Download: Thunderbird 152.0 for Windows (EN/US) | 32-bit | ~70.0 MB (Open Source) Download: Thunderbird 152.0 for Mac OS (EN/US) | 145.0 MB Download: Thunderbird 152.0 in other languages View: Thunderbird Website | Screenshot | Release Notes Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Nearly half of American adults now use AI, but concerns are also growing by Hamid Ganji Since the launch of ChatGPT in 2022, the way people research, get their news, and perform routine tasks has changed dramatically. Now, almost everything around us has a touch of AI, and companies are trying to embed it into nearly every product and service they offer. With that in mind, new research shows how Americans are actually adopting this change and using AI in their everyday lives. According to new research conducted by the Pew Research Center, 49% of American adults now use AI chatbots like ChatGPT or Gemini. This marks a significant increase over last year, when only 33% of American adults reported using AI. Additionally, four in ten U.S. adults (42%) said they use AI tools to research information, while 38% said they use these tools to handle tasks at work. Entertainment, image and video editing, and getting medical advice are among the other ways Americans are using AI. Moreover, ChatGPT dominates the U.S. AI market, with 44% of respondents saying they use OpenAI's chatbot. Gemini follows at 24%, while Copilot and Meta AI account for 17% and 14%, respectively. Respondents also said that AI chatbots generally have a positive impact on their productivity and how informed they are. But when it comes to AI’s impact on society, Americans remain largely skeptical. About 40% of American adults believe AI will be more harmful than beneficial to society over the next 20 years. Additionally, 31% expect AI to have a negative effect on them personally. Another 31% of respondents say AI could be equally positive and negative. As for data security, pessimism remains high: 71% of respondents say AI will make their personal information less secure, while only 3% believe it will make their data more secure. American adults also largely lack confidence in both the government and AI companies when it comes to regulating and developing AI. About 67% of Americans have little to no confidence in the U.S. government’s ability to regulate AI effectively. Six in ten adults are also not confident that U.S. companies will develop and use these tools responsibly.
    • MultiOS-USB 0.11.1 by Razvan Serea MultiOS-USB is a versatile, open-source utility designed to create multiboot USB drives capable of hosting multiple operating systems on a single portable device. The project simplifies the process of building a bootable USB by automating the configuration of various boot loaders and file systems, enabling users to install and run diverse operating systems, including Windows, Linux distributions, and diagnostic tools, directly from one drive. It supports ISO booting and persistence, which allows changes made during live sessions to be retained, making it ideal for testing, troubleshooting, or system recovery. Features: BIOS and UEFI support Secure Boot support (boot, manage uefi keys) Load UEFI drivers Launch .efi executables and other boot loaders Boot Linux from .iso images Boot WinPE from bootable .wim images Boot Windows 10/11 installer from ISO (currently, SB must be disabled during installation) Boot Linux installer from network (experimental) Boot locally installed systems: Linux, Windows Automatically update configuration files Without background services exFAT file system support Automatic detection of compatible ISO images (GRUB loopback) Support for systems without loopback support Allows customisation of ISO boot menu (for example: custom kernel options) Support for USB, SSD, nvme, mmcblk, loop, nbd and virtual disks Support for x86, x86_64 A list of tested ISO images can be found here MultiOS-USB 0.11.1 changelog: 68122b7: Fixed-release AUR package #63 fba0283: Update shim to 16.1 8c2ae95: Update grub to v2.14-1 ea15c1d: Update Memtest86+ to v8.10 162f4e6: Add secureblue (#71) b2da8ae: Add AerynOS (#74) ac6640e: Bump config.version 34e9ca6: Add Bluefin (#72) 7a10edd: Add Aurora (#66) cab701b: Update wimboot to v2.9.0-1 90da7f7: Fix Windows error: 0x80070001 - 0x4002F (#52) 2dea73d: Add Microsoft certificates 01f479e: Remove old efi_uga module Download: MultiOS-USB 0.11.1 | 5.3 MB (Open Source) View: MultiOS-USB Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • One Month Later
      Vincian earned a badge
      One Month Later
    • First Post
      Jocimo earned a badge
      First Post
    • Week One Done
      suprememobiles48 earned a badge
      Week One Done
    • One Month Later
      Windows Guy earned a badge
      One Month Later
    • One Month Later
      Prasann earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      509
    2. 2
      +Edouard
      172
    3. 3
      PsYcHoKiLLa
      90
    4. 4
      Steven P.
      76
    5. 5
      neufuse
      69
  • Tell a friend

    Love Neowin? Tell a friend!