Removing Java 5 from my path

I have an application that does not run correctly under Java 5 and that I start via the command line on Windows XP. I have both 1.4.2 installed as well as Java 5.
I had my PATH and JAVA_HOME environment variables both pointing to Java 5 so I changed them to point to the 1.4.2 installation. Even after restarting the terminal and rebooting the machine itself, the java version in use is still Java 5.
I then went to the java control panel that comes with Java 5 and changed whatever settings that were required to get 1.4.2 to be used instead of Java 5. It seems that this is mainly for applets but I gave it a try anyway. Still, the java version is Java 5 when I type 'java -version' on the command line.
So, what am I missing?
Richard

If you remove that directory your computer will stop working.
Those files are placed there by the last Java version installed on the assumption that you want that version as the default - that is, it's the version that will be executed when you type "java . . " without a path.
You can either:
Delete those Java files from the directory, in which case you will need to type the entire path to any of the java.exe, etc programs that you want executed. There will be no "default" version.
Replace those files with files from a different version, copying them from the JDK bin directory, making that version the default.
Uninstall all Java versions and then reinstall so that the last version installed is the one you want as the default.

Similar Messages

  • Should I remove Java from  my IMac?

    Should I remove Java from my iMac?  Heard  of security problem with Java and  wondered if I should delete it,

    MadMacs0 wrote:
    I've been going entirely on the almost universal statement that installing Lion does not install Java by default. I'm very aware of the fact that older versions of OS X actually rely on the use of Java for some system functions, but I've been told that is no longer the case. If that were so, then there is no need for any Java to be present, yet you say it is there and you aren't the only one who has told me that.
    But exactly how much Java is installed by default? Obviously not enough to use it for browsing. In the days of the Java 6 Preferences app, it used to alert you that Java was not installed and offer to do so.  What happens with standalone apps like CrashPlan in Lion that require Java, do they have enough, by default, to run?
    The only Java component missing in these OSs is the Java Runtime Environment (JRE). Peruse those installations, looking in these directories, and be enlightened:
    /Applicatons/Utilities/->Java Preferences.app
    /Library/Java/
    /Library/Internet Plug-Ins/->JavaAppletPlugin.plugin
    /System/Library/CoreServices/->
            Jar Launcher.app
            Java Web Start.app
            JavaVersion.plist
    /System/Library/Frameworks->
            JavaFrameEmbedding.framework
            JavaScriptCore.framework
            JavaVM.framework
    /System/Library/LaunchAgents/->
    com.apple.java.InstallOnDemand.plist
    com.apple.java.updateSharing.plist
    /System/Library/Java
    /System/Library/PrivateFrameworks/->
            JavaApplicationLauncher.framework
            JavaLaunching.framework
    to name a few, but probably not all the Java components installed with OS Xs. Then, stop saying Java's not installed, when only the JRE component is missing.
    There has been speculation from some that perhaps it migrated from an older system or that Lion was installed on top of the older system. There's also some confusion these days about what actually constitutes a "clean install".
    AFAICT, it's speculated wrongly. As for the clean install, I define it to occur when the user wipes the drive, installs the OS, sets up everything, and then installs all 3rd-party software. Then, the installation is clean. If there's any migration involved, then it's not clean. i've not done one for over ten years and my OSs started with 9.2->Jaguar->to the current three.

  • How to remove java from os x 10.7

    currently i am running os x 10.7.5.   here is a screen shot of the java version.
    java version "1.6.0_37"
    Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
    Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)
    i have run the sudo rm -rf /System/Library/Java/JavaVirtualMachines/
    how can i remove java completeley from my machine? 

    johny1010 wrote:
    my system has been hacked.  for security purpose, i like to remove java from my machine since i don't need java to perform work.
    The only part of Java that is vulnerable to any known threat is the plug-in. As long as you remove it from /Library/Internet Plug-Ins/ you should never have any issues with Java.
    As you will note in looking through the various recommended solutions, completely removing Java is difficult and time consuming. You will also be removing some of the files that originally came with Lion, which could possibly damage your OS.

  • How do i remove java from registry

    i tried to install j2se and it went wrong... now i can't re install or uninstall, because the installshield says that i need to remove previous program' but doesn't removes it.
    i tried anything ti remove the program and couldn't , i know that some how i can delete the program total from the computer and registry and then i could install the program again...
    please tell me how to remove the prog. from the registry.
    yours
    raz dagan, [email protected]

    Delete the directory c:\<jdk directory>. Then, to remove registry entries, select Run from the start menu. Type in regedit and press enter. Search for JavaSoft. Delete every directory with that name.

  • How to disable Java from OS X

    Need help as to removing Java from iMac &amp; MacBook-Pro.

    There are rumors of another vulnerability that has not yet been fixed. See:
    Did Java just fall down again?!
    Because of the numerous times that Java vulnerabilities have been discovered and exploited over the last year, I definitely recommend disabling Java in your web browser if at all possible. If you haven't installed Java on Mac OS X 10.8, you don't have Java, so you're safe. However, if you have, you should disable Java in your web browser. That alone is sufficient protection.
    Note that running in a non-admin account will not protect you! All that will do is prevent certain types of infection, but a lot of recent Mac malware has used techniques that do not require admin access. Flashback, for example, was fully capable of infecting a standard user account through a Java exploit, without needing the user to do anything at all.
    Also, note that there have been some recommendations to use ClickToPlugin to block Java... however, if you read that plugin's site carefully, you'll note that it cannot block all Java applets, and is thus not good protection against Java exploits.

  • Remove java in solaris

    Can i remove java from a solaris 9 server. ALL version of java. I dont have any GUI needs, I dont use SMC, I dont have any 3rd party apps using the system java. The only thing it appears to be good for is wasting my time patching java.
    What solaris (load the from the OS cd) requires java or breaks when java is removed?

    Hi did you ever figure out what patches cause this issue? we have the same problem (i.e. no support, same error)
    I am about to start some troubleshooting but would appreciate some pointers...
    Thanks
    AND Support

  • 11g installation warning - how to remove OH from PATH

    Hi all,
    I am getting the following warning when installing 11g on linux 4.0.
    I am using the same Oralce Base where 10g is installed.
    Please let me know how I can remove Oralce_home from PATH variable..
    Checking PATH environment variable...
    Check complete. The overall result of this check is: Failed <<<<
    [b]
    Problem: The installer has detected that the PATH environment variable includes other ORACLE_HOME locations in it.
    Recommendation: Restart the installer after removing other ORACLE_HOME locations from PATH environment variable.
    ========================================================
    Checking LD_LIBRARY_PATH environment variable...
    Check complete. The overall result of this check is: Failed <<<<
    Problem: The installer has detected that environment variable LD_LIBRARY_PATH includes other ORACLE_HOME locations in it.
    Recommendation: Restart the installer after removing other ORACLE_HOME locations from LD_LIBRARY_PATH environment variable.
    ========================================================
    Thanks,

    What operating system are you on?
    Okay, assuming unix of some sort and not Windblows...
    This is a nice trick I figured out long ago and is how I am able to easily run multiple versions of oracle with multiple Oracle_Homes on the same servers (unix):
    You can easily set your path in your .profile, or .bash_profile, or .cshrc (ugh).
    # Set up the PATH <jww>
    PATH=$HOME:.:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/bin/X11:/usr/contrib/bin
    export PATH
    echo $PATH > $HOME/ORIGINAL_PATH
    Then..... (here's the main part)
    I set up a case script that I accept input based on the ORACLE_SID, which then executes (sources) an oraenv file (of sorts). This file then sets the path for the database based on instance name and version of software requirements.
    #!/bin/ksh
    # orcl
    export ORACLE_SID=orcl
    export ORACLE_BASE=/u01/oracle/product
    export ORACLE_HOME=$ORACLE_BASE/10.2
    export ORAENV_ASK=NO
    alias admin='cd /u01/oracle/product/admin'
    export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
    #Set up the PATH environment
    ORIGINAL_PATH=`cat $HOME/ORIGINAL_PATH`
    PATH=$ORACLE_HOME/bin:$ORACLE_HOME/ldap/bin:$ORACLE_HOME/Apache/Apache/bin:$ORIGINAL_PATH
    ## adding the following parameters required for certain oracle utilities (wallet, sqlldr, etc.)
    # jww, 01/08/2008
    ## for Oracle 10G
    export LD_LIBRARY_PATH_64=$ORACLE_HOME/lib:/usr/lib
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib32
    ## According to Oracle NOTE: 418548.1
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
    echo ""
    echo " Verifying environment variables set properly: "
    echo " ============================================= "
    env |grep 'ORACLE_SID' | grep -v '$ORACLE_SID'
    env |grep 'ORACLE_BASE'
    env |grep 'ORACLE_HOME'
    echo ""
    Hope this helps...
    Ji Li

  • WD Java - removing attachment from interactive form

    Hi developers,
    I am working on Interactive Form by Adobe for WD JAVA.
    Can anyone please explain how to REMOVE attachments from a PDF document?
    I have only found way to attach items or lists of items.
    Thanks, regards
    Vincenzo

    Hi,
    For attaching and removing the File form the form using Adobe Java Script
    var sFile;
    // Assign an Unique Value to sFile if you are attaching multiple files.
    event.target.importDataObject(sFile);
    oFile = event.target.getDataObject(sFile);
    var pFile = event.target.getDataObjectContents(sFile);
    var cFile = util.stringFromStream(pFile, "utf-16");
    For the removing the attachments form the form
    var sFile;
    var myDoc = event.target;
    myDoc.removeDataObject(sFile);
    Regards,
    Chandran S

  • Error in java code for removing messages from a Topic

    Trying to write a code using oracle.jms package to remove messages from Topic. I have a similar code with javax.jms package for removing messages from Queue and it is working well. Whereas i have written this new code for removing messages from topic using oracle.jms package as methods like CreateBrowser and CreateTopicReceiver for topic are provided in oracle package only and can't be used from javax.jms package.
    Error i am getting is JMS-126: Invalid Topic specified at
             receiverTopic   = (Topic) ctx.lookup(((String)receiverProps.get( "Q_NAME")).trim()  );
             System.out.println ("receiverTopic is[" + receiverTopic + "]");
             MBeanHome home = (MBeanHome) Helper.getAdminMBeanHome("username","pwd","url:port");
             ((AQjmsSession)topicSession).grantSystemPrivilege("MANAGE_ANY", "SA", true);
             for(Iterator i = home.getMBeansByType("JMSTopic").iterator();i.hasNext(); )
              WebLogicMBean wmb = (WebLogicMBean)i.next();
              System.out.println("topic name found: " + wmb.getName());
                topicBrowser   = ((AQjmsSession) topicSession).createBrowser(receiverTopic, "Edin");topic handle which i am receiving in receiverTopic is same as what i am expecting but still it says Invalid topic specified on createBrowser method. Anyone who can help me to write this type of code, please reply. If anyone has ready code for this situation, please reply with the same as i am working on a prodcution system and we are in serious situation to resolve this problem.

    Hi,
    I am afraid this is impossible. You need to find another solution like a filtering queue. Your messages can be sent to a queue that is monitored by let say a MDB. This MDB will maintain a map of title and only forward once a given title/message to your topic.
    Hope it helps.
    Arnaud
    www.arjuna.com

  • Remove default java from Captivate HTML output

    Hi there
    i have noticed that when i publish my captivate to SWF the HTMl contains some javascript code that redirects my browser to the Adobe site to download the flash player - the code is :
    <script type="text/javascript">
           var so = new SWFObject("OrgHistory_demo_2.swf", "Captivate", "979", "619", "8", "#CCCCCC");
            so.addParam("quality", "high");
            so.addParam("name", "Captivate");
            so.addParam("id", "Captivate");
            so.addParam("wmode", "window");
            so.addParam("bgcolor","#F5F4F1");
            so.addParam("menu", "false");
            so.addVariable("variable1", "value1");
            so.setAttribute("redirectUrl", "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash");
            so.write("CaptivateContent");
        </script>
    Is there somewhere in captivate that i can disable this or prevent it from inserting this? As i now need to remove it from every HTML page Captivate creates and this is quite time consuming !
    Any suggestions greatly aprpeciated !
    Thanks
    Deb

    Hi there
    Okay, I have to ask.
    What about that line do you find offensive? I believe it's there only for the purpose of directing the user to a place where they may download the Flash player if the code finds it cannot play the Captivate because it's not installed. Otherwise, it does absolutely nothing and the user isn't aware it's even there.
    Waiting with bated breath... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Uninstalling All versions of Java from Windows Silent

    Hi Everyone,
    If there is something somewhere on Sun sites that does this already I appologize, but I have to get all previous version of Java from Sun uninstalled from over 700 hundred PCs and so I have created a set of scripts to uninstall all previous versions.
    You would copy 'java-uninstall.bat' and 'java-uninstaller.vbs' to c:\temp (make sure you have one) the script can be modified for another location of your choosing. Then you can execite the batch file or have it scheduled to do that with the NT 'AT' command. It will uninstall anything that shows up in Add/Remove programs with 'Java' in the displayname and 'Sun' as the publisher. This would including removal of SDK amd JRE versions, so keep that in mind.
    This could probably be used in the login script, but thats not how I deploy updates, it may be fashioned to work with SMS, I don't know. I have a script that goes through network copying files to c$ shares and scheduling it for later in the night.
    Also note this just uninstalls the older versions I have another script that does the reinstalling of the newer version.
    Files below:
    [java-uninstall.bat]
    REM <start>
    @echo off
    if not exist c:\temp\. mkdir c:\temp
    REM Export the Uninstall registry keys
    start /wait "" REGEDIT /E c:\temp\registry.tmp HKEY_LOCAL_MACHINE\SOFTWARE\microsoft\windows\currentversion\uninstall
    REM Filter only the {} keys that Java might be in
    type c:\temp\registry.tmp | find /i "\{" | find /i "}]" > c:\temp\uninstall.tmp
    REM Run the Vbscript that uses this file to find Java Sun entries to uninstall
    cscript c:\temp\java-uninstaller.vbs
    REM <end>
    [java-uninstaller.vbs]
    '<start>
    Set WshShell = WScript.CreateObject("WScript.Shell")
    Dim fso, MyFile
    Set fso = CreateObject("Scripting.FileSystemObject")
    Const ForReading = 1, ForWriting = 2
    'Open the exported registry file
    Set MyFile = fso.OpenTextFile("c:\temp\uninstall.tmp", ForReading)
    Do While mYFile.AtEndOfStream <> True
         ReadLineTextFile = MyFile.ReadLine
         Uninstall = ReadLineTextFile
         CLSID = Mid(Uninstall, 73, 38)
         On Error Resume Next
         'DisplayName
         DisplayName=WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"+CLSID+"\DisplayName")
         'Publisher
         Publisher=WshShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\"+CLSID+"\Publisher")
         'Search for presence of Java and Sun in DisplayName and Publisher
         search1 = Instr(1, DisplayName, "Java", 1)
         search2 = Instr(1, Publisher, "Sun", 1)
         'Execute removal if there is a match
         Uninstaller="MsiExec.exe /X"&CLSID+" /QN"
         if search1>0 And search2>0 Then Return = WshShell.Run(Uninstaller , 1, TRUE)
    Loop
    '<end>

    Here is a batch file that I wrote to accomplish the same objective of uninstalling all versions of Java Virtual Machine JVM from a XP/Vista box:
    You can name it anything you like, such as cleanjava.bat:
    @echo off & cls
    Rem List all Installation subkeys from uninstall key.
    echo Searching Registry for Java Installs
    for /f %%I in ('reg query HKLM\SOFTWARE\microsoft\windows\currentversion\uninstall') do echo %%I | find "{" > nul && call :All-Installations %%I
    echo Search Complete..
    goto :EOF
    :All-Installations
    Rem Filter out all but the Sun Installations
    for /f "tokens=2*" %%T in ('reg query %1 /v Publisher 2^> nul') do echo %%U | find "Sun" > nul && call :Sun-Installations %1
    goto :EOF
    :Sun-Installations
    Rem Filter out all but the Sun-Java Installations. Note the tilda + n, which drops all the subkeys from the path
    for /f "tokens=2*" %%T in ('reg query %1 /v DisplayName 2^> nul') do echo  . Uninstalling - %%U: | find "Java" && call :Sun-Java-Installs %~n1
    goto :EOF
    :Sun-Java-Installs
    Rem Run Uninstaller for the installation
    MsiExec.exe /x%1 /qb
    echo  . Uninstall Complete, Resuming Search..
    goto :EOFAdditional Info: http://tinyurl.com/29cdah
    Hope this helps.

  • Best app to remove duplicates from iTunes 2014

    Hi All,
    I've been trying to research the best application to sort and remove duplicates from my iTunes library. I have over 7000 songs and iTunes built in duplicate finder doesn't look at the track fingerprint, which is useful for those songs which are labelled "Track_1" etc.
    Has anyone reviewed any recent products? I was looking at TuneUp, but after reading so many negative comments, I've decided not to go down that path. I would prefer a program that did most of the work for me, due to the amount of songs. Happy to pay for a good product...
    I do have MusicBrainz Picard, which has done a great job of tagging, but don't remove duplicates.
    Thanks in advance :-)

    Tune up is a great app.  When they moved from version 2 to version 3 is when it went to crap and all heck broke loose.  They shut their doors  but they have since re opened and went back to developing  version 2.  I use that version and I am pretty happy with it as being an overall cleanup utility.  I also use Musicbrainz and a couple of other utilities but in the end if you have an enormous library 20k plus then you are going to have a few slip through.  I would probably go with Tuneup if I were you and a thorough third party duplicate finder.  Dupe Guru's music edition seems to do a pretty good job.

  • Can't delete a file displayed in ListView ("File in use") even after removing it from window.

    I have a ListView displaying a collection of icons. The user can then select different icons (checkboxes) to do things like Copy or Delete.
    Problem is, when I try to delete the actual file from the disk, I get an error telling me the file is "in use" ("vshost.exe", the VS runtime during testing).
    I thought maybe it was because it still appeared in the window and was still in the ImageList, but even after removing it from both locations, I still get the error. My code:
    Dim intCnt As Integer = 0
    Do
    ImageList2.Images.RemoveAt(intIconsChecked(intCnt)) ' Remove from collection.
    lsvCollection.Items.RemoveAt(intIconsChecked(intCnt)) ' Remove from ListView window.
    FileIO.FileSystem.DeleteFile(strIconPath & "\Icon" & Format(intCnt + 1, "00") & ".rsc") ' "+1" b/c Icons start with "01".
    FileIO.FileSystem.DeleteFile(strIconPath & "\Icon" & Format(intCnt + 1, "00") & ".png") ' "In use" Error here.
    ".rsc" deletes just fine, so I know I'm deleting the correct file. Why does VS still think the file is still "in use"?
    Thx

    Mugsy,
    Consider this as food for thought, even if you don't use it.
    If you set it up right then you can control how it works. A reference is a reference and any left behind will cause you grief down the road when you try to delete things.
    As an example, a simple class follows. It does *not* implement IDispose, although it does have a private shared Dispose method in it:
    Public Class MyImages
    Private _bmp As Bitmap
    Private _name As String
    Private _sourceFilePath As String
    Private Sub New(ByVal bmp As Bitmap, _
    ByVal name As String, _
    ByVal filePath As String)
    _bmp = bmp
    _sourceFilePath = filePath.Trim
    _name = name.Trim
    End Sub
    Public ReadOnly Property Bmp As Bitmap
    Get
    Return _bmp
    End Get
    End Property
    Public ReadOnly Property Name As String
    Get
    Return _name
    End Get
    End Property
    Public ReadOnly Property SourceFilePath As String
    Get
    Return _sourceFilePath
    End Get
    End Property
    Public Shared Sub AddNew(ByRef miList As List(Of MyImages), _
    ByVal imageFilePath As String)
    Try
    If miList Is Nothing Then
    Throw New ArgumentNullException("The collection of MyImages cannot be null.")
    ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
    Throw New ArgumentException("The file path of the image cannot be null or empty.")
    ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
    Throw New IO.FileNotFoundException("The file path of the image could not be located.")
    Else
    ' Should do validation here that the file
    ' is actually an image but I'll not do this
    ' here...
    Dim thisBMP As Bitmap = New Bitmap(imageFilePath)
    miList.Add(New MyImages(thisBMP, GetFileNameWithoutExtension(imageFilePath), imageFilePath))
    End If
    Catch ex As Exception
    Throw
    End Try
    End Sub
    Public Shared Sub AddNew(ByRef miList As List(Of MyImages), _
    ByVal imageFilePath As String, _
    ByVal imageName As String)
    Try
    If miList Is Nothing Then
    Throw New ArgumentNullException("The collection of MyImages cannot be null.")
    ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
    Throw New ArgumentException("The file path of the image cannot be null or empty.")
    ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
    Throw New IO.FileNotFoundException("The file path of the image could not be located.")
    ElseIf String.IsNullOrEmpty(imageName) OrElse imageName.Trim = "" Then
    Throw New ArgumentException("The name of this image cannot be null or empty.")
    Else
    ' Should do validation here that the file
    ' is actually an image but I'll not do this
    ' here...
    Dim thisBMP As Bitmap = New Bitmap(imageFilePath)
    miList.Add(New MyImages(thisBMP, imageName, imageFilePath))
    End If
    Catch ex As Exception
    Throw
    End Try
    End Sub
    Public Shared Sub Remove(ByRef miList As List(Of MyImages), _
    ByVal imageFilePath As String, _
    Optional ByVal removeFilePathAlso As Boolean = False)
    Try
    If miList Is Nothing Then
    Throw New ArgumentNullException("The collection of MyImages cannot be null.")
    ElseIf String.IsNullOrEmpty(imageFilePath) OrElse imageFilePath.Trim = "" Then
    Throw New ArgumentException("The file path of the image cannot be null or empty.")
    ElseIf Not My.Computer.FileSystem.FileExists(imageFilePath) Then
    Throw New IO.FileNotFoundException("The file path of the image could not be located.")
    Else
    Dim findInstance As System.Collections.Generic.IEnumerable(Of MyImages) = _
    From mi As MyImages In miList _
    Where mi.SourceFilePath = imageFilePath
    If findInstance.Count <> 1 Then
    Throw New ArgumentException("The instance of MyImages specified by the" & vbCrLf & _
    "image file path is not in the collection.")
    Else
    Dispose(findInstance.First)
    If removeFilePathAlso Then
    My.Computer.FileSystem.DeleteFile(findInstance.First.SourceFilePath)
    End If
    miList.Remove(findInstance.First)
    End If
    End If
    Catch ex As Exception
    Throw
    End Try
    End Sub
    Private Shared Sub Dispose(ByVal instance As MyImages)
    If instance IsNot Nothing AndAlso instance._bmp IsNot Nothing Then
    instance._bmp.Dispose()
    instance._bmp = Nothing
    End If
    End Sub
    End Class
    When you look through that, look specifically at the "Remove" method and in particular, look at the order in which things are done. That's the critical part in this.
    I tested it with a simple form:
    Two buttons, a checkbox, and a picturebox. I also copied a small folder full of image files to my desktop since I'll be deleting a file from it. Following is the code for Form1:
    Option Strict On
    Option Explicit On
    Option Infer Off
    Imports System.IO.Path
    Public Class Form1
    Private miList As New List(Of MyImages)
    Private Sub Form1_Load(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) _
    Handles MyBase.Load
    Dim desktop As String = _
    My.Computer.FileSystem.SpecialDirectories.Desktop
    Dim imgFolder As String = _
    Combine(desktop, "Images")
    PictureBox1.BorderStyle = BorderStyle.FixedSingle
    For Each imgFilePath As String In My.Computer.FileSystem.GetFiles(imgFolder)
    MyImages.AddNew(miList, imgFilePath)
    Next
    btn_RemoveFirstImage.Enabled = False
    CheckBox_RemoveSourcePath.Enabled = False
    End Sub
    Private Sub btn_ShowFirstImage_Click(sender As System.Object, _
    e As System.EventArgs) _
    Handles btn_ShowFirstImage.Click
    Try
    If miList.Count >= 1 Then
    With PictureBox1
    .SizeMode = PictureBoxSizeMode.Zoom
    .Image = miList(0).Bmp
    End With
    btn_RemoveFirstImage.Enabled = True
    CheckBox_RemoveSourcePath.Enabled = True
    End If
    Catch ex As Exception
    MessageBox.Show(String.Format("An exception was thrown:{0}{0}{1}", vbCrLf, ex.Message), _
    "Exception", MessageBoxButtons.OK, MessageBoxIcon.Warning)
    End Try
    End Sub
    Private Sub btn_RemoveFirstImage_Click(sender As System.Object, _
    e As System.EventArgs) _
    Handles btn_RemoveFirstImage.Click
    Try
    If miList.Count >= 1 Then
    MyImages.Remove(miList, miList(0).SourceFilePath, CheckBox_RemoveSourcePath.Checked)
    End If
    PictureBox1.Image = Nothing
    btn_RemoveFirstImage.Enabled = True
    CheckBox_RemoveSourcePath.Enabled = True
    Catch ex As Exception
    MessageBox.Show(String.Format("An exception was thrown:{0}{0}{1}", vbCrLf, ex.Message), _
    "Exception", MessageBoxButtons.OK, MessageBoxIcon.Warning)
    End Try
    End Sub
    End Class
    Running it is straightforward:
    Now when I click to show the first one:
    A different image is shown because that first one no longer exists - either in the collection or in the folder.
    Closing/disposing all references is the key and the order matters.
    Something to consider the next time around. :)
    Still lost in code, just at a little higher level.

  • How to remove faces from url

    Hi All,
    Following is my web.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
        <description>Empty web.xml file for Web Application</description>
        <context-param>
            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
            <param-value>client</param-value>
        </context-param>
        <context-param>
            <param-name>CpxFileName</param-name>
            <param-value>com.gemini.view.DataBindings</param-value>
        </context-param>
        <filter>
            <filter-name>adfBindings</filter-name>
            <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
        </filter>
        <filter>
            <filter-name>adfFaces</filter-name>
            <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
        </filter>
        <filter-mapping>
            <filter-name>adfBindings</filter-name>
            <url-pattern>*.jsp</url-pattern>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfBindings</filter-name>
            <url-pattern>*.jspx</url-pattern>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfFaces</filter-name>
            <url-pattern>*.jsp</url-pattern>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfFaces</filter-name>
            <url-pattern>*.jspx</url-pattern>
        </filter-mapping>
        <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet>
            <servlet-name>resources</servlet-name>
            <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
        </servlet>
        <servlet>
            <servlet-name>geminiservlet</servlet-name>
            <servlet-class>com.gemini.view.managed.geminiservlet</servlet-class>
        </servlet>
        <servlet>
            <servlet-name>gemini</servlet-name>
            <servlet-class>com.gemini.view.managed.gemini</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>/faces/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>resources</servlet-name>
            <url-pattern>/adf/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>geminiservlet</servlet-name>
            <url-pattern>/faces/geminiservlet</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>gemini</servlet-name>
            <url-pattern>/gemini</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>35</session-timeout>
        </session-config>
        <mime-mapping>
            <extension>html</extension>
            <mime-type>text/html</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>txt</extension>
            <mime-type>text/plain</mime-type>
        </mime-mapping>
        <welcome-file-list>
            <welcome-file>/login.jsp</welcome-file>
        </welcome-file-list>
    </web-app>I access the site using http://bri-dev2/Gemini/faces/login.jsp
    I want to remove faces from the URL. like http://bri-dev2/Gemini/login.jsp
    How can I achieve this ?
    I used /* in the Faces Servlet URL Pattern. and when I accessed the page using
    http://bri-dev2/Gemini/login.jsp it gave me FacesContext Exception. I am using FacesContext object in login.jsp and several other jsp pages. So /* did not work.
    Any idea ?
    thanks,
    pp

    Sorry, it took long time. bcoz after that, all the components of server were down. I had to restart the server.
    Well, Following is the log:
    07/08/09 18:12:35 Start process
    07/08/09 18:13:04 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:05 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:05 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:05 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:05 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:06 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:06 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:06 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:06 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:06 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:07 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:07 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:07 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:07 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:07 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:07 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:07 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:07 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:07 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:07 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/09 18:13:14 Error initializing site OracleAS Java Web Site: No application named 'BC4J' found in the server
    Aug 9, 2007 6:13:19 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Short,null)
    Aug 9, 2007 6:13:19 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Short)
    Aug 9, 2007 6:13:19 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Byte,null)
    Aug 9, 2007 6:13:19 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Byte)
    Aug 9, 2007 6:13:19 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Integer,null)
    Aug 9, 2007 6:13:19 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Integer)
    Aug 9, 2007 6:13:19 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Long,null)
    Aug 9, 2007 6:13:19 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Long)
    Aug 9, 2007 6:13:19 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Float,null)
    Aug 9, 2007 6:13:19 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Float)
    Aug 9, 2007 6:13:19 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Double,null)
    Aug 9, 2007 6:13:19 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Double)
    Aug 9, 2007 6:13:19 PM com.sun.faces.config.rules.ValidatorRule end
    WARNING: [ValidatorRule]{faces-config/validator} Merge(javax.faces.LongRange)
    Aug 9, 2007 6:13:19 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.DateTime,null)
    Aug 9, 2007 6:13:19 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Number,null)
    07/08/09 18:13:25 Tutalii: D:\Apps\OraHome_1\j2ee\home\applications\webappjdk14ver80\webappjdk14ver80\WEB-INF\lib\adf-faces-api.jar archive
    07/08/09 18:13:25 Oracle Application Server Containers for J2EE 10g (10.1.2.0.2) initialized
    07/08/10 08:21:29 Error initializing site OracleAS Java Web Site: No application named 'BC4J' found in the server
    07/08/10 08:22:30 Notification ==> Application Deployer for webappjdk14ver80 STARTS [ 2007-08-10T08:22:30.864PDT ]
    07/08/10 08:22:30 Notification ==> Do not undeploy previous deployment
    07/08/10 08:22:30 Notification ==> Copy the archive to D:\Apps\OraHome_1\j2ee\home\applications\webappjdk14ver80.ear
    07/08/10 08:22:30 Copy file C:\WINDOWS\TEMP\dir53654.tmp\webappjdk14ver80.ear to D:\Apps\OraHome_1\j2ee\home\applications\webappjdk14ver80.ear
    07/08/10 08:22:31 Notification ==> Unpack webappjdk14ver80.ear begins...
    07/08/10 08:22:31 Auto-unpacking D:\Apps\OraHome_1\j2ee\home\applications\webappjdk14ver80.ear... done.
    07/08/10 08:22:31 Notification ==> Unpack webappjdk14ver80.ear ends...
    07/08/10 08:22:31 Notification ==> Initialize webappjdk14ver80.ear begins...
    07/08/10 08:22:31 Auto-unpacking D:\Apps\OraHome_1\j2ee\home\applications\webappjdk14ver80\webappjdk14ver80.war... done.
    07/08/10 08:22:32 Copying default deployment descriptor from archive at D:\Apps\OraHome_1\j2ee\home\applications\webappjdk14ver80/META-INF/orion-application.xml
    to deployment directory D:\Apps\OraHome_1\j2ee\home\application-deployments\webappjdk14ver80...
    07/08/10 08:22:32 Notification ==> Initialize webappjdk14ver80.ear ends...
    07/08/10 08:22:32 Notification ==> Initialize webappjdk14ver80 begins...
    07/08/10 08:22:32 Notification ==> Initialize webappjdk14ver80 ends...
    07/08/10 08:22:32 Error initializing data-source 'jdbc/GeminiSQLConnection1CoreDS': DriverManagerDataSource driver 'com.mysql.jdbc.Driver'
    not found
    07/08/10 08:22:32 Notification ==> Application Deployer for webappjdk14ver80 COMPLETES [ 2007-08-10T08:22:32.695PDT ]
    07/08/10 08:22:32 Error initializing site OracleAS Java Web Site: No application named 'BC4J' found in the server
    Aug 10, 2007 8:22:36 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Short,null)
    Aug 10, 2007 8:22:36 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Short)
    Aug 10, 2007 8:22:36 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Byte,null)
    Aug 10, 2007 8:22:36 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Byte)
    Aug 10, 2007 8:22:36 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Integer,null)
    Aug 10, 2007 8:22:36 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Integer)
    Aug 10, 2007 8:22:36 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Long,null)
    Aug 10, 2007 8:22:36 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Long)
    Aug 10, 2007 8:22:36 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Float,null)
    Aug 10, 2007 8:22:36 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Float)
    Aug 10, 2007 8:22:36 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Double,null)
    Aug 10, 2007 8:22:36 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Double)
    Aug 10, 2007 8:22:36 AM com.sun.faces.config.rules.ValidatorRule end
    WARNING: [ValidatorRule]{faces-config/validator} Merge(javax.faces.LongRange)
    Aug 10, 2007 8:22:36 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.DateTime,null)
    Aug 10, 2007 8:22:36 AM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Number,null)
    07/08/10 08:22:39 Tutalii: D:\Apps\OraHome_1\j2ee\home\applications\webappjdk14ver80\webappjdk14ver80\WEB-INF\lib\adf-faces-api.jar archive

  • Would like to use WD MyBook external SOLELY for my iPhoto library and remove it from my hard drive to clear up space. How do I do this?

    I just bought a 3TB My Book that I would like to store my iPhoto library on and remove it from my hard drive completely. I am running Time Machine with another external drive as back up and would like to use Time Machine to also back up my photos that will be on my My Book external. How do I move my iPhoto library to my new external and delete it from my hard drive? The catch is that I only want this new external to be for my iPhoto. I don't want Time Machine to start backing up my entire hard drive, since I already have an external dedicated to back up. I have not attached my external yet because I am afraid it will automatically start backing up my entire hard drive. I am very experienced on a Mac but not very technical so please, no big words and THANKS MUCH in advance!!

    First format the drive to OS X Extended (journaled) with ownership set to be ignored:
    Next drag your iPhoto library from your Pictures folder to the EHD.  When the copying is complete launch iPhoto with the Option key held down and in the window that comes up select the library on the EHD:
    Check the file path under the window to make sure the correct library has been selected.
    Once you've confirmed that the EHD library is working properly and has all of your photos you can delete the library in your Pictures folder.
    OT

  • Removing Java 2 Runtime Environment, SE v1.4.2_04

    I'm having problems removing this from my pc. I tried using the Add/Remove Programs and get an error message. Basically it ells me that "The file 'C:\Documents and Settings\Administrator\Local Settings\Application Data\etc.......... is not a valid installation package for the product Java 2 Runtime Environment SE v1.4.2_04 etc.......... etc........
    However when I do a browse to that location I do see the .msi package it is looking for. I tried to reinstall the package but cannot because it tells me I already have a version installed. How can I remove this? I'm willing to go as far as doing it manually. Thanks.
    Allen

    The security enhancements are documented at http://java.sun.com/j2se/1.5.0/ReleaseNotes.html#150_06
    Changes in 1.5.0_06
    Prior to this update [1.5.0_06], an applet or [Java Web Start] application could specify the version of the JRE on which it would run. This has changed. All applets are executed with the latest JRE version. Unsigned Java Web Start applications that specify a version other than the latest trigger a warning, requiring explicit user permission before the application will run. Signed Java Web start applications are not affected.
    In other words, only Applets and unsigned Java Web Start applications are affected by the security enhancements. Standalone applications can select any JRE they want, even if it is the outdated 1.4.2_13.

Maybe you are looking for

  • Server Error Encountered

    Mail is showing an error on one of our email accounts. The error is "The server error encountered was: unable to process from lines (envelopes), change recognition modes or check for corrupted mail drop." In Mail, we have two different email accounts

  • File path question....

    Yet another really simple question from me, as I've been away from DIAdem for too long. I have a program which, in part of it, needs the user to select the path that they want a set of a few hundred files to be saved in. I've tried using FileNameGet,

  • BPM Suite 11g version?

    Just wondering if anyone had attended the Fusion Middleware 11g launch event and knows what is happening with regards to this product? The event in London today talked about the BPA suite, JDeveloper improvements and a fair bit on the new BPEL engine

  • Shift f5

    hello iff i press the button  for dodeg and burn then tis will apair  the increase in command is currently not available can anyone help me greetings renehoppenbrouwers

  • LightRoom 5 on two computers. will action on one catalog affect the other?

    I have LR 5 installed on my MacBookPro laptop and my iMac.  Will an action taken on one to delete a file affect LR catalog on the other computer?