Saving files and future Java Virtual Machine updates questions

So I've made A program that keeps a list of Ingredients and Recipes for my dads small business. This program is currently on 3 computers my dads, the secretaries, and mine. I made it so it saved and loaded from a shared folder in the network where all the computers has access. The secretary and my dads computer saved and loaded the program fine with changes from one to the other, but mine wouldn't. If I save what information I put on my computer the other computers could no longer load the save file. If i saved something on the secretary or dads computer then my computer would not be able to load the file.
well i solved this problem by re downloading Java virtual machine on my computer.
this brings me to my question:
Will future virtual machine updates make it so the program can't read old .dat files (I've been using ObjectInputStreams and ObjectOutputStreams to save and load)
Sorry for the long story before the question I just wanted to state how I came to the question.

Yes, absolutely. That is one of the problems with using serialization to save data. Fortunately the serialization tutorial mentions it and explains some strategies for minimizing the problem. So have a look at that tutorial.

Similar Messages

  • Browsing for a file and selecting a Virtual Machine on hyper-v

    Hi everyone, sorry if the title is a bit problematic.
    New to Powershell here, I'm trying to create a script that will let me Browse for a .vhd file, and then let me select a Virtual Machine to attach it to using SCSI attachment.
    So far I managed to attach and detach the VHD files using add-vmharddiskdrive, but using read-host I have to manually enter the address of the .vhd file every time, as well as using read-host to input the VM name.
    Is there any way to browse for the file, select it, and then run the add-vmharddiskdrive command?
    So far the script I have is this:
    $VHDLocation = Read-Host Enter VHD Location
    $VMName = Read-Host Enter VM Name
    Add-VMHardDiskDrive -VMName $VMName -Path $VHDLocation -ControllerType SCSI
    Basically I want to shorten the time it takes to manually type the vhd location and the VM name. Any way to do that?
    Sorry for long post, thanks everyone in advance, have a nice day :)

    I couldn't get the Select-fromgridview to work sadly, but after snooping around on several different forums I managed to copy-paste some codes and after some work and trial and error I got the script to work perfectly, except for one problem. When the box
    pops up to let met select a VM, it pops in the background, as in, behind the ISE itself. So I have to alt tab to see it. Is there any way to make it pop to the front?
    I'd go through the script myself but like I said I'm very new to this and honestly most of this could be Chinese for all I know.
    Again thanks in advance!
    set-executionpolicy unrestricted
    ############## The script for browsing #############
    Function Get-FileName($initialDirectory)
     [System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") |
     Out-Null
     $OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog
     $OpenFileDialog.initialDirectory = $initialDirectory
     $OpenFileDialog.filter = "All files (*.*)| *.*"
     $OpenFileDialog.ShowDialog() | Out-Null
     $OpenFileDialog.filename
    } #end function Get-FileName
    ############## Sets the VHD location parameter to the selected file from above, and input VM Name  #############
    $VHDLocation = Get-FileName -initialDirectory "c:\fso"
    ############## Select a VM ######
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
    [void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") 
    $objForm = New-Object System.Windows.Forms.Form 
    $objForm.Text = "Select a Computer"
    $objForm.Size = New-Object System.Drawing.Size(300,200) 
    $objForm.StartPosition = "CenterScreen"
    # Got rid of the block of code related to KeyPreview and KeyDown events.
    $OKButton = New-Object System.Windows.Forms.Button
    $OKButton.Location = New-Object System.Drawing.Size(75,120)
    $OKButton.Size = New-Object System.Drawing.Size(75,23)
    $OKButton.Text = "OK"
    # Got rid of the Click event for the OK button, and instead just assigned its DialogResult property to OK.
    $OKButton.DialogResult = [System.Windows.Forms.DialogResult]::OK
    $objForm.Controls.Add($OKButton)
    # Setting the form's AcceptButton property causes it to automatically intercept the Enter keystroke and
    # treat it as clicking the OK button (without having to write your own KeyDown events).
    $objForm.AcceptButton = $OKButton
    $CancelButton = New-Object System.Windows.Forms.Button
    $CancelButton.Location = New-Object System.Drawing.Size(150,120)
    $CancelButton.Size = New-Object System.Drawing.Size(75,23)
    $CancelButton.Text = "Cancel"
    # Got rid of the Click event for the Cancel button, and instead just assigned its DialogResult property to Cancel.
    $CancelButton.DialogResult = [System.Windows.Forms.DialogResult]::Cancel
    $objForm.Controls.Add($CancelButton)
    # Setting the form's CancelButton property causes it to automatically intercept the Escape keystroke and
    # treat it as clicking the OK button (without having to write your own KeyDown events).
    $objForm.CancelButton = $CancelButton
    $objLabel = New-Object System.Windows.Forms.Label
    $objLabel.Location = New-Object System.Drawing.Size(10,20) 
    $objLabel.Size = New-Object System.Drawing.Size(280,20) 
    $objLabel.Text = "Please select a computer:"
    $objForm.Controls.Add($objLabel) 
    $objListBox = New-Object System.Windows.Forms.ListBox 
    $objListBox.Location = New-Object System.Drawing.Size(10,40) 
    $objListBox.Size = New-Object System.Drawing.Size(260,20) 
    $objListBox.Height = 80
    Get-VM | Format-List name | Out-File -filepath c:\VMNames.txt
    ${C:\VMNames.txt} = ${C:\VMNames.txt} | select -skip 2
    function Remove-Topline ( [string[]]$path, [int]$skip=2 ) {
      if ( -not (Test-Path $path -PathType Leaf) ) {
        throw "invalid filename"
      ls $path |
        % { iex "`${$($_.fullname)} = `${$($_.fullname)} | select -skip $skip" }
    (Get-Content C:\VMNames.txt) | 
    Foreach-Object {$_ -replace "Name :", ""} | 
    Set-Content C:\VMNames.txt
    Get-Content C:\VMNames.txt | ForEach-Object {[void] $objListBox.Items.Add($_)}
    $objForm.Controls.Add($objListBox) 
    $objForm.Topmost = $True
    # Now, instead of having events in the form assign a value to a variable outside of their scope, the code that calls the dialog
    # instead checks to see if the user pressed OK and selected something from the box, then grabs that value.
    $result = $objForm.ShowDialog()
    if ($result -eq [System.Windows.Forms.DialogResult]::OK -and $objListBox.SelectedIndex -ge 0)
        $selection = $objListBox.SelectedItem
        $selection
        # Do something with $selection
    $VMName = $selection.Trim()
    ############## Dismounts the VHD if it's mounted on host, and then mounts it on VHD #############
    Dismount-VHD $VHDLocation
    Add-VMHardDiskDrive -VMName $VMName -Path $VHDLocation -ControllerType SCSI
    ############## Detaches the VHD from VM and returns it to the host #############
    Add-Type -AssemblyName Microsoft.VisualBasic
    [Microsoft.VisualBasic.Interaction]::MsgBox('Press Ok when you are ready to detach the VHD', 'MsgBoxSetForeground,Information', 'Confirm')
    Remove-VMHardDiskDrive -VMName $VMname -ControllerType SCSI -ControllerNumber 0 -ControllerLocation 0
    Mount-VHD $VHDLocation 

  • Wondering about java virtual machine

    hey i just need to download and install java virtual machine so i can chat on this certain page. i tried doing the chat, and it tried downloading what i need, but that didnt work, the download box just completes the download and then nothing happens. someone please help an idiot trying to chat. thanks.

    Go here: http://java.sun.com/getjava/ follow the instructions and then try the chat page again (I'm assuming it's a webpage with a chat applet).

  • My Java Virtual Machine cannot be found?

    I just installed SPSS (statistics software) for school.  I have an error at -36 and my Java Virtual Machine cannot be found.  What is the issue, and what are my options?

    You may need to download re-install Java. Click Support in the upper right of this page - Downloads - then type the word "Java" in the search field and look to see if there is a recent one for Snow Leopard. For example I located this one which may work for your system:
    http://support.apple.com/kb/DL1360

  • I have updated my iTunes to the newest version, 10-25 on a windows XP system. Now my java virtual machine is not working and I need it to run applet window. My Java is also newest version. What can I do to fix/repair my issue?

    I need help with java on windowsXP after updating iTunes to the latest version. My java will not work and I get error message need java virtual machine to run applet window. Did not have this problem prior to the iTunes update.
    Please help, Thanks

    If your library was working on your computer and then popped up empty all of a sudden then this might be what you need...
    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    tt2

  • Java virtual machine and yahoo/pogo

    i am trying to play yahoo and pogo games, and it pops up that i need to download java virtual machine for it to load, i do, then it goes to MS website saying i need a more recent version of JVM to get to that screen. I got MSIE 6. i need to play these games. please help. help.

    I just experienced this issue and found a solution. What operating systems are you running. I am on Windows XP. I downloaded Java Virtual Machine (which can be found on this website) and it worked fine until I allowed my system to receive an update on the Microsoft Virtual Machine. This is a brand new computer and had the windows update alerts. I had to restore my system to the day before I allowed update and everything is working again. I suggest downloading Java virtual Machine. No one else on here was helping and Gateway had no clue how to help me. After three weeks I figured this out by myself.....I hope this fix works for you!
    Patty

  • Java virtual machine error: in running bat file!!!

    Hi experts!
    I have encounterd a problem . Could not figure out why I am having this. I hope at least I will get a clue /suggestion from any of you.
    I am creating a bat file from my java Application. Then I double click on the newly created bat file to run that. It gives me Java virtual machine launcher error:" could not find the main class, Progam will exit". I have a VB script, that also create the same bat file. but I dont have problem running that file manually. Even if I create the bat file manually(by typing), it ran well. It shows the error mesage only when I create bat file from my java Application. Instead of running the bat file manually, I tried to run it through my java application too(by Runtime.exec() ). But it shows me the same error msg.
    Why am I getting java virtual machine launcher error when I tried to run my bat file that is created from java Application? ANy clue? Please suggest me about how to resolve this.
    Regards

    Probably because (despite what you say) the contents of the bat file created by your Java application aren't the same as the contents of those other bat files.Yes contents are same. I create the bat file from my java Application. then I am trying to run that bat file manually. It gives me the specified error. But if I create the bat file manually (with the same content) and then run it manually. It works well.
    Any clue/suggestion

  • How do I enable Java Virtual Machine (JVM)? I upgraded yesterday and somehow it became disabled.

    I upgraded to newest version yesterday and when I went to a government site today, it tells me I have no access until I enable Java Virtual Machine (JVM). How do I do this??? (I did access this site by using Internet Explorer - but I much prefer Firefox)

    If you updated from a Firefox version prior to Firefox 3.6, the version of Java that you have installed is not being recognized. Firefox 3.6 and later requires Java 1.6.0.10 or higher; you have Java 1.6.0.05
    <u>'''''Other Issues'''''</u>: ~~red:You have installed plug-ins with known security issues. You should update them immediately.~~
    <u>'''Update Java'''</u>: your ver. 1.6.0.~~red:05~~; current ver. 1.6.0.20 (<u>important security update 04-15-2010</u>)
    (~~red:Firefox 3.6 and above requires Java 1.6.0.10 or higher~~; see: http://support.mozilla.com/en-US/kb/Java-related+issues#Java_does_not_work_in_Firefox_3_6 )
    ''(Windows users: Do the manual update; very easy.)''
    ~~red:Check your version here~~: http://www.mozilla.com/en-US/plugincheck/
    See: '''[http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates Updating Java]'''
    Do the update with Firefox closed.
    <u>'''NOTE:'''</u> Java version 1.6.0.21 has been released. It is mainly an update for developers of Java applications and most users do not need to be concerned about downloading version 1.6.0.21. <u>'''''At this time'''''</u>, the update option in existing installations of Java 1.6.0.20 are not updating to version 1.6.0.21; <u>'''''at this time'''''</u>, it must be manually downloaded and installed. According to the Java release notes:
    ''"'''Bug Fixes'''''
    ''Java SE 6 Update 21 does not contain any additional fixes for security vulnerabilities to its previous release, Java SE 6 Update 20. Users who have Java SE 6 Update 20 have the latest security fixes and do not need to upgrade to this release to be current on security fixes."'' Source: http://java.sun.com/javase/6/webnotes/6u21.html

  • UnsatisfiedLinkError and Java Virtual Machine error

    Hi,
    I'm trying load a library using the following lines:
    static {
         System.loadLibrary("mtcokus.dll");
    System.out.println("Random generator DLL loaded");
    I'm getting the following error in the console:
    java.lang.UnsatisfiedLinkError: no mtcokus.dll in java.library.path
         at java.lang.ClassLoader.loadLibrary(Unknown Source)
         at java.lang.Runtime.loadLibrary0(Unknown Source)
         at java.lang.System.loadLibrary(Unknown Source)
         at org.knowceans.util.CokusNative.<clinit>(CokusNative.java:34)
         at org.knowceans.lda.LdaEstimate.<clinit>(LdaEstimate.java:69)
    Exception in thread "main"
    Just before displaying the exception above, Java Virtual Machine Launcher DialogBox pops up and says:
    Could not find the main class. Program will exit.
    I checked the path of mtcokus.dll, it's where is must be. What can I do to fix this error?

    {forum:id=210} is the correct forum for your question

  • Load Plan and Java Virtual Machine

    Hi,
    We're think about using ODI 11g Load Plan, but I've got a question about their behaviour.
    Suppose I've got a load plan that launches 2 scenarios in parrallel with standalone agent.
    Will ODI launch 2 Java Virtual Machine "as if we just launch 2 ODI commands (startscen.bat)" or will it use only 1 Virtual Machine ?

    Okay let me try to help you on this.
    Oracle Data Integrator agents process each scenario execution instance as a session. Each session exists in the agent as a separate thread of the agent Java process.
    When a scenario is executed on an agent, the agent creates a session in the repository that corresponds to this scenario's instance. The agent reads each task of this session from the repository, processes it, and writes the result - the return code, message and tasks metrics such as the duration or number of rows processed - into the repository.
    Hence multiple session multiple thread.
    Hope you are clear now.
    Thanks.

  • Windows Update with Sun's Java Virtual Machine?

    I have downloaded Sun's Java Virtual Machine for my Windows XP Pro system.
    There is a new Critical Security Windows Update (Q329077 "resolving the Java Applet vulnerabilities in the Microsoft VM.
    Should I download the update or would this conflict with what I have in Java?
    Thank you for whatever help you can give.
    Mary

    As you just said, the problem is with the Microsoft VM, not the with Sun VM.

  • Browsers and java virtual machine

    Two questions:
    1) What is the lowest browser version to work with java virtual machine for both Netscape and IE?
    2) Where do I instruct the user to go to obtain Java VM if they do not already have it?

    1) You should check out the product sites for more info.
    2) you should check out
         http://java.sun.com
    Amlan

  • Differences between Java Virtual Machine and Java HotSpot ??

    I am little bit confused between Java Virtual Machine and Java HotSpot.
    My understanding is:
    Java Virtual Machine is the environment to execute Java programs. I think I could understand this part.
    However, the description says, "The Java HotSpot product line consists of a server-side and a client-side virtual machine that share the Java HotSpot runtime environment, but have different compilers suited to the different performance characteristics of clients and servers."
    I am confused with server-side virtual machine. what is that?? Does it mean the environment to execute Java programs remotely through network?? For example, Java plug-in.?? Please advise.

    Hotspot is a JVM.
    Hotspot has different configuration settings. Some of those settings are better suited for a client application. Some are better suited to server applications.

  • HT203176 my computer hangs frequently - rolling beach ball - apparently some endless loops - I have repaired the permissions countless times but the problem continues - the faulty permissions include java virtual machine and language libraries

    I get the rolling beach ball frequently when using a browser -I have repaired the permissions a number of times - each time I do this - the same issues show up-  language libraries, java virtual machine etc - after a restart the btowser works for awhile and then hangs again - i trashed both Chrome and Firefox and am now using Safari and Opera - neither of which work very fast and I still get a frozen screen - rolling beach ball - have to force quit.On the activity monitor it shows that the  browser I am using has several hangs.
    Aside from reinstalling everything - is  there a fix for this? 

    Those Permissions errrors will keep appearing. They are not errors; ignore them. Your problem has nothing to do with Permissions repair. Many possible causes, one of which may be A-V. Do you have any A-V installed?
    What does Disk Utility show for SMART Status for the drive? Verify the Disk.
    Open Activity Monitor>CPU tab. Anything hogging the CPU when the slowdowns occur? Switch to the Memory tab. What does it show for free and inactive? Also, Page ins, Page outs and Swap used?'
    How many applications open concurrently when this happens?
    How much drive free space? You should maintain at least around 20-30GB.

  • Could not find a valid Java virtual machine to load

    On a fresh copy of CFMX8, when I run updater 7, it responds
    'Could not find a valid Java virtual machine to load'.
    This is being installed on a Win2K3 server and this is on a
    'freshly minted' POC box solely for the purpose of
    installing/testing CFMX8 to determine how it compares to our
    CFMX6.1 environment.
    You will notice that it is NOT being installed in the default
    directory:
    JRun Version Information
    Vendor Macromedia
    Product Name JRun 4.0
    Build Number 108487
    Version Full Version
    License Type Trial License
    Serial Number JRD400-69341-58259-30688
    JRun 3.x Serial Number
    Restricted to Single IP No
    Installation Root D:\ISG\software\jrun4
    Expiration Date Mar 29, 2008
    Evaluation Days Remaining 29
    JDK path (JAVA_HOME): D:/ISG/software/jrun4/jre
    I do find it curious that I can run the Updater 6, and it
    seems to behave properly (it finds the VM). I ran it just as a
    test, then wiped everything to start over from scratch. For some
    reason do I need to direct Updater 7 to the installation that I did
    not have to do in Updater 6?
    Thank you in advance for your assistance - Jacques

    tried executing the following cmd, below is the following error:
    <<command i executed>>
    C:\Program Files\Java\jre1.5.0_09\bin>java -classpath "C:\Program Files\Java\jre1.5.0_09\lib\javaws.jar" com.sun.javaws.Main https://<IPddr>:8443/sample.jnlp
    Can you pls let me know how it can be resolved?Umm.. I am not sure, but I will start with
    a question. Why not do it this way?C:\Program Files\Java\jre1.5.0_09\bin>javaws https://<IPddr>:8443/sample.jnlp

Maybe you are looking for