Major version number mismatch warning ?

Flatform : RedHat Linux7.1
Program : j2sdk-1_4_0-linux-i386.bin
I have this error after installing jdk1.4.0 and typing 'javac' :
===========================
Warning: Major version number mismatch.
Warning: Minor version number mismatch.
Warning: Major version number mismatch.
Warning: Minor version number mismatch.
Warning: Major version number mismatch.
Warning: Minor version number mismatch.
Warning: Major version number mismatch.
repeat...
Why this error do occur?
How can I complete jdk1.4 installing?

I'm getting the same warning as well. I recently upgraded from Red Hat 7.1 -> 7.2 and have j2sdk1.4.0.
I get the following warnings when I actually run programs:
Warning! Major version number mismatch.
Warning! Minor version number mismatch.
Did you ever find any resolution? I'll keep looking & if I find something, I'll post it here.
Thanks-
[email protected]

Similar Messages

  • Java.lang.ClassFormatError: Bad major version number

    Hi friends,
    I am using JWS2.0(trial version). I have uploaded class files into servlet (and respective packages), every thing was working fine. one fine day i started getting the 404 - file not found error(JWS not yet expired). I uninstalled the jws, j2sdk1.4.0, jre1.4.0 but with no result.
    I even formated the system and loaded all again. But still i am getting the same problem.
    The servlet is the simple HelloWorld servlet.
    Through the SunExample its working fine. But the uploaded servlet is not getting recognised.
    Here is the ErrorLog
    [Tue Feb 22 17:26:29 GMT+05:30 2005] ClassLoaderFactory Error: Can not find Class : Hello [ ClassNotFoundException ]
    [Tue Feb 22 17:26:31 GMT+05:30 2005] ClassLoaderError: (com.sun.server.loader.JarClassLoader@17d67e:\servlets) ERROR: Unable to load class local class Hello
    [Tue Feb 22 17:26:31 GMT+05:30 2005] java.lang.ClassFormatError: Bad major version number
    at java.lang.ClassLoader.defineClass(ClassLoader.java:219)
    at com.sun.server.loader.ServletClassLoader.callDefineClass(ServletClassLoader.jav a:726)
    at com.sun.server.loader.ServletClassLoader.checkAndDefineClass(ServletClassLoader .java:620)
    at com.sun.server.loader.DirectoryClassLoader.getClassFromLocalDir(Compiled Code)
    at com.sun.

    Try re-compiling the Servlet. Make sure that the JDK version used to recompile is <= the version used to run the server (if you are using a higher jdk to compile the servlet, maybe Java 5.x, then you are to run, maybe Java 1.4.x, then use the -target option of javac to target the lower release...)

  • Bad major version number error

    I'm trying to run the HelloWorld program in Linux. I can compile ("javac HelloWorld.java"), but when I try to run the program, using "java HelloWorld", i got the following error message:
    Error loading class HelloWorld: Bad major version number
    Any idea of what's wrong?

    well, i found the problem. i had installed an old java version and forgot to delete it. i was using jdk 1.1 and i didn't notice it. just deleted the old version and everything went fine. thanks, m_srini ! :-)

  • Bad major version number! Help please ;-)

    I have been writing applets using the Forte 3.0 sdk.
    I don't as yet use Swing, but rather the standard AWT elements.
    These applets work fine in IE 5, but when I try to view them in Netscape Communicator 4.79, the applet fails to appear and I see the following error message "Applet Editor Error:java.lang.ClassFormatError: Bad major version number"
    I have searched the net and this is some advice I found: "The javac by default compiles for 1.2 compatible vm's. To compile an application to be compatible for both 1.1 and 1.2 vm's use:
    javac -target 1.1 foo.java"
    I'm guessing Netscape isn't 1.2 compatble, despite that the java plugins for 1.4.0 are enabled ( I have checked.).
    So my question is:
    How do I force 1.1 compatability in the Forte IDE?
    I have looked through all the options and cannot find any switches for compatability.
    I'm not using command-line so I can't directly add -target 1.1
    Thank you in advance.

    In Forte go to menu Project->Settings. Open Compiler Types->External Compilation, there you have a property called "External Compiler", click on the value and there you can edit the arguments that are sent to the compiler...
    //Anders =)

  • Version number conflicts with NI custom data types

    Custom data type version number conflicts
    Options
    Mark as New
    Bookmark
    Subscribe
    Subscribe to RSS Feed
    Highlight
    Print
    Email to a Friend
    Report to a Moderator
    07-11-2011 08:10 AM
    I am new to Teststand software interface.  While doing my first software release under the guidance of a more experienced colleague, we discovered that Teststand will not run if it detects version number conflicts between custom data types on my machine vs. the production test machine.  I verified differences between all .seq files in my test program directory, but I did not realize that the version number difference exists in the StationGlobals.ini file, which is stored in a different location.  After discovering this, I modified the version number in one of the files.  However, two releases later, I discovered that the version number mismatches in another two files.  This raises several questions for me :
    1.  Is there a way in Teststand to view all the .seq files where a custom data type is used and then change its version number in one attempt?
    2.  Under what instances does Teststand upgrade the version number of a custom data type?
    3.  Are there any tools or scripts within Teststand that can allow the version number of custom data types to be changed in all .ini files when a difference is discovered between the current production test station settings and a new release?
    Please help.

    Have you read this?  http://zone.ni.com/devzone/cda/tut/p/id/7060
    I can tell you that your situation is not uncommon with TestStand.  The key is just doing it right the first time.  haha
    #1- I doubt that this is possible because then TestStand would have to know every location of every .seq on the machine.  You will only see it when you open the sequence file.
    #2- TestStand updates the version every time you change it.  You should get a message popup when you try to save that asks if you want to increment the version or not.  There's also a check box that says Remove Modified Mark From Types.  Look under Station Options in the File tab.  There are some settings there about Type conflicts.
    #3- http://zone.ni.com/devzone/cda/tut/p/id/7910
    http://digital.ni.com/public.nsf/allkb/4153576DA04BEB098625743D00704A09
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Incrementing major version of configuration

    When I create a new version of an existing configuration in RON the program increments minor version number of the configuration, e.g. 1.2 -> 1.3 -> 1.4 etc. But if I want the major version number to be incremented, e.g. 1.4 -> 2.0, how can I make that happen? In Configuration Properties window the field showing version seems to be always in read-only state, so I cannot use that but is there any other way to do what I need? Actually there is quite analogous problem with files in my private workarea. How to increment major version number of a file?
    Risto Nieminen

    Risto,
    That's one limitation that's rather hard to work around. You have two options:
    (1) Manually specify the version number EVERY time you check in an object. This is not a very sensible solution unless you can be sure every developer will abide by this standard without fail. You can't easily add a version number after the object has been checked in.
    (2) Don't ascribe any significance to the generated version numbers. Don't use the generated version numbers as release numbers, for example. Instead, name your configurations for the external release numbers, e.g. RELEASE_2_4_1 for release 2.4.1.

  • Help Updates Doesn't upgrade major version to 2014, only applies minor version updates

    I have Adobe Creative Cloud for OS X deployed to many machines using CCP and Casper and I have now set up AUSST.
    On one test machine, I opened one CC application and went to Help > Updates and installed all available updates. It appears to only install minor version number updates, not Major version number upgrades, so my machine is not on CC 2014.
    Is this expected behaviour? Should I now be on 2014, or do I need to build a new package using CCP for 2014?
    If I need to build a new package, what do I do regarding the existing installations? DO i need to remove all those components first?
    Thanks,
    Alan.

    Alan,
    This, like it or not, is the world of CC 2014. They are new versions -- upgrades rather than updates. The pre-CC 2014 versions can be installed alongside the new versions without a problem. They will need to be uninstalled individually if you don't want them lying around. And sadly, unlike the CS suites, there is no single uninstaller that will remove all the unwanted CC applications. They need to be removed one-by-one.
    We should let one of the Adobe moderators vet this response, but this is my understanding and experience.
    Ric

  • Custom data type version number conflicts

    I am new to Teststand software interface.  While doing my first software release under the guidance of a more experienced colleague, we discovered that Teststand will not run if it detects version number conflicts between custom data types on my machine vs. the production test machine.  I verified differences between all .seq files in my test program directory, but I did not realize that the version number difference exists in the StationGlobals.ini file, which is stored in a different location.  After discovering this, I modified the version number in one of the files.  However, two releases later, I discovered that the version number mismatches in another two files.  This raises several questions for me :
    1.  Is there a way in Teststand to view all the .seq files where a custom data type is used and then change its version number in one attempt?
    2.  Under what instances does Teststand upgrade the version number of a custom data type?
    3.  Are there any tools or scripts within Teststand that can allow the version number of custom data types to be changed in all .ini files when a difference is discovered between the current production test station settings and a new release?
    Please help.

    You'll probably get better response in the TestStand Forum instead of the LabVIEW forum.
    1.  Is there a way in Teststand to view all the .seq files where a custom data type is used and then change its version number in one attempt?
    Look at the Types Window (Ctrl-T).  This should show which version of Custom Data Types are loaded for which sequence files.
    2.  Under what instances does Teststand upgrade the version number of a custom data type?
    As far as I know, anytime you edit a custom datatype which is already in memory, TestStand will update the version of the custom data type for the currently loaded sequences.
    3.  Are there any tools or scripts within Teststand that can allow the version number of custom data types to be changed in all .ini files when a difference is discovered between the current production test station settings and a new release?
    I think you can use the Types Window to do this but I'm not positive.

  • How can i set the "Keep the following number of major versions" to a limit suppose 20 and then disable it from the users so that they cannot change the value?

    I want to set the value of "Keep the following number of major versions" in the versiong settings of a documnet library to a limit say 20 and then disable the option from the users so that they cannot them. Is it possible thorugh some custom coding?

    Hi Moumita10,
    Just curious about that how the custom CSS code works in your environment if put it in the “LstSetng.aspx” page.
    In my environment, it hides the "Keep the following number of major versions" setting in the “LstSetng.aspx”
    page after applying the custom CSS style there.
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How Do I Find Out a Folio Version Number

    Hi Guys,
    So far, everytime I have submitted a folio to the App Store, I have received a variation of the following error:
    Version Mismatch - Neither CFBundleVersion ['3.4.2.9.91210'] nor CFBundleShortVersionString ['1.0.8'] in the Info.plist match the version of the app set in iTunes Connect ['2.0'].
    I'd like to be able to put the correct version number into iTunes Connect when I upload the App, but how do I find it? Where is the CFBundleShortVersionString for each folio located?
    Cheers
    Chris

    It isn't necessary to change that number—Apple is just giving you a housekeeping warning—but if you really want to edit the version number in iTunes, you can find it in DPS App Builder.

  • [SOLVED] Unable to determine major/minor number of root device - USB

    I installed Arch on a USB harddrive of mine from within VirtualBox with the intention of running the installation (via the drive) on a laptop in my house. I passed through the drive through by creating a special vmdk (here - it's for "expert users only". ) and installed Arch on it by booting off the Arch 2011.08.19 iso and following the instructions. I do recall the installer complaining because /sbin/mkinitcpio was missing, so I copied over the one from the host (which is also an up-to-date Arch system). After that, everything worked and I was able to boot the drive within virtualbox.
    Then I went and plugged it in to another laptop in the house and, surprisingly (for me at least), it got past GRUB. My joy was short-lived, because it failed just a bit later:
    :: Running Hook [udev]
    :: Triggering uevents...done.
    ERROR: Unable to determine major/minor number of root device 'Waiting 10 seconds
    for device /dev/disk/by-uuid/[the uuid] ...
    /dev/disk/by-uuid/(the uuid)'.
    You are being dropped to a recovery shell
    Type 'exit' to try and continue booting
    sh: can't access tty: job control turned off
    [ramfs /]#
    So I googled around for a while and plugged it back in to my computer, booted it up in virtualbox, and added "usb" to the HOOKS array right after udev in /etc/mkinitcpio.conf. Then I rebuilt the initramfs:
    # mkinitcpio -p linux
    So I plugged it back into the laptop, booted it, and got the same error.
    Later, in an attempt to isolate the problem, I removed "sata" from HOOKS, ran the same mkinitcpio command again, and rebooted the VM. I got what looked like the same error as the one above. yay. So I guess the usb hook isn't being loaded or something like that. (I've since added the "sata" hook back and rebuilt the initramfs so I can mess around in the VM )
    I've tried removing autodetect from HOOKS (saw that in some threads) and trying different USB ports on the laptop, but nothing seems to be working. I also checked to see if virtualbox was providing a bogus uuid or something, but the one it's specifying seems to be correct - I looked in my computer's /dev/disk/by-uuid and it matched.
    Info on the drive (first partition is /boot, second is swap (derp!), third is /, and fourth is /home):
    # sudo fdisk -l /dev/sdg
    Disk /dev/sdg: 500.1 GB, 500107861504 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773167 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00016b3d
    Device Boot Start End Blocks Id System
    /dev/sdg1 * 63 208844 104391 83 Linux
    /dev/sdg2 208845 4417874 2104515 82 Linux swap / Solaris
    /dev/sdg3 4417875 209230559 102406342+ 83 Linux
    /dev/sdg4 209230560 976768064 383768752+ 83 Linux
    Screengrab of my VirtualBox storage setup (just for giggles):
    My /etc/mkinitcpio.conf:
    # vim:set ft=sh
    # MODULES
    # The following modules are loaded before any boot hooks are
    # run. Advanced users may wish to specify all system modules
    # in this array. For instance:
    # MODULES="piix ide_disk reiserfs"
    MODULES=""
    # BINARIES
    # This setting includes any additional binaries a given user may
    # wish into the CPIO image. This is run first, so it may be used to
    # override the actual binaries used in a given hook.
    # (Existing files are NOT overwritten if already added)
    # BINARIES are dependency parsed, so you may safely ignore libraries
    BINARIES=""
    # FILES
    # This setting is similar to BINARIES above, however, files are added
    # as-is and are not parsed in any way. This is useful for config files.
    # Some users may wish to include modprobe.conf for custom module options
    # like so:
    # FILES="/etc/modprobe.d/modprobe.conf"
    FILES=""
    # HOOKS
    # This is the most important setting in this file. The HOOKS control the
    # modules and scripts added to the image, and what happens at boot time.
    # Order is important, and it is recommended that you do not change the
    # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
    # help on a given hook.
    # 'base' is _required_ unless you know precisely what you are doing.
    # 'udev' is _required_ in order to automatically load modules
    # 'filesystems' is _required_ unless you specify your fs modules in MODULES
    # Examples:
    ## This setup specifies all modules in the MODULES setting above.
    ## No raid, lvm2, or encrypted root is needed.
    # HOOKS="base"
    ## This setup will autodetect all modules for your system and should
    ## work as a sane default
    # HOOKS="base udev autodetect pata scsi sata filesystems"
    ## This is identical to the above, except the old ide subsystem is
    ## used for IDE devices instead of the new pata subsystem.
    # HOOKS="base udev autodetect ide scsi sata filesystems"
    ## This setup will generate a 'full' image which supports most systems.
    ## No autodetection is done.
    # HOOKS="base udev pata scsi sata usb filesystems"
    ## This setup assembles a pata mdadm array with an encrypted root FS.
    ## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
    # HOOKS="base udev pata mdadm encrypt filesystems"
    ## This setup loads an lvm2 volume group on a usb device.
    # HOOKS="base udev usb lvm2 filesystems"
    # Tried this line instead -- didn't work either
    #HOOKS="base udev usb autodetect pata scsi sata filesystems usbinput"
    HOOKS="base udev usb sata filesystems"
    # COMPRESSION
    # Use this to compress the initramfs image. With kernels earlier than
    # 2.6.30, only gzip is supported, which is also the default. Newer kernels
    # support gzip, bzip2 and lzma. Kernels 2.6.38 and later support xz
    # compression.
    #COMPRESSION="gzip"
    #COMPRESSION="bzip2"
    #COMPRESSION="lzma"
    #COMPRESSION="xz"
    #COMPRESSION="lzop"
    # COMPRESSION_OPTIONS
    # Additional options for the compressor
    #COMPRESSION_OPTIONS=""
    My GRUB menu.lst:
    # Config file for GRUB - The GNU GRand Unified Bootloader
    # /boot/grub/menu.lst
    # DEVICE NAME CONVERSIONS
    # Linux Grub
    # /dev/fd0 (fd0)
    # /dev/sda (hd0)
    # /dev/sdb2 (hd1,1)
    # /dev/sda3 (hd0,2)
    # FRAMEBUFFER RESOLUTION SETTINGS
    # +-------------------------------------------------+
    # | 640x480 800x600 1024x768 1280x1024
    # ----+--------------------------------------------
    # 256 | 0x301=769 0x303=771 0x305=773 0x307=775
    # 32K | 0x310=784 0x313=787 0x316=790 0x319=793
    # 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
    # 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
    # +-------------------------------------------------+
    # for more details and different resolutions see
    # https://wiki.archlinux.org/index.php/GRUB#Framebuffer_resolution
    # general configuration:
    timeout 5
    default 0
    color light-blue/black light-cyan/blue
    # boot sections follow
    # each is implicitly numbered from 0 in the order of appearance below
    # TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
    # (0) Arch Linux
    title Arch Linux
    root (hd0,0)
    kernel /vmlinuz-linux root=/dev/disk/by-uuid/b4a677d0-cb0d-4acd-bb09-2dc2f4b9501f ro
    initrd /initramfs-linux.img
    # (1) Arch Linux
    title Arch Linux Fallback
    root (hd0,0)
    kernel /vmlinuz-linux root=/dev/disk/by-uuid/b4a677d0-cb0d-4acd-bb09-2dc2f4b9501f ro
    initrd /initramfs-linux-fallback.img
    # (2) Windows
    #title Windows
    #rootnoverify (hd0,0)
    #makeactive
    #chainloader +1
    Last edited by UncleNinja (2011-12-02 15:33:21)

    UncleNinja wrote:
    skunktrader wrote:https://bugs.archlinux.org/task/27385
    Perfect! Thank you!
    Would it be safe to copy over the version from HEAD into my mkinitcpio?
    EDIT: nevermind, derp derp the package is updated
    EDIT again: Actually, it's not.
    I copied over the init_functions in HEAD into /lib/initcpio/init_functions and rebuilt the initramfs. It worked!
    Thanks guys!
    Last edited by UncleNinja (2011-12-02 15:35:20)

  • SCCM 2012 R2 CU3 installation successfull but the Full Version number still is 5.00.7958.1000

    Hi Guys
    I have a SCCM 2012R2 in Windows 2008R2 box with a Secondary Site also in Windows 2008R2. Before proceeding with the upgrade to CU3 I took a snapshot, installed Windows Management Framework 4.0 to get PowerShell 4.0 in order to run a health Check, all
    fine until this point.
    I installed CU3 and checked that the value in CULevel in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Setup is 3 and also check the
    version that is displayed in the About System Center Configuration Manager dialog box is
    5.00.7958.1401
    I checked the log file C:\Windows\Temp\cm12-r2cu3-kb2994331-x64-enu.log and all good in there as well. So it's fair to say the installation was successful..??
    the next step was to upgrade my secondary site from the Primary site console, so I went to Administration / Site Configuration / Sites and when I right clicked my Primary Server to check its properties I realised that the Version number was still
    5.00.7958.1000 and the option to upgrade my secondary site is greyed out.
    I haven't been able to find any information regarding this issue, in fact I am not sure if is a technical issue or human issue :)
    the questions are, how do I upgrade my secondary site and why the difference in between version?
    Regards
    Jesus Gonzalez

    Works as dessigned. The site version number will only show the version of the latest major build, which is R2 in your case. The same with upgrading your secondary site, that's only possible via the console, with a major build. For upgrading your secondary
    site you can now use the created package R2 CU3 - server update.
    My Blog: http://www.petervanderwoude.nl/
    Follow me on twitter: pvanderwoude

  • How do I determine the executable version number?

    Hi.
    I have a VI and a build specification for it.  In the Version Information section of the build specification, I set the version number to auto-increment.  I would like to display this version number on an indicator on the front panel of the executable, but I have not found a property that provides this information. Does anybody know how to get the executable version number? I am aware that it is possible to right-click on the .exe file in windows explorer, go to properties and get it that way, but I would like to display it on the VI itself.
    On a related topic, I have noticed that only the 'build' field of the version gets auto-incremented. How does the application builder decide when it is time to increment the major, minor and fix fields?  Or will it only ever auto-increment the build field and I am supposed to update the other fields manually? (That would actually make sense, but I would like confirmation.)
    Thanks in advance,
    Alejandro
    Solved!
    Go to Solution.

    -Please check this if its helpful
    http://digital.ni.com/public.nsf/allkb/935BA7FB426305398625711E0055F1FA
    -And vote for this if you like idea
    http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Get-EXE-version-in-LabVIEW/idi-p/1324119
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13

  • Bad version number on Mac, but not PC

    I have a java applet that works fine in Windows. It works fine on Macs as long as I compile it with JDK 1.5. However, once I compile it with JDK 1.6 it loads in Windows, but it doesn't load at all in Mac OSX. I've tried compiling it with javac using -target 1.5 -source 1.5 and -target 1.4 -source 1.4 but no luck.
    None of the computers I have tested on have JRE version lower than 1.5. The Mac I tested it on has JRE 1.5.16. I've also tested it on Ubuntu with JRE 1.5, which didn't work, and 1.6, which did work.
    Here is the error from appletviewer in Mac:
    appletviewer testprogram2.html
    2008-10-16 16:17:22.269 appletviewer[436:10b] _CFGetHostUUIDString: unable to determine UUID for host. Error: 35
    2008-10-16 16:17:22.546 appletviewer[436:e13] _CFGetHostUUIDString: unable to determine UUID for host. Error: 35
    2008-10-16 16:17:22.812 appletviewer[436:613] _CFGetHostUUIDString: unable to determine UUID for host. Error: 35
    Warning: Can't read AppletViewer properties file: /Users/miahx/.hotjava/properties Using defaults.
    java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:177)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
    at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:605)
    at sun.applet.AppletPanel.createApplet(AppletPanel.java:723)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java:652)
    at sun.applet.AppletPanel.run(AppletPanel.java:326)
    at java.lang.Thread.run(Thread.java:613)
    It looks like there is still a version compatibility problem, but from researching this error, just adding the -target and -source java versions when compiling should fix it. Maybe I'm going about this all wrong?
    Any ideas?
    Edited by: nikkorizz on Oct 16, 2008 2:23 PM
    Edited by: nikkorizz on Oct 16, 2008 2:52 PM

    The above workarounds don't work for me on Windows, the only thing that has worked for me is to set the prefs to tabbed whilst the script is running.
    function tabInterface(onOff) {
    if(onOff == undefined) onOff=true;
        var desc19 = new ActionDescriptor();
            var ref8 = new ActionReference();
            ref8.putProperty( charIDToTypeID('Prpr'), stringIDToTypeID('interfacePrefs') );
            ref8.putEnumerated( charIDToTypeID('capp'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc19.putReference( charIDToTypeID('null'), ref8 );
            var desc20 = new ActionDescriptor();
            desc20.putBoolean( charIDToTypeID('EGst'), true );
            desc20.putBoolean( stringIDToTypeID('openNewDocsAsTabs'), onOff );
        desc19.putObject( charIDToTypeID('T   '), stringIDToTypeID('interfacePrefs'), desc20 );
        executeAction( charIDToTypeID('setd'), desc19, DialogModes.NO );
    function isTabInterface(){
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID("capp"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    return executeActionGet(ref).getObjectValue(stringIDToTypeID('interfacePrefs')).getBoolean(stringIDToTypeID( 'openNewDocsAsTabs'));

  • Powershell update Field Value without changing version number

    I want to update a value in a field in a list for a lot of list items.
    However, this list has major and minor versioning turned on, and an approval process.
    When I update the field's value for all the required list items, I don't want the approval process to start and I don't want the version number to change.
    How can I do this?
    This is my code so far:
    $siteUrl = "http://portal"
    $listName = "list name"
    $field1_Name = "category"
    $web = Get-SPWeb -Identity $siteUrl
    $list = $web.Lists[$listName]
    $items = $list.Items
    ForEach ($item in $items)
        if ($item[$field1_Name].ToString() -eq "testing") 
     $url = [String]::Format("{0}/{1}",$web.Url, $item.File.URl)
         $file = $web.GetFile($url)
     $file.CheckOut()
     write-host $item.name
           $item[$field1_Name] = "testing again"
           $item.Update()
     $file.CheckIn("updated category name", [Microsoft.Sharepoint.SPCheckinType]::MajorCheckIn))
    $web.Dispose()

    Instead of calling $item.Update() call $item.SystemUpdate($false);  That will update the fields without incrementing he version number of the listitem.  Read about it here:
    http://msdn.microsoft.com/EN-US/library/office/ms481195(v=office.14).aspx
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

Maybe you are looking for

  • How can I delete my iMatch account and revert my iTunes back the way it was?

    I am having many issues with iMatch and want to delete my account and remove all of my music from the cloud. Here are the issues: 1. My playlists are filled with "error" songs that cause playback to skip multiple numbers at a time. 2. When I sign off

  • Webpages looking different in different browsers..

    I've been all over the web looking for answers, my brain is about to explode. I can't figure out why my site created in Dreamweaver looks great in Firefox, and a jumbled mess in Internet Explorer. I have a huge marketing campaign coming up soon and I

  • Averages in Adobe Acrobat X Pro

    Hi All, I am currently using Adobe Acrobat X Pro to create an employee performance survey, against 6 competencies the employees are rated from 1-5 or N/O if the competency is not observed. I have used an average calculation box to work out the overal

  • Anybody gotten a 27in iMac screen cover from Amazon?

    I was looking to get one and think they look good but was just wondering if anyone else has gotten them before?  I wanted to see how functional they are and if they clean good too.  I saw the one that is sold by Panel Pros is cheaper and has gotten g

  • Ale / Idoc between two different servers

    Hi All, In my scenario i am working on two different servers in which distribution of idoc is carrying out. (Before this i have worked on same server scenarios with different clients.) But present scenario i am working with two diferent servers, like