• 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

    • Ocenaudio 3.19.3 by Razvan Serea  Ocenaudio is a full featured, fast and easy to use audio and music editor. It is the ideal software for people who need to edit and analyze audio files without complications. Ocenaudio also has powerful features that will please more advanced users. To assist ocenaudio development, a powerful toolset of audio editing, analysis and manipulation called Ocen Framework was created. ocenaudio is also based on Qt framework, a well known library for cross-platform development. Cross-platform support ocenaudio is available for all major operating systems: Microsoft Windows, Mac OS X and Linux. Native applications are generated for each platform from a common source, in order to achieve excelent performance and seamless integration with the operating system. All versions of ocenaudio have a uniform set of features and the same graphical interface, so the skills you learn in one platform can be used in the others. VST plugins support Ocenaudio supports VST (Virtual Studio Technology) plugins, giving its users access to numerous effects. Like the native effects, VST effects can use real-time preview to aide configuration. Real-time preview of effects Applying effects such as EQ, gain and filtering is an important part of audio editing. However, it is very tricky to get the desired result by adjusting the controls configuration alone: you must listen the processed audio. To ease the configuration of audio effects, ocenaudio has a real time preview feature: you hear the processed signal while adjusting the controls. The effect configuration window also includes a miniature view of the selected audio signal. You can navigate on this miniature view in the same way as you do on the main interface, selecting parts that interest you and listening to the effect result in real time. Multiselection for delicate editions To speed up complex audio files editing, ocenaudio includes multi-selection. With this amazing tool, you can simultaneously select different portions of an audio file and listen, edit or even apply an effect to them. For example, if you want to normalize only the excerpts of an interview where the interviewee is talking, just select them and apply the effect. Eficient edition of large files With ocenaudio, there is no limit to the length or the quantity of the audio files you can edit. Using an advanced memory management system, the application keeps your files open without wasting any of your computer's memory. Even in files several hours long, common editing operations such as copy, cut or paste happen almost instantly. Fully featured spectrogram Besides offering an incredible waveform view of your audio files, ocenaudio has a powerful and complete spectrogram view. In this view, you can analyze the spectral content of your audio signal with maximum clarity. Advanced users will be surprised to find that the spectrogram settings are applied in real time. The display is updated immediately when altering features such as the number of frequency bands, window type and size and dynamic range of the display. Ocenaudio 3.19.3 changelog: Fixes issues with MP4 files with more than 8 channels Fixes incorrect VBR detection for some CBR MP3 files Other bug fixes and improvements Download: Ocenaudio 64-bit | Portable | ~40.0 MB (Freeware) Download: Ocenaudio for Linux and Mac OS View: Ocenaudio Homepage | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • DiskGenius 6.2.0.1829 - All Versions: Free, Lite & Portable by Razvan Serea DiskGenius is a full-featured partition manager, which is designed to optimize disk usage for Windows users. It will efficiently help you recover lost data, resize/split partition, backup files, edit hex data, check bad sectors, manage virtual disks, erase data, etc.. Create a system image backup for current Windows with simple clicks to keep the operating system under protection. DiskGenius key features: Partition Management - It can create format, resize, extend, backup, split, hide and clone partition, both MBR and GPT are supported. Disk and partition conversion - Convert dynamic disk to basic, convert virtual disk format and convert MBR to GPT, convert primary partition to logical. File recovery - It can recover files deleted or emptied form recycle bin, recover files from damaged partition or disk and recover files by file type and supports file preview and file filter. Partition recovery - It is the best partition recovery program in that it can recover files from damaged, corrupted and RAW partitions, search for lost partition and recover files from it, besides, it can fix partition table. RAID recovery - It can reconstruct Virtual RAID and recover files from it, and all RAID types are supported. Sector Editor - A Hex editor is embedded to help users edit raw hex data and recover data manually. Backup and Restore - It can backup and restore partition including system partition, hard disk and partition table. Bad Tracks - It can check and repair bad sectors for all storage devices; check hard disk S.M.A.R.T. information. Delete files permanently - It can delete files permanently so that they can't be recovered by any data recovery software. Virtual Disk - It supports virtual disks, including VMware, Virtual PC and Virtual Box. Create WinPE bootable disk and you can manage disk partition when system crashes or there is no operating system on your computer. Support FAT12/FAT16/FAt32/exFAT/NTFS/EXT2/EXT3/EXT4 file system format. DiskGenius 6.2.0.1829 changelog: Add the "Disk Speed Test" feature. Add the "Windows Boot Repair and Conversion" feature. Add the BMB21-2019 erase standard to the "Erase Sectors" feature. Add support for restoring an individual partition from a PMFX disk image file. Enhanced The "Verify Or Repair Bad Sectors/Blocks" feature displays disk read speed in the detection window during scanning. The "Quick Partition" dialog box allows users to quickly select the number of partitions by pressing the numeric keys 1, 2, 7, 8, or 9. The "Set Volume Name" dialog box supports selecting preset volume labels provided by the software. The "Copy Sectors" feature supports resuming copy tasks after modifying the number of skipped bad sectors. Add the "TRIM Optimization" option to the format dialog box. The "Clone Partition" and "Clone Disk" features perform TRIM optimization on target partitions or disks before cloning. Add support for Not Equal To search conditions (prefixed with "!") when searching hexadecimal data in the sector editor. Optimize the display of capacity values in the program interface to show two decimal places. Add a minimize button to dialogs that may require long processing time. Enhance support for the ReFS file system. Enhance support for newer HIF and MP4 formats when recovering files by type. Enhance support for the EXT4 file system. Enhance compatibility of the "File Recovery" feature with special data structures. Fixed Fixed the issue that the selected file system type automatically reverted to NTFS after changing it to exFAT or EXT4 in the "Quick Partition" dialog box. Fixed inaccurate Unicode string search results in the "Sector Editor" feature. Fixed the issue that exceptions might occur when adding multiple disks in the "Erase Sectors" feature. Fixed the issue that insufficient target disk space was incorrectly reported in some cases when cloning, backing up, or restoring disks. Fixed the issue that folder modification timestamps were not preserved when copying files from ReFS partitions. Fixed the issue that Excel-format reports generated by features such as file copying or bad sector checking could not be opened when the report contained more than one million rows. Fixed the issue that folders were not displayed in the exclude-folder dialog box when backing up partitions to image files. Fixed the issue that the "Erase Sectors" feature could not be executed in some cases. Download: DiskGenius 6.2.0.1829 | 63.9 MB (Freeware, paid upgrade available) Download: DiskGenius Portable 64-bit | 40.0 MB Download: DiskGenius Portable 32-bit | 36.0 MB Download: DiskGenius Lite 64-bit | 13.4 MB Download: DiskGenius Lite 32-bit | 11.6 MB View: DiskGenius Home Page | DiskGenius Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Really? Use a better search engine https://www.google.com/search?...ourceid=chrome&ie=UTF-8
  • Recent Achievements

    • Week One Done
      agatameier earned a badge
      Week One Done
    • One Month Later
      agatameier earned a badge
      One Month Later
    • Week One Done
      ssd21345 earned a badge
      Week One Done
    • Contributor
      MarkHughes4096 went up a rank
      Contributor
    • Dedicated
      jordanspringer earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      513
    2. 2
      +Edouard
      184
    3. 3
      PsYcHoKiLLa
      144
    4. 4
      ATLien_0
      95
    5. 5
      Steven P.
      75
  • Tell a friend

    Love Neowin? Tell a friend!