A whole compiler mess that needs cleaning for a Vista computer.

Hey, I'm new to java starting a few hours ago and I'm already feeling defeated how I can't get past step 2. I'm trying to get this compiler working.
I've run through the forums and tried proposed fixes for the Error "*'javac' is not recognized as an internal or external command, operable program or batch file*". But the darn thing doesn't work and I think I've made it worse
Here's what I've done and what I think I've...done wrong:
-I've downloaded and installed JDK 6.
-After the Error message I tried setting CLASSPATH to the bin file of my jdk.
-Then I figured "PATH" is not "CLASSPATH" (first mistake) and I added the address to "PATH"
-After the thing still didn't work I tried deleting all in PATH except the address to the bin in jdk.
Now, I'm still getting the same message and I feel the strange touch of insanity taking hold of my presently frustrated mind. Is there anyone who can step me through this?

ejp wrote:
You shouldn't have had to do that: just bung the .jar files in lib/ext.Had to for linux but learned plenty on how the system works during the process.
If you "bung" the .jar files in lib/ext then what happens when you install a new update e.g. jdk1.6.0_14 ;)
It's the reason why I haven't updated yet because I have a bunch of stuff floating around (i.e. JSR-80 usb stuff, etc.) I have to track down and rewire to the new install should I choose to get it.
I think the latest Java3D installer made its own separate folder outside of the jdk's folder for this particular reason.

Similar Messages

  • I need to download adobe acrobat 7. I had it on my old computer and need it for my new computer. I have the serial #. Where can I get that download?

    I need to download adobe acrobat 7. I had it on my old computer and need it for my new computer. I have the serial #. Where can I get that download?

    http://helpx.adobe.com/x-productkb/policy-pricing/creative-suite-2-activation-end-life.htm l. I think this is the link. However, you will need to use the new S/N if you need to do the activation. The Activation server for AA 7 was taken down. I am not sure this link is complete, but it might give you some idea. However, on WIn7 and newer, AA7 has problems and will only work with some workarounds, and then kind of clunky.

  • How do I send a large Illustrator CS3 file to a client that needs it for printing?

    How do I send a large Illustrator CS3 file to a client that needs it for printing?

    Hey, another way that i just discovered by complete accident is by selecting what you want to send, and in Illustrator, going to File>Save For > and then click on okay. > then you save it under Pictures or wherever you wish, and name it. Now, all you have to do is compose an email, and attach it!
    Hopefully this works for you like it does for me!
    -Alex H

  • The Examples They Show Are not for my computer I Need instructions For A Windows Computer HP TouchSmart

    The Examples They Show Are not for my computer I Need instructions For A Windows Computer HP TouchSmart

    hp
    The answers are in the details, and you have not given us enough details to help you.
    Right now I am guessing at what you seek. Are you trying to use your HP Touch Screen to do your
    Premiere Elements importing, editing, and exporting and the Touch Screen movements are not working
    to do what you want to do in Premiere Elements?
    Have you configured the HP computer Touch Screen? Using the Touch Screen, what cannot you do
    that you can do with the mouse?
    HP Support document - HP Support Center
    If I am guessing correctly here, does the mouse work instead of the Touch Screen to allow you to
    work in the program.
    I suspect that Premiere Elements does not support Touch Screen and you will end up using a mouse, but I would need to do more homework on
    that.
    This is not Adobe. Rather user to user. If you are dealing with the current version, 13, you might want to contact
    Adobe about the matter. More on that later, once you confirm the above or let me know that I have completely
    misinterpreted your question/concern.
    ATR

  • How to run a compiled file that needs a jar

    Hi all
    I'm trying to run a file that I've compiled that requires a jar
    I have both the jar and java file in the same directory
    HelloWorld.java
    itext.jar
    i compile using
    javac -cp itext.jar HelloWorld.java
    which produces my HelloWorld.class
    but when i run
    java HelloWorld
    I get loads of errors
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorl
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Sourc
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    am i doing something wrong with trying to run the class with the jar file?

    Didnt work
    C:\Projects\pdf>java -cp .;itext.jar HelloWorld
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld (wrong name: com/lowagie/examples/general/HelloWorld)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)

  • Need Instructions for XP on computer workshops

    I started taking the Home Networking "Introduction to Wireless Networking" lesson andn was surprised to see that all the instructions refer to only Windows 7.  Considering the large number of XP systems still out there, shouldn't there be an option to select the OS for which instruction to be given (including MAC)?  This would apply to all the computer lessons.
    I have 3 XP systems (1 is a wireless laptop) and 1 Windows 7 64bit Pro laptop.  The XP laptop is old enough that it doesn't support WPA, only WEP.  However, it is still a valuable part of my network and is used in a business enviornment.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

    I agree that XP support really is a must. The reality is market penetration by both Windows 7 (which is really Vista with a new label) is remarkable for just how limited it is.
    I look after a couple of web sites, and we track the O/S-Browser combination of our visitors. Of the top 15, 12 are XP based.
    Windows NT6.1 (Windows 7) represent only 1.8% of the visitors
    Windows NT6.0 (Vista) represents only 3.5% of the visitors.
    So if the Introduction to  Wireless networking is going to be useful, it needs to cover Windows XP, because that is where the bulk of the users are.

  • In trying to sync my old iPod to my new computer, it says that I cannot sync because it belongs to anther library.  How do I find that old library for my new computer?

    I have a new computer.  It has been several years since I have downloaded any songs to my iPod.  My old computer crashed so I could not get the info off of it.  Now that I try to sync this iPod to my new computer, it states that it cannot because it belongs to another Library.  How do I find that Library.  I have resigned into iTunes, found my old account, and it still does not sync. 
    Any Ideas" 
    Thanks

    Your iPod is designed to sync with only one iTunes library at a time.  It will recognize the iTunes library on the new PC as a new library.  If you sync the iPod with this new library, all content will be erased from the iPod and replaced with what is in the new library.  So what you will want to do is copy everything from the iPod to your new iTunes library on your PC first.
    See this excellent user tip from another forum member turingtest2 outlining the different methods and software available to help you copy content from your iPod back to your PC and into iTunes.
    Recovering your iTunes library from your iPod or iOS device
    B-rock

  • Now that I have a new vista computer my labtop wont connect to internet

    I just got a new HP computer with Vista on it. At first I was able to get internet connection on my labtop, now I cannot and if I leave my WRT54 G  Version 6  wireless router  plugged in I cant access the internet  on my computer as well. when it is plugged in it shows the reception on my labtop and even connects but the internet does not work I cannot view any pages.  I put in the startup disk it came with but it wont install all the way and I tried to download firmware but it wont open in PDF as a BIN file.  I think this is because of the vista. I have reseted the router and the modem but nothing works now. at first if I reseted them i would get internet access but now I cannot.  I would gladly appreciate any advice on how to solve the problem.
                                      Thank You

    The .bin file is the firmware.  When you access your router and go to flash the firmware to direct it to where ever that .bin file then flash it.  I am guessing you have a cable modem?  Try pluging into the modem with a cat5e cable and see if you can get online.  If you can then plug the router back in then plug you pc in and rreconfigure your SSID/security/password  and the rest of the settings you need.  Then unplug you pc and try connecting with the wireless.
    Richard Aichner (Ikester)

  • Need BootCamp Drivers for Windows Vista!

    Hi Guys, I lost my bootcamp installation disk for the Windows Drivers. I have OSX 10.6.3 and boot camp 3.0.2 on an imac G5 Intel duo. Please help me, I need drivers for Windows Vista . Thanks

    have you looked on the bootcamp install list?
    http://support.apple.com/downloads/#macoscomponents

  • Installing "Update for Windows Vista (KB936824)" Problems

    If anyone can help me out with this, I'd be so grateful.
    Last week I installed 7.3 on my computer without a problem. It worked great, until last night, when I got a popup saying that I needed to install a plugin type thing for my Vista computer so my iPod wouldn't crash if I unplugged it. Okay, fine. I follow the instructions, restarted the system and then went back into iTunes. Only it wouldn't play any music.
    The program itself isn't frozen, I can access menus, help, etc. just fine. When I go to play a song, it just stays at 0.00. It's not my soundcard as sound works fine in other programs, so it's just itunes. I even ejected my iPod and the iPod seems to be okay.
    I uninstalled the plugin, recent Windows updates, and iTunes 7.3 and installed 7.2 instead and the same thing happens. So what did I do wrong?

    Nicely done! I hadn't thought to check how that control panel was working in Vista yet. (Sorry about that.)
    However, when I shut down all iTunes related programs (Quicktime included) and restarted, it worked!
    Shutting down QuickTime may have been the trick here. It handles audio playback for itunes, so the changes you made might not have been registering for QuickTime until it restarted QuickTime. (QuickTime can be a bit like that on XP at least.)

  • How do I clean my mid 2007 iMac? The disk space is running VERY low and I would love an idea. I make videos and upload them to youtube and I need space to do that. Thanks for your time!

    How do I clean my mid 2007 iMac?
         The disk space is running VERY low and I would love an idea. I make videos and upload them to youtube and I need space to do that. Thanks for your time!                              
                                       If you have an idea please respond!

    You should never, EVER let a conputer hard drive get completely full, EVER!
    With Macs and OS X, you shouldn't let the hard drive get below 15 GBs or less of free data space.
    If it does, it's time for some hard drive housecleaning.
    Follow some of my tips for cleaning out, deleting and archiving data from your Mac's internal hard drive.
    Have you emptied your iMac's Trash icon in the Dock?
    If you use iPhoto, iPhoto has its own trash that needs to be emptied, also.
    If you store images in other locations other than iPhoto, then you will have to weed through these to determine what to archive and what to delete.
    If you use Apple Mail app, Apple Mail also has its own trash area that needs to be emptied, too!
    Look though other Apple Mail folders like the junk mail and delete the mail that is in there. Look through your sent items folders and see there is any mail in there that can be deieted.
    Delete any old or no longer needed emails and/or archive to disc, flash drives or external hard drive, older emails you want to save.
    Other things you can do to gain space.
    Once you have around 15 GBs regained, do a search, download and install OmniDisk Sweeper.
    This app will help you locate files that you can move/archive and/or delete from your system.
    STAY AWAY FROM DELETING ANY FILES FROM OS X SYSTEM FOLDER!
    Look through your Documents folder and delete any type of old useless type files like "Read Me" type files.
    Again, archive to disc, flash drives, ext. hard drives or delete any old documents you no longer use or immediately need.
    Look in your Applications folder, if you have applications you haven't used in a long time, if the app doesn't have a dedicated uninstaller, then you can simply drag it into the OS X Trash icon. IF the application has an uninstaller app, then use it to completely delete the app from your Mac.
    Download an app called OnyX for your version of OS X.
    When you install and launch it, let it do its initial automatic tests, then go to the cleaning and maintenance tabs and run the maintenance tabs that let OnyX clean out all web browser cache files, web browser histories, system cache files, delete old error log files.
    Typically, iTunes and iPhoto libraries are the biggest users of HD space.
    move these files/data off of your internal drive to the external hard drive and deleted off of the internal hard drive.
    If you have any other large folders of personal data or projects, these should be archived or moved, also, to the optical discs, flash drives or external hard drive and then either archived to disc and/or deleted off your internal hard drive.
    Good Luck!

  • I connected my iphone 4s that i unlocked for t-mobile. I plugged it into itunes, and it asked me to update to ios6. I accepted the download and update button. it told me it needed 8 hours. i closed my laptop. not shut down. i opened and it wants restorin?

    I connected my iphone 4s that I unlocked for t-mobile. I plugged it into itunes, and it asked me to update to ios6. I accepted the download and update button. It told me it needed 8 hours. I closed my laptop, not shut down. I re-opened the laptop a few hours later, and it wants restoring?? Whats going on?! i want my iphone back! PLEASE HELP. I'M LOST!!! (I synced my iphone to my computer if that helps at all).

    Yes, and, I try to restore. I have the T-Mobile sim card in it just to clarify. It will not let me get passed that, it does not accept the t-mobile sim card. i tried restoring it using wifi, cellular, and i cant get i tunes. I am scared that if i take the tmobile sim card out and put the at&t one in just to complete the restoration process that the iphone will lock again and not read the tmobile sim card, then all my hard work has gone for nothing. ( this whole process was caused by me trying wanting to empty my pictures onto my computer because i did not have any storage space left). <--- that may not be as important, but i included it just because.

  • How to update a large (over 4 million item) List(Of Byte) quickly by altering indexes contained in a Dictionary(Of Integer, Byte) where the Dictionaries keys are the indexes in the List(Of Byte) that need to be changed to the values for those indexes?

       I'm having some difficulty with transferring images from a UDP Client to a UDP Server. The issue is receiving the bytes necessary to update an original image sent from the Client to the Server and updating the Servers List(Of Byte) with the
    new bytes replacing bytes in that list. This is a simplex connection where the Sever receives and the Client sends to utilize the least amount of bandwidth for a "Remote Desktop" style application where the Server side needs image updates of whatever
    occurs on the Client desktop.
       So far I can tranfer images with no issue. The images can be be any image type (.Bmp, .Gif, .JPeg, .Png, etc). I was working with sending .JPeg's as they appear to be the smallest size image when a Bitmap is saved to a memory stream as type
    .JPeg. And then I am using GZip to compress that byte array again so it is much smaller. However on a loopback on my NIC the speed for sending a full size screen capture is not very fast as the Server updates fairly slowly unless the Clients screen capture
    Bitmap is reduced in size to about 1/3'd of the original size. Then about 12000 bytes or less are sent for each update.
       Due to .JPeg compression I suppose there is no way to get the difference in bytes between two .JPegs and only send those when something occurs on the desktop that alters the desktop screen capture image. Therefore I went to using .Bmp's as each
    .Bmp contains the same number of bytes in its array regardless of the image alterations on the desktop. So I suppose the difference in bytes from a second screen capture and an inital screen capture are what is different in the second image from the initial
    image.
       What I have done so far is save an initial Bitmap of a screen capture using a memory stream and saving as type .Bmp which takes less than 93 milliseconds for 4196406 bytes. Compressing that takes less than 118 milliseconds to 197325 bytes for
    the current windows on the desktop. When that is done PictureBox1 is updated from nothing to the captured image as the PictureBox's background image with image layout zoom and the PictureBox sized at 1/2 my screens width and 1/2 my screens height.
       Then I save a new Bitmap the same way which now contains different image information as the PictureBox is now displaying an image so its back color is no longer displayed (solid color Aqua) and the cursor has moved to a different location. The
    second Bitmap is also 4196406 in bytes and compressed it was 315473 bytes in size.
       I also just found code from this link Converting a Bitmap to a Byte Array (and Byte Array to Bitmap) which gets a byte array
    directly from a Bitmap and the size of that is 3148800 for whatever is full screen captured on my laptop. So I should be able to work with smaller byte arrays at some point.
       The issue I'm having is that once the Client sends an image of the desktop to the Server I only want to update the server with any differences occuring on the Clients desktop. So what I have done is compare the first screen captures bytes (stored
    in a List(Of Byte)) to the second screen captures bytes (stored in a List(Of Byte)) by using a For/Next for 0 to 4196405 where if a byte in the first screen captures List is not equal to a byte in the second screen captures List I add the index and byte of
    the second screen captures list to a Dictionary(Of Integer, Byte). The Dictionary then only contains the indexes and bytes that are different between the first screen capture and second screen capture. This takes about 125 milliseconds which I think is pretty
    fast for 4196406 byte comparison using a For/Next and adding all the different bytes and indexes for each byte to a Dictionary.
        The difference in Bytes between the inital screen capture and the second screen capture is 242587 as an example which changes of course. For that amount of bytes the Dictionary contains 242587 integers as indexes and 242587 bytes as different
    bytes totaling 485174 bytes for both arrays (keys, values).  Compressed the indexes go from 242587 to 43489 bytes and the values go from 242587 to 34982 bytes. Which means I will have to send 78, 481 bytes from the Client to the Server to update the display
    on the server. Quite smaller than the original 4196406 bytes of the second Bitmap saved to type .Bmp or the compressed size of that array which was 315473 bytes. Plus a few bytes I add as overhead so the server knows when an image array ends and how many packets
    were sent for the array so it can discard complete arrays if necessary since UDP is lossfull although probably not so much in current networks like it may originally have been when the internet started.
        In reality the data from the Client to the Server will mostly be the cursor as it moves and updating the Server image with only a few hundred bytes I would imagine at a time. Or when the cursor selects a Button for example and the Buttons
    color changes causing those differences in the original screen capture.
       But the problem is if I send the Dictionaries Indexes and Bytes to the Server then I need to update the original Bitmap List(Of Byte) on the server by removing the Bytes in the received informations Index locations array from the Servers Bitmap
    List(Of Byte) and replacing those Bytes with the Bytes in the received informations Byte array. This takes so long using a For/Next for however many indexes are in the received informations Index array to update the Bitmap List(Of Byte) on the server using
    "Bmp1Bytes.RemoveAt(Index As Integer)" followed by "Bmp1Bytes.Insert(Index As Integer, Item As Byte)" in the For/Next.
        I've tried various For/Next statements including using a new List(Of Byte) with If statements so If the the integer for the For/Next ='s the Key in a Dictionary(Of Integer, Byte) using a Counter to provide the Dictionaries Key value then
    the Dictionaries byte value will be added to the List(Of Byte) and the counter will increas by one Else the List(Of Byte) adds the original "Bmp1Bytes" byte at that index to the new List(Of Byte). This takes forever also.
       I also tried the same For/Next adding to a new Dictionary(Of Integer, Byte) but that takes forever too.
       I think I could use RemoveRange and AddRange to speed things up. But I don't know how to retrieve a contiguous range of indexes in the received indexes that need to be updated in the servers "Bmp1Bytes" List(Of Byte) from the received
    array of indexes and bytes which are in a Dictionary(Of Integer, Byte).  But I believe this would even be slower than some realistic method for replacing all Bytes in a List(Of Byte) when I have the indexes that need to be replaced and the bytes to replace
    them with.
       Even if I just used AddRange on a new List(Of Byte) to add ranges of bytes from the original "Bmp1Bytes" and the changes from the Dictionary(Of Integer, Byte) I think this would be rather slow. Although I don't know how to do that
    by getting contiguous ranges of indexes from the Dictionaries keys.
       So I was wondering if there is some method perhaps using Linq or IEnumerable which I've been unable to figure anything out which could do this.
       I do have some copy and pasted code which I don't understand how it works that I am using which I would guess could be altered for doing something like this but I can't find information that provides how the code works.  Or even if I did
    maybe I can't understand it. Like the code below which is extremely fast.
       Dim strArray() As String = Array.ConvertAll(Of Integer, String)(BmpComparisonDict.Keys.ToArray, Function(x) x.ToString())
    La vida loca

    Monkeyboy,
    That was quite a bit to read, but still a bit unclear. Could you put a specific list of goals/questions, asked in the smallest possible form?
    It seems like either you're making a program that monitors activity on your computer, or you're writing some kind of remote pc app.
    When you do get your bytes from using lockbits, keep in mind all the files header info would be lost. I think retaining the header info is worth the extra bytes.
    The other, thing: I'm not sure if you're taking 32bpp screen shots, but also keep in mind that the "whole desktop" is the final destination for blended graphics, if that makes sense. What I mean is that there is no need to capture an "alpha"
    channel for a desktop screenshot, as alpha would always be 255, this could save you 1 byte per pixel captured... Theres nothing "behind" the desktop, therefore no alpha, and every window shown above the desktop is already blended. I suggest using
    24Bpp for a full screen capture.
    Your X,Y information for the mouse could be stored as UINT16, this would save you a measly 2 bytes per location update/save.
    When you update your byte arrays, maybe you can turn the array into a stream and write to whatever index, however many bytes, that should prevent a "Shift" of bytes, and instead overwrite any bytes that "get in the way".
    ex
    Dim example As String = "This is an example."
    Dim insertString As String = "was"
    Dim insertBytes As Byte() = System.Text.Encoding.ASCII.GetBytes(insertString)
    Dim bytes As Byte() = System.Text.Encoding.ASCII.GetBytes(example)
    Dim modifiedBytes As Byte() = {}
    Using ms As New System.IO.MemoryStream(bytes)
    ms.Position = 5
    ms.Write(insertBytes, 0, 3)
    modifiedBytes = ms.ToArray
    End Using
    Dim newString As String = System.Text.Encoding.ASCII.GetString(modifiedBytes)
    'Notice how below there isn't the word "is" anymore, and that there isn't a
    'space.
    'This demonstrates that you overwrite existing data, versus shifting everything to
    'the right.
    'Returns: This wasan example.
    MsgBox(newString)
    “If you want something you've never had, you need to do something you've never done.”
    Don't forget to mark
    helpful posts and answers
    ! Answer an interesting question? Write a
    new article
    about it! My Articles
    *This post does not reflect the opinion of Microsoft, or its employees.
    Well it's too much to read. I was really tired when I wrote it. Even the below is too much to read but perhaps gets the point across of what I would like to do which I think
    Joel Engineer may have answered but I'm not sure. As I'm still too tired to understand that yet and research what he said in order to figure it out yet.
    But maybe the code below can provide the concept of the operation with the comments in it. But seeing as how I'm still tired it may be confused.
    Option Strict On
    Imports System.Windows.Forms
    Imports System.IO
    Imports System.IO.Compression
    Imports System.Drawing.Imaging
    Imports System.Runtime.InteropServices
    Public Class Form1
    Dim Bmp1Bytes As New List(Of Byte)
    Dim Bmp1BytesCompressed As New List(Of Byte)
    Dim Bmp2Bytes As New List(Of Byte)
    Dim BmpComparisonDict As New Dictionary(Of Integer, Byte)
    Dim BmpDifferenceIndexesCompressed As New List(Of Byte)
    Dim BmpDifferenceBytesCompressed As New List(Of Byte)
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    SomeSub()
    End Sub
    Private Sub SomeSub()
    ' Pretend this code is in UDP Client app. A screen capture is performed of the desktop. Takes about 90 milliseconds.
    Bmp1Bytes.Clear()
    Using BMP1 As New Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height)
    Using g1 As Graphics = Graphics.FromImage(BMP1)
    g1.CopyFromScreen(0, 0, 0, 0, BMP1.Size)
    Cursor.Draw(g1, New Rectangle(Cursor.Position.X, Cursor.Position.Y, Cursor.Size.Width, Cursor.Size.Height))
    Using MS As New MemoryStream
    BMP1.Save(MS, System.Drawing.Imaging.ImageFormat.Bmp)
    Bmp1Bytes.AddRange(MS.ToArray)
    End Using
    End Using
    End Using
    Bmp1BytesCompressed.AddRange(Compress(Bmp1Bytes.ToArray))
    ' UDP Client app sends Bmp1BytesCompressed.ToArray to UDP Server which is the entire image of the desktop that the UDP
    ' Client is on. This image takes awhile to send since compressed it is about 177000 bytes from over 4000000 bytes.
    ' I will be using different code just to get the bytes from the actual Bitmap in the future. That is not important for now.
    ' Pretend the UDP Server has received the bytes, decompressed the array received into a List(Of Byte) and is displaying
    ' the image of the UDP Clients desktop in a PictureBox.
    ' Now the image on the UDP Clients desktop changes due to the mouse cursor moving as an example. Therefore a new Bitmap
    ' is created from a screen capture. This takes about 90 milliseconds.
    Bmp2Bytes.Clear()
    Using BMP2 As New Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height)
    Using g1 As Graphics = Graphics.FromImage(BMP2)
    g1.CopyFromScreen(0, 0, 0, 0, BMP2.Size)
    Cursor.Draw(g1, New Rectangle(Cursor.Position.X, Cursor.Position.Y, Cursor.Size.Width, Cursor.Size.Height))
    Using MS As New MemoryStream
    BMP2.Save(MS, System.Drawing.Imaging.ImageFormat.Bmp)
    Bmp2Bytes.AddRange(MS.ToArray)
    End Using
    End Using
    End Using
    ' Now I have the original images bytes in Bmp1Bytes and the new images bytes in Bmp2Bytes on the UDP Client. But I don't
    ' want to send all of the bytes in Bmp2Bytes to the UDP Server. Just the indexes of and the bytes that are different in
    ' Bmp2Bytes from Bmp1Bytes.
    ' This takes less than 100 milliseconds for what I've tested so far where over 500000 bytes in Bmp2Bytes are different
    ' than the bytes in Bmp1Bytes. Usually that amount would be much less. But during testing I was displaying the image
    ' from Bmp1 bytes in a PictureBox so a large amount of data would change between the first screen shot, the PictureBox
    ' then displaying an image on the same PC and then the second screen shot.
    BmpComparisonDict.Clear()
    For i = 0 To Bmp1Bytes.Count - 1
    If Bmp1Bytes(i) <> Bmp2Bytes(i) Then
    BmpComparisonDict.Add(i, Bmp2Bytes(i))
    End If
    Next
    ' So now I have all the difference bytes and their indexes from Bmp2Bytes in the BmpComparisonDict. So I compress
    ' the indexes into on List and the Bytes into another List.
    BmpDifferenceIndexesCompressed.Clear()
    BmpDifferenceBytesCompressed.Clear()
    BmpDifferenceIndexesCompressed.AddRange(Compress(BmpComparisonDict.Keys.SelectMany(Function(d) BitConverter.GetBytes(d)).ToArray()))
    BmpDifferenceBytesCompressed.AddRange(Compress(BmpComparisonDict.Values.ToArray))
    ' Now pretend the UDP Client has sent both those arrays to the UDP Server which has added both decompressed arrays
    ' to a Dictionary(Of Integer, Byte). And the server has the original image decompressed bytes received in a List
    ' called Bmp1Bytes also.
    ' This is where I am stuck. The UDP Server has the Dictionary. That part was fast. However there is no
    ' fast method I have found for creating a new List(Of Byte) where bytes in the originally received List(Of Byte) that
    ' do not have to be altered are placed into a new List(Of Byte) except for the indexes listed in the
    ' Dictionary(Of Integer, Byte) that need to be placed into the appropriate index locations of the new List(Of Byte).
    ' The below example for doing so is exceptionally slow. Pretend UpdateDictionary has all of the decompressed indexes
    ' and bytes received by the UDP Server for the update contained within it.
    Dim UpdateDictionary As New Dictionary(Of Integer, Byte)
    Dim UpdatedBytes As New List(Of Byte)
    Dim Counter As Integer = 0
    For i = 0 To Bmp1Bytes.Count - 1
    If i = UpdateDictionary.Keys(Counter) Then ' Provides the index contained in the Keys for the Dictionary
    UpdatedBytes.Add(UpdateDictionary.Values(Counter))
    Counter += 1
    If Counter > UpdateDictionary.Count - 1 Then Counter = 0
    Else
    UpdatedBytes.Add(Bmp1Bytes(i))
    End If
    Next
    ' So what I'm trying to do is find an extremely fast method for performing something similar to what the
    ' above operation performs.
    End Sub
    Private Function Compress(BytesToCompress() As Byte) As List(Of Byte)
    Dim BytesCompressed As New List(Of Byte)
    Using compressedStream = New MemoryStream()
    Using zipStream = New GZipStream(compressedStream, CompressionMode.Compress)
    zipStream.Write(BytesToCompress, 0, BytesToCompress.Count)
    zipStream.Close()
    BytesCompressed.AddRange(compressedStream.ToArray)
    End Using
    End Using
    Return BytesCompressed
    End Function
    Private Function Decompress(BytesToDecompress() As Byte) As List(Of Byte)
    Dim BytesDecompressed As New List(Of Byte)
    Using DecompressedStream = New MemoryStream()
    Using zipStream = New GZipStream(DecompressedStream, CompressionMode.Decompress)
    zipStream.Write(BytesToDecompress, 0, BytesToDecompress.Count)
    zipStream.Close()
    BytesDecompressed.AddRange(DecompressedStream.ToArray)
    End Using
    End Using
    Return BytesDecompressed
    End Function
    End Class
    La vida loca

  • Burner not working, 8.98 GB free, can this 2003/2004 imac model be cleaned for better use or will I continue to have problems?  Do I need to just buy a new one?

    burner not working, 8.98 GB free, can this 2003/2004 imac model be cleaned for better use or will I continue to have problems?  Do I need to just buy a new one?  I remember with a PC being able to defrag.

    You could buy an external dvd/cd drive.
    Suggest other world computing.
    You need to delete some files.  Many posters to these forums state that you need much more free space: 5 gig to 10 gig or 10 percent of you hd size.
    (0)
    Be careful when deleting files. A lot of people have trashed their system when deleting things. Place things in trash. Reboot & run your applications. Empty trash.
    Go after large files that you have created & know what they are.  Do not delete small files that are in a folder you do not know what the folder is for. Anything that is less than a megabyte is a small file these days.
    (1)
    Run
    OmniDiskSweeper
    "The simple, fast way to save disk space"
    OmniDiskSweeper is now free!
    http://www.omnigroup.com/applications/omnidisksweeper/download/
    This will give you a list of files and folders sorted by size. Go after things you know that are big.
    (2)
    This will save you a gig of space.
    Monolingual is a program for removing unnecessary language resources from Mac OS X,in order to reclaim several hundred megabytes of disk space. It requires at least Mac OS X 10.3.9 (Panther) and also works on Mac OS X 10.4 (Tiger). It worked for me on 10.4
    http://monolingual.sourceforge.net/
    A detailed write-up on how to use Monolingual:
    http://www.jklstudios.com/misc/monolingual.html
    (3)
    These pages have some hints on freeing up space:
    http://thexlab.com/faqs/freeingspace.html
    http://www.macmaps.com/diskfull.html
    (4)
    Buy an external firewire harddrive.
    (5)
    Buy a flash card.

  • Help needed. I have a 3TB external hard drive partitioned into 1TB's. I used one partition as backup for the main computer hard drive. But now it is greyed out as shown in the disk utility and its name changed, i dont know how that happened, i tried verif

    Help needed. I have a 3TB external hard drive partitioned into 1TB's. I used one partition as backup for the main computer hard drive. But now it is greyed out as shown in the disk utility and its name changed, i dont know how that happened, i tried verifying and repairing it but had no luck. I also tried mounting and unmounting it but still no solution. Anyone to help please?

    Looks bad. I would strongly advise backing up the stuff on the other two partitions as soon as possible in case the rest of the drive goes wrong.
    Beyond that, Disk Utility has limited abilities to repair disks, DiskWarrior uses a different approach and might, emphasis might be more successful. It has certainly done the job for me in the past when Disk Utility could not.
    See http://www.alsoft.com/diskwarrior/

Maybe you are looking for

  • CC (14.x) Bugs

    I've got to the stage where I have to say something, because Photoshop CC is definitely buggy in my experience to date.  The one that annoys me the most is that I suddenly get stuck with a small brush tool that won't go away without restarting Photos

  • How to get string from jtextpane along with its attributes

    sir, How to get string from jtextpane along with its attributes i,e font,size,style,color etc. please help me out. my mail id is [email protected]

  • Does gapless playback relate to burned CD's as well?

    Will the new gapless playback work when a playlist is burned onto a CD or is this just for iTunes play?

  • Cursor disappears and window "de-select​s" after about 15 seconds. No action on my part causes this.

    In any program, including Word or IE, the cursor disappears and the window fades as if de-selected. Happens if the machine is idle OR I'm actually typing. Only way to continue typing is to hit space bar and then type. Recently installed an Epson WP-4

  • Terminationg events

    HI Guys I have a workflow in which a workitem goes to the managers inbox and then goes to HR managers inboxx upon managers approval now  the initiator changed the same entry which re-creates another woritem My requirement is that the new workitem sho