Code working in Windows, Problems in Linux

I am using the following lines of code in Windows for the required encryption
KeySpec keySpec = new PBEKeySpec(passPhrase.toCharArray(), this.salt, this.iterationCount);
this.key = SecretKeyFactory.getInstance("PBEWithMD5AndDES").generateSecret(keySpec);But this same code to get the key does not work in linux when I am using the same version on Java on both Windows and Linux. Do i need something more to get this thing working.
The Exception I got in Linux says : noSuchAlgorithmFound "PBEWithMD5AndDES"

Hi again,
Yes I am using the same version of Java in both Windows and Linux. The version I am using is "1.5.0_06"
My code is as follows
import javax.crypto.*;
import javax.crypto.spec.*;
import java.io.*;
import java.security.spec.*;
public class EncryptFile
     static public class EncryptionException extends Exception
        private EncryptionException(String text, Exception chain)
            super(text, chain);
     public EncryptFile(String passPhrase) throws EncryptionException
          try
            KeySpec keySpec = new PBEKeySpec(passPhrase.toCharArray(), this.salt, this.iterationCount);
            this.key = SecretKeyFactory.getInstance("PBEWithMD5AndDES").generateSecret(keySpec);
            // Prepare the parameter to the ciphers
            this.paramSpec = new PBEParameterSpec(this.salt, this.iterationCount);
               this.encryptCipher = Cipher.getInstance(this.key.getAlgorithm());
               this.encryptCipher.init(javax.crypto.Cipher.ENCRYPT_MODE, this.key, this.paramSpec);
               this.decryptCipher = Cipher.getInstance(this.key.getAlgorithm());
               this.decryptCipher.init(javax.crypto.Cipher.DECRYPT_MODE, this.key, this.paramSpec);
        }catch(Exception e)
               System.out.println(e);
     synchronized public void encrypt(File sourceFile, File destinationFile) throws EncryptionException
        try
            encryptOrDecryptFile(encryptCipher, sourceFile, destinationFile);
        catch (Exception e)
            throw new EncryptionException("Problem encrypting '" + sourceFile + "' to '" + destinationFile + "'", e);
     synchronized public void decrypt(File sourceFile, File destinationFile) throws EncryptionException
        try
            encryptOrDecryptFile(decryptCipher, sourceFile, destinationFile);
        catch (Exception e)
            throw new EncryptionException("Problem decrypting '" + sourceFile + "' to '" + destinationFile + "'", e);
     private void encryptOrDecryptFile(Cipher cipher, File sourceFile, File destinationFile) throws Exception
        InputStream istrm = new FileInputStream(sourceFile);
        istrm = new javax.crypto.CipherInputStream(istrm, cipher);
        OutputStream ostrm = new FileOutputStream(destinationFile);
        ostrm = new BufferedOutputStream(ostrm);
        byte[] buffer = new byte[65536];
        for (int len = 0; (len = istrm.read(buffer)) >= 0;)
            ostrm.write(buffer, 0, len);
        ostrm.flush();
        ostrm.close();
        istrm.close();
     public static void main(String[] args)
        try
               String line; // hold the input line
               String merchantID;
               String sourceFileAsString = null;
            BufferedReader input = new BufferedReader( new InputStreamReader(System.in));
               System.out.print("Enter the Merchant ID : ");
               merchantID = input.readLine().trim();
               merchantID = "secure" + merchantID + "connection";
               System.out.println("-------------MENU-------------");
               System.out.println("1 ---> Encrypt a file");
               System.out.println("2 ---> Decrypt a file");
               System.out.print("Enter your choice : ");
               line = input.readLine();
               line = line.trim();
               if(line.equals("1")) //Encrypt a file
                    System.out.print("Enter file to be encrypted : ");
                    sourceFileAsString = input.readLine().trim();
                    File sourceFile = new File(sourceFileAsString);
                    File destinationFile = new File(sourceFileAsString + ".encrypted");
                    final EncryptFile cryptoAgent = new EncryptFile(merchantID);
                    cryptoAgent.encrypt(sourceFile, destinationFile);
               else //Decrypt a file
                    System.out.print("Enter file to be decrypted : ");
                    sourceFileAsString = input.readLine().trim();
                    File destinationFile = new File(sourceFileAsString + ".encrypted");
                    //File decryptedSourceFile = new File(sourceFileAsString + ".decrypted");
                    File decryptedSourceFile = new File(sourceFileAsString);
                    final EncryptFile cryptoAgent = new EncryptFile(merchantID);
                    cryptoAgent.decrypt(destinationFile, decryptedSourceFile);
        catch (Exception e)
            e.printStackTrace(System.out);
     // 8-byte Salt
     private final byte[] salt = { (byte)0xA9, (byte)0x9B, (byte)0xC8, (byte)0x32,
                                (byte)0x56, (byte)0x35, (byte)0xE3, (byte)0x03  };
               // Iteration count
     private final int iterationCount = 19;
     private Cipher encryptCipher = null;
    private Cipher decryptCipher = null;
     private AlgorithmParameterSpec paramSpec = null;
     private SecretKey key = null;
}I checked the provider on Windows as printed the provider with PBE algorithm and got the following output
Provider: SunJCE, SunJCE Provider (implements RSA, DES, Triple DES, AES, Blowfish, ARCFOUR, RC2, PBE, Diffie-Hellman, HMAC)
        Mac.HmacPBESHA1 = com.sun.crypto.provider.HmacPKCS12PBESHA1
        AlgorithmParameters.PBEWithMD5AndTripleDES = com.sun.crypto.provider.PBEParameters
        AlgorithmParameters.PBEWithSHA1AndRC2_40 = com.sun.crypto.provider.PBEParameters
        Mac.HmacPBESHA1 SupportedKeyFormats = RAW
        AlgorithmParameters.PBEWithSHA1AndDESede = com.sun.crypto.provider.PBEParameters
        Cipher.PBEWithMD5AndDES = com.sun.crypto.provider.PBEWithMD5AndDESCipher
        Cipher.PBEWithMD5AndTripleDES = com.sun.crypto.provider.PBEWithMD5AndTripleDESCipher
        SecretKeyFactory.PBE = com.sun.crypto.provider.PBEKeyFactory
        SecretKeyFactory.PBEWithSHA1AndRC2_40 = com.sun.crypto.provider.PBEKeyFactory
        Cipher.PBEWithSHA1AndRC2_40 = com.sun.crypto.provider.PKCS12PBECipherCore$PBEWithSHA1AndRC2_40
        SecretKeyFactory.PBEWithSHA1AndDESede = com.sun.crypto.provider.PBEKeyFactory
        Cipher.PBEWithSHA1AndDESede = com.sun.crypto.provider.PKCS12PBECipherCore$PBEWithSHA1AndDESede
        AlgorithmParameters.PBEWithMD5AndDES = com.sun.crypto.provider.PBEParameters
        SecretKeyFactory.PBEWithMD5AndTripleDES = com.sun.crypto.provider.PBEKeyFactory
        SecretKeyFactory.PBEWithMD5AndDES = com.sun.crypto.provider.PBEKeyFactory
        AlgorithmParameters.PBE = com.sun.crypto.provider.PBEParameterswhereas the same thing on Linux gave me the provider info as follows
Provider: GNU-CRYPTO, GNU Crypto JCE Provider
        CIPHER.PBEWITHHMACMD5ANDTRIPLEDES = gnu.crypto.jce.cipher.PBES2$HMacMD5$TripleDES
        CIPHER.PBEWITHHMACSHA1ANDSERPENT = gnu.crypto.jce.cipher.PBES2$HMacSHA1$Serpent
        CIPHER.PBEWITHHMACHAVALANDSERPENT = gnu.crypto.jce.cipher.PBES2$HMacHaval$Serpent
        CIPHER.PBEWITHHMACHAVALANDCAST5 = gnu.crypto.jce.cipher.PBES2$HMacHaval$Cast5
        CIPHER.PBEWITHHMACHAVALANDKHAZAD = gnu.crypto.jce.cipher.PBES2$HMacHaval$Khazad
        CIPHER.PBEWITHHMACMD4ANDTWOFISH = gnu.crypto.jce.cipher.PBES2$HMacMD4$Twofish
        CIPHER.PBEWITHHMACSHA512ANDSQUARE = gnu.crypto.jce.cipher.PBES2$HMacSHA512$Square
        CIPHER.PBEWITHHMACSHA1ANDSQUARE = gnu.crypto.jce.cipher.PBES2$HMacSHA1$Square
        CIPHER.PBEWITHHMACHAVALANDDES = gnu.crypto.jce.cipher.PBES2$HMacHaval$DES
        CIPHER.PBEWITHHMACSHA512ANDKHAZAD = gnu.crypto.jce.cipher.PBES2$HMacSHA512$Khazad
        CIPHER.PBEWITHHMACSHA512ANDCAST5 = gnu.crypto.jce.cipher.PBES2$HMacSHA512$Cast5
        CIPHER.PBEWITHHMACWHIRLPOOLANDBLOWFISH = gnu.crypto.jce.cipher.PBES2$HMacWhirlpool$Blowfish
        CIPHER.PBEWITHHMACHAVALANDANUBIS = gnu.crypto.jce.cipher.PBES2$HMacHaval$Anubis
        CIPHER.PBEWITHHMACMD5ANDSERPENT = gnu.crypto.jce.cipher.PBES2$HMacMD5$Serpent
        CIPHER.PBEWITHHMACWHIRLPOOLANDANUBIS = gnu.crypto.jce.cipher.PBES2$HMacWhirlpool$Anubis
        CIPHER.PBEWITHHMACSHA512ANDDES = gnu.crypto.jce.cipher.PBES2$HMacSHA512$DES
        CIPHER.PBEWITHHMACSHA1ANDKHAZAD = gnu.crypto.jce.cipher.PBES2$HMacSHA1$Khazad
        CIPHER.PBEWITHHMACWHIRLPOOLANDTRIPLEDES = gnu.crypto.jce.cipher.PBES2$HMacWhirlpool$TripleDES
        CIPHER.PBEWITHHMACSHA384ANDTWOFISH = gnu.crypto.jce.cipher.PBES2$HMacSHA384$Twofish
        CIPHER.PBEWITHHMACSHA512ANDANUBIS = gnu.crypto.jce.cipher.PBES2$HMacSHA512$Anubis
        CIPHER.PBEWITHHMACMD2ANDDES = gnu.crypto.jce.cipher.PBES2$HMacMD2$DES
        CIPHER.PBEWITHHMACMD2ANDCAST5 = gnu.crypto.jce.cipher.PBES2$HMacMD2$Cast5
        CIPHER.PBEWITHHMACWHIRLPOOLANDKHAZAD = gnu.crypto.jce.cipher.PBES2$HMacWhirlpool$Khazad
        CIPHER.PBEWITHHMACSHA256ANDAES = gnu.crypto.jce.cipher.PBES2$HMacSHA256$AES
        CIPHER.PBEWITHHMACWHIRLPOOLANDAES = gnu.crypto.jce.cipher.PBES2$HMacWhirlpool$AES
        CIPHER.PBEWITHHMACSHA1ANDANUBIS = gnu.crypto.jce.cipher.PBES2$HMacSHA1$Anubis
        CIPHER.PBEWITHHMACMD2ANDTRIPLEDES = gnu.crypto.jce.cipher.PBES2$HMacMD2$TripleDES
        CIPHER.PBEWITHHMACMD4ANDAES = gnu.crypto.jce.cipher.PBES2$HMacMD4$AES
        CIPHER.PBEWITHHMACMD4ANDBLOWFISH = gnu.crypto.jce.cipher.PBES2$HMacMD4$Blowfish
        CIPHER.PBEWITHHMACTIGERANDDES = gnu.crypto.jce.cipher.PBES2$HMacTiger$DES
        CIPHER.PBEWITHHMACWHIRLPOOLANDSQUARE = gnu.crypto.jce.cipher.PBES2$HMacWhirlpool$Square
        CIPHER.PBEWITHHMACSHA256ANDSQUARE = gnu.crypto.jce.cipher.PBES2$HMacSHA256$Square
        CIPHER.PBEWITHHMACMD5ANDTWOFISH = gnu.crypto.jce.cipher.PBES2$HMacMD5$Twofish
        CIPHER.PBEWITHHMACWHIRLPOOLANDSERPENT = gnu.crypto.jce.cipher.PBES2$HMacWhirlpool$Serpent
        CIPHER.PBEWITHHMACSHA256ANDBLOWFISH = gnu.crypto.jce.cipher.PBES2$HMacSHA256$Blowfish
        CIPHER.PBEWITHHMACSHA256ANDTWOFISH = gnu.crypto.jce.cipher.PBES2$HMacSHA256$Twofish
        CIPHER.PBEWITHHMACMD4ANDCAST5 = gnu.crypto.jce.cipher.PBES2$HMacMD4$Cast5
        CIPHER.PBEWITHHMACTIGERANDSERPENT = gnu.crypto.jce.cipher.PBES2$HMacTiger$Serpent
        CIPHER.PBEWITHHMACSHA256ANDKHAZAD = gnu.crypto.jce.cipher.PBES2$HMacSHA256$Khazad
        CIPHER.PBEWITHHMACMD4ANDSQUARE = gnu.crypto.jce.cipher.PBES2$HMacMD4$Square
        CIPHER.PBEWITHHMACMD5ANDDES = gnu.crypto.jce.cipher.PBES2$HMacMD5$DES
        CIPHER.PBEWITHHMACSHA1ANDTWOFISH = gnu.crypto.jce.cipher.PBES2$HMacSHA1$Twofish
        CIPHER.PBEWITHHMACSHA256ANDTRIPLEDES = gnu.crypto.jce.cipher.PBES2$HMacSHA256$TripleDES
        CIPHER.PBEWITHHMACMD2ANDBLOWFISH = gnu.crypto.jce.cipher.PBES2$HMacMD2$Blowfish
        CIPHER.PBEWITHHMACMD4ANDKHAZAD = gnu.crypto.jce.cipher.PBES2$HMacMD4$Khazad
        CIPHER.PBEWITHHMACSHA256ANDANUBIS = gnu.crypto.jce.cipher.PBES2$HMacSHA256$Anubis
        CIPHER.PBEWITHHMACMD2ANDSQUARE = gnu.crypto.jce.cipher.PBES2$HMacMD2$Square
        CIPHER.PBEWITHHMACWHIRLPOOLANDDES = gnu.crypto.jce.cipher.PBES2$HMacWhirlpool$DES
        CIPHER.PBEWITHHMACSHA384ANDAES = gnu.crypto.jce.cipher.PBES2$HMacSHA384$AES
        CIPHER.PBEWITHHMACSHA256ANDCAST5 = gnu.crypto.jce.cipher.PBES2$HMacSHA256$Cast5
        CIPHER.PBEWITHHMACSHA1ANDTRIPLEDES = gnu.crypto.jce.cipher.PBES2$HMacSHA1$TripleDES
        CIPHER.PBEWITHHMACSHA512ANDTWOFISH = gnu.crypto.jce.cipher.PBES2$HMacSHA512$Twofish
        CIPHER.PBEWITHHMACTIGERANDAES = gnu.crypto.jce.cipher.PBES2$HMacTiger$AES
        CIPHER.PBEWITHHMACTIGERANDTRIPLEDES = gnu.crypto.jce.cipher.PBES2$HMacTiger$TripleDES
        CIPHER.PBEWITHHMACMD2ANDSERPENT = gnu.crypto.jce.cipher.PBES2$HMacMD2$Serpent
        CIPHER.PBEWITHHMACMD4ANDANUBIS = gnu.crypto.jce.cipher.PBES2$HMacMD4$Anubis
        CIPHER.PBEWITHHMACTIGERANDTWOFISH = gnu.crypto.jce.cipher.PBES2$HMacTiger$Twofish
        CIPHER.PBEWITHHMACTIGERANDBLOWFISH = gnu.crypto.jce.cipher.PBES2$HMacTiger$Blowfish
        CIPHER.PBEWITHHMACMD2ANDKHAZAD = gnu.crypto.jce.cipher.PBES2$HMacMD2$Khazad
        CIPHER.PBEWITHHMACHAVALANDTRIPLEDES = gnu.crypto.jce.cipher.PBES2$HMacHaval$TripleDES
        CIPHER.PBEWITHHMACSHA256ANDSERPENT = gnu.crypto.jce.cipher.PBES2$HMacSHA256$Serpent
        CIPHER.PBEWITHHMACWHIRLPOOLANDTWOFISH = gnu.crypto.jce.cipher.PBES2$HMacWhirlpool$Twofish
        CIPHER.PBEWITHHMACTIGERANDANUBIS = gnu.crypto.jce.cipher.PBES2$HMacTiger$Anubis
        CIPHER.PBEWITHHMACMD5ANDAES = gnu.crypto.jce.cipher.PBES2$HMacMD5$AES
        CIPHER.PBEWITHHMACMD2ANDANUBIS = gnu.crypto.jce.cipher.PBES2$HMacMD2$Anubis
        CIPHER.PBEWITHHMACMD5ANDBLOWFISH = gnu.crypto.jce.cipher.PBES2$HMacMD5$Blowfish
        CIPHER.PBEWITHHMACSHA384ANDTRIPLEDES = gnu.crypto.jce.cipher.PBES2$HMacSHA384$TripleDES
        CIPHER.PBEWITHHMACTIGERANDKHAZAD = gnu.crypto.jce.cipher.PBES2$HMacTiger$Khazad
        CIPHER.PBEWITHHMACSHA384ANDSQUARE = gnu.crypto.jce.cipher.PBES2$HMacSHA384$Square
        CIPHER.PBEWITHHMACSHA512ANDTRIPLEDES = gnu.crypto.jce.cipher.PBES2$HMacSHA512$TripleDES
        CIPHER.PBEWITHHMACSHA384ANDBLOWFISH = gnu.crypto.jce.cipher.PBES2$HMacSHA384$Blowfish
        CIPHER.PBEWITHHMACSHA384ANDDES = gnu.crypto.jce.cipher.PBES2$HMacSHA384$DES
        CIPHER.PBEWITHHMACSHA384ANDSERPENT = gnu.crypto.jce.cipher.PBES2$HMacSHA384$Serpent
        CIPHER.PBEWITHHMACSHA384ANDCAST5 = gnu.crypto.jce.cipher.PBES2$HMacSHA384$Cast5
        CIPHER.PBEWITHHMACSHA1ANDAES = gnu.crypto.jce.cipher.PBES2$HMacSHA1$AES
        CIPHER.PBEWITHHMACMD4ANDTRIPLEDES = gnu.crypto.jce.cipher.PBES2$HMacMD4$TripleDES
        CIPHER.PBEWITHHMACMD5ANDCAST5 = gnu.crypto.jce.cipher.PBES2$HMacMD5$Cast5
        CIPHER.PBEWITHHMACTIGERANDSQUARE = gnu.crypto.jce.cipher.PBES2$HMacTiger$Square
        CIPHER.PBEWITHHMACSHA384ANDKHAZAD = gnu.crypto.jce.cipher.PBES2$HMacSHA384$Khazad
        CIPHER.PBEWITHHMACSHA1ANDCAST5 = gnu.crypto.jce.cipher.PBES2$HMacSHA1$Cast5
        CIPHER.PBEWITHHMACMD5ANDSQUARE = gnu.crypto.jce.cipher.PBES2$HMacMD5$Square
        CIPHER.PBEWITHHMACSHA512ANDBLOWFISH = gnu.crypto.jce.cipher.PBES2$HMacSHA512$Blowfish
        CIPHER.PBEWITHHMACSHA1ANDBLOWFISH = gnu.crypto.jce.cipher.PBES2$HMacSHA1$Blowfish
        CIPHER.PBEWITHHMACWHIRLPOOLANDCAST5 = gnu.crypto.jce.cipher.PBES2$HMacWhirlpool$Cast5
        CIPHER.PBEWITHHMACHAVALANDAES = gnu.crypto.jce.cipher.PBES2$HMacHaval$AES
        CIPHER.PBEWITHHMACSHA384ANDANUBIS = gnu.crypto.jce.cipher.PBES2$HMacSHA384$Anubis
        CIPHER.PBEWITHHMACHAVALANDBLOWFISH = gnu.crypto.jce.cipher.PBES2$HMacHaval$Blowfish
        CIPHER.PBEWITHHMACMD5ANDKHAZAD = gnu.crypto.jce.cipher.PBES2$HMacMD5$Khazad
        CIPHER.PBEWITHHMACMD4ANDSERPENT = gnu.crypto.jce.cipher.PBES2$HMacMD4$Serpent
        CIPHER.PBEWITHHMACSHA512ANDAES = gnu.crypto.jce.cipher.PBES2$HMacSHA512$AES
        CIPHER.PBEWITHHMACHAVALANDTWOFISH = gnu.crypto.jce.cipher.PBES2$HMacHaval$Twofish
        CIPHER.PBEWITHHMACTIGERANDCAST5 = gnu.crypto.jce.cipher.PBES2$HMacTiger$Cast5
        CIPHER.PBEWITHHMACSHA512ANDSERPENT = gnu.crypto.jce.cipher.PBES2$HMacSHA512$Serpent
        CIPHER.PBEWITHHMACMD2ANDAES = gnu.crypto.jce.cipher.PBES2$HMacMD2$AES
        CIPHER.PBEWITHHMACMD5ANDANUBIS = gnu.crypto.jce.cipher.PBES2$HMacMD5$Anubis
        CIPHER.PBEWITHHMACSHA256ANDDES = gnu.crypto.jce.cipher.PBES2$HMacSHA256$DES
        CIPHER.PBEWITHHMACSHA1ANDDES = gnu.crypto.jce.cipher.PBES2$HMacSHA1$DES
        CIPHER.PBEWITHHMACHAVALANDSQUARE = gnu.crypto.jce.cipher.PBES2$HMacHaval$Square
        CIPHER.PBEWITHHMACMD2ANDTWOFISH = gnu.crypto.jce.cipher.PBES2$HMacMD2$Twofish
        CIPHER.PBEWITHHMACMD4ANDDES = gnu.crypto.jce.cipher.PBES2$HMacMD4$DESAm i missing out some files to be included in my project to make my code work in Linux ?

Similar Messages

  • Runtime.getRuntime().exec works on windows failed on linux!

    Hi,
    I'm trying to execute a linux command from java 1.4.2 using Runtime.getRuntime().exec(). The linux command produces output and write to a file in my home dir. The command runs interactively in the shell and also run on windows.
    The command is actually a mozilla pk12util. My java code to run this pk12util works on windows, but not on linux (fedora). When I print out the command I'm trying to run in java, I can run it interactively in bash shell.
    Method below is where the problem seems to be:
    public void writeCert() {
    // Declaring variables
    System.out.println("Entering writeCert method");
    String command = null;
    certFile = new File(credFileName);
    // building the command for either Linux or Windows
    if (System.getProperty("os.name").equals("Linux")) {
    command = linuxPathPrefix + File.separator + "pk12util -o "
    + credFileName + " -n \"" + nickName + "\" -d "
    + dbDirectory + " -K " + slotpw + " -w " + slotpw + " -W "
    + pk12pw;
    System.out.println("System type is linux.");
    System.out.println("Command is: " + command);
    if (System.getProperty("os.name").indexOf("Windows") != -1) {
    // command = pk12utilLoc + File.separator + "pk12util -o
    // "+credFileName+" -n "\"+nickname+\"" -d \""+dbDirectory+"\" -K
    // "+pk12pw+" -w "+pk12pw+" -W "+pk12pw;
    command = pk12utilLoc + File.separator + "pk12util.exe -o "
    + credFileName + " -n \"" + nickName + "\" -d "
    + dbDirectory + " -K " + slotpw + " -w " + slotpw + " -W "
    + pk12pw;
    System.out.println("System type is windows.");
    System.out.println("Command is: " + command);
    // If the system is neither Linux or Windows, throw exception
    if (command == null) {
    System.out.println("command equals null");
    try {
    throw new Exception("Can't identify OS");
    } catch (Exception e) {
    System.out.println(e.getMessage());
    e.printStackTrace();
    // Having built the command, running it with Runtime.exec
    File f = new File(credFileName);
    // setting up process, getting readers and writers
    Process extraction = null;
    BufferedOutputStream writeCred = null;
    // executing command - note -o option does not create output
    // file, or write anything to it, for Linux
    try {
    extraction = Runtime.getRuntime().exec(command);
    } catch (IOException e) {
    System.out.println(e.getMessage());
    e.printStackTrace();
    // Dealing with the the output of the command; think -o
    // option in command should just write the credential but dealing with output anyway
    BufferedWriter CredentialOut = null;
    OutputStream line;
    try {
    CredentialOut = new BufferedWriter (
    new OutputStreamWriter(
    new FileOutputStream(credFileName)));
    catch (FileNotFoundException e) {
    System.out.println(e.getMessage());
    e.printStackTrace();
    // writing out the output; currently having problems because I am trying to run
    }

    My error is due to the nickname "-n <nickname" parameter error. I think the problem is having a double quotes around my nickname, but if I take out the double quotes around my nickname "Jana Test's ID" won't work either because there are spaces between the String. Error below:
    Command is: /usr/bin/pk12util -o jtest.p12 -n "Jana Test's Development ID" -d /home/jnguyen/.mozilla/firefox/zdpsq44v.default -K test123 -w test123 -W test123
    Read from standard outputStreamjava.io.PrintStream@19821f
    Read from error stream: "pk12util: find user certs from nickname failed: security library: bad database."
    null
    java.lang.NullPointerException
    at ExtractCert.writeCert(ExtractCert.java:260)
    at ExtractCert.main(ExtractCert.java:302)
    Code is:
    private String nickName = null;
    private void setNickname(String nicknameIn) {
    nickName = nicknameIn;
    // building the command for either Linux or Windows
    if (System.getProperty("os.name").equals("Linux")) {
    command = linuxPathPrefix + File.separator + "pk12util -o " + credFileName + " -n \"" + nickName + "\" -d " + dbDirectory + " -K " + slotpw + " -w " + slotpw + " -W " + pk12pw;
    System.out.println("System type is linux.");
    System.out.println("Command is: " + command);
    extraction = Runtime.getRuntime().exec(command);
    BufferedReader br = new BufferedReader(
    new
    InputStreamReader(extraction.getErrorStream()));
    PrintStream p = new PrintStream(extraction.getOutputStream());
    System.out.println("Read from standard outputStream" + p);

  • Code working on Windows but not in Unix

    Hello,
    I try to test a https connection. My method is to accept all kind of certificat.
    Under Windows this code works well and return true when Itest the https connection but under Unix it returns false.
    Why if I accept all certificat , that does not work?
    Thank for any light.
          * Test the web connection
          * @param keystorePath
          * @return the result TRUE|FALSE
         public boolean testWebConnection(String keystorePath) {
              boolean result = false;
              try {
                   String urlname = "https://" + serverConfig.getLocalHostName() + ":8443/";
                   URL url = new URL(urlname);
                   SSLContext sc = SSLContext.getInstance("SSL");
                   System.setProperty("javax.net.ssl.trustStore", keystorePath);
                   sc.init(null, null, new java.security.SecureRandom());
                   // sc.init(null, trustAllCerts, new java.security.SecureRandom());
                   HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
                   HttpsURLConnection con = (HttpsURLConnection) new URL(urlname).openConnection();
                   con.setHostnameVerifier(DO_NOT_VERIFY);
                   if (!con.getHeaderFields().isEmpty()) {
                        con.disconnect();
                        description = LanguageText.getHTTPSConnectionSuccessMessageLabel();
                        return true;
                   } else {
                        description = LanguageText.getHTTPSConnectionFailMessageLabel();
                        System.setProperty("java.protocol.handler.pkgs", "javax.net.ssl");
                                            url = new URL("http://" + serverConfig.getLocalHostName() + ":8080");
                        URLConnection conn = url.openConnection();
                        if (!conn.getHeaderFields().isEmpty()) {
                             description = description + "\n" + LanguageText.getHTTPConnectionSuccessMessageLabel();
                             result = true;
                        } else{
                             description = description + "\n" + LanguageText.getHTTPConnectionFailMessageLabel();
              } catch (MalformedURLException mue) {
                   Logger.logException("The url is not valid", mue);
              } catch (java.net.ConnectException ce) {
                   description = description + LanguageText.getHTTPNotConnectMessageLabel();
                   Logger.logException("Cannot connect", ce);
              } catch (IOException ie) {
                   Logger.logException("The url is not valid", ie);
              } catch (NoSuchAlgorithmException nsae) {
                   Logger.logException("Problem with the algorithm", nsae);
              } catch (KeyManagementException kme) {
                   Logger.logException("Problem with the key management", kme);
              return result;
          * Method to not verify the hostname
         private static final HostnameVerifier DO_NOT_VERIFY = new HostnameVerifier() {
              public boolean verify(String hostname, SSLSession session) {
                   return true;
         };

    1) Are you absolutely sure that the keystorePath variable contains the correct path to
    your truststore on the unix machine?
    2) Does the truststore contain the certificate of the server you are trying to connect to?
    3) Im guessing that your commented-out line using the trustAllCerts refers to a blank
    or promiscuous TrustManager implementation that does not check your truststore. Does the server
    work on the unix machine using the trustAllCerts? If it does, then that means there is something
    wrong with your truststore (possibly one of the two above mentioned items).

  • Basic RMI program works in windows but not Linux

    Hello,
    I'm trying to learn RMI for a program at work.
    I have the book "Core Java 2 - Volume 2 - Advanced Features". Chapter 5 of this book is about RMI.
    The most basic example program they use works fine in Windows. However, when I try to run this same program under linux it doesn't work.
    For now, I'm not even trying to run a client (in linux)...just the server.
    Here is the server code.
    public class ProductServer
    public static void main(String args[])
    try
    System.out.println
    ("Constructing server implementations...");
    ProductImpl p1
    = new ProductImpl("Blackwell Toaster");
    ProductImpl p2
    = new ProductImpl("ZapXpress Microwave Oven");
    System.out.println
    ("Binding server implementations to registry...");
    Naming.rebind("rmi://172.20.101.1/toaster", p1);
    Naming.rebind("rmi://172.20.101.1/microwave", p2);
    System.out.println
    ("Waiting for invocations from clients...");
    catch(Exception e)
    e.printStackTrace();
    What is very interesting is that this call works
    Naming.rebind("rmi://172.20.101.1/toaster", p1);
    But the very next line
    Naming.rebind("rmi://172.20.101.1/microwave", p2);
    Throws this error ::
    java.rmi.UnmarshalException: Error unmarshaling return header: java.io.EOFException
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:221)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:366)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(RegistryImpl_Stub.java:133)
    at java.rmi.Naming.rebind(Naming.java:172)
    at ProductServer.main(ProductServer.java:35)
    I would very much appreciate the help. Thank You.

    We solved the problem
    Apparently, on the linux machine we had both gcc and the jdk installed
    the regualar compile command hit the jdk
    the rmic command used the gcc version of rmic
    the rmiregistry used the gcc version of rmiregistry
    the regular run command hit the jdk
    using the rmic and rmiregistry in the jdk made everything work fine
    I knew it had to be a stupid answer.

  • PostgreSql JDBC from Red Hat Linux works on Windows not on Linux

    I started using ODI from a Windows XP box in development and Beta, and was successfully connecting to and loading data from several different database platforms including a PostgreSql database. I copied the PostgreSql JDBC driver to the ODI drivers folder, set up the connection information and it worked. When I moved from Windows XP to "Red Hat Enterprise Linux AS release 4 (Nahant Update 6)", I could no longer connect to this PostgreSql database. I put the same driver jar file "postgresql-8.3-603.jdbc3.jar" in the drivers folder and used the same connection string. All of the other drivers (Oracle, MS SQL, etc.) in that driver folder work correctly on this Linux box. I can even tell ODI to connect to the PostgreSql through the agent on the Windows XP machine and it works. That suggests that the URL must be OK, but for some reason it can't connect from the Linux box. I also tried updating to the newest driver"postgresql-8.3-604.jdbc3.jar" with no success.
    Any Ideas on what I may have missed?

    I started using ODI from a Windows XP box in development and Beta, and was successfully connecting to and loading data from several different database >>>>platforms including a PostgreSql database. I copied the PostgreSql JDBC driver to the ODI drivers folder, set up the connection information and it worked.
    When I moved from Windows XP to "Red Hat Enterprise Linux AS release 4 (Nahant Update 6)", I could no longer connect to this PostgreSql database. I >>>>put the same driver jar file "postgresql-8.3-603.jdbc3.jar" in the drivers folder and used the same connection string.
    All of the other drivers (Oracle, MS SQL, etc.) in that driver folder work correctly on this Linux box. I can even tell ODI to connect to the PostgreSql through >>>>the agent on the Windows XP machine and it works.
    That suggests that the URL must be OK, but for some reason it can't connect from the Linux box. I also tried updating to the newest driver
    "postgresql-8.3-604.jdbc3.jar" with no success.
    Any Ideas on what I may have missed?Hi,
    I'm having a problem in connecting to a PostGreSQL database, I was just wondering how you did it? I'm using a Windows Server 2003 R2 Standard Edition.
    Thanks,
    Randy

  • Work space window problem

    Hello,
    My workspace window is stuck half way at the top of my screen. I can only see half of it and can't reach tthe top of it to resize it or bring it back to full screen. I am working on a mac.  I even tried uninstalling and reinstalling my program and it comes back to the same thing. Desparately need help.
    Thanks in advance

    Quit the editor, then relaunch it while holding down command+shift+option. Keep the keys down till you see a window asking if you want to delete the settings file. You do.

  • Draggable Window/JWindow in Linux

    Hi,
    Is there a way to make draggable JWindow in Linux? By that I mean a Window without titlebar, and when the user drag the window it will actually move.
    I have the code already, but somehow it only works on Windows. In Linux its movement is just unpredictable.
    Anyone can solve this?

    I didn't use the getLocationOnScreen() method, instead I start tracking the point when mouse button is pressed.
         private Point loc = new Point(), mouse;
         public void mouseDragged(MouseEvent e){
              //calculate the new location
              loc.x += e.getX() - mouse.x;
              loc.y += e.getY() - mouse.y;
              this.setLocation(loc);
         public void mousePressed(MouseEvent e){
              mouse = e.getPoint();
    Hope this'll help.

  • Runtime.exec work in windows but not in solaris??

    hi all,
    can someone tell me why the following code work in windows platform but doesnt work in solaris?The program tries to ping 127.0.0.1 and the output is correct in windows, but when i try it in solaris, it produces the following exception :
    Internal error: Unexpected Java exception thrown ( unknown exception, no description ) , stack:java.lang.NoClassDefFoundError: StreamGobbler
    at java.lang.Class.getDeclaredConstructors()(Native Method) ....
    The code is as follow:
    import java.util.*;
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.io.*;
    class StreamGobbler extends Thread
         InputStream is=null;
         String type=null;
         PrintWriter out=null;
         StreamGobbler(InputStream is,String type,PrintWriter out)
         this.is=is;
         this.type=type;
         this.out=out;
         public void run()
              try
              InputStreamReader isr=new InputStreamReader(is);
              BufferedReader br=new BufferedReader(isr);
              System.out.println("finishing inputstreamReader and BufferedReader");
              String line=null;
              while (     (line=br.readLine())!=null )
                   {     out.println(type+"> "+line);
                        out.println("<br>");          
              catch (IOException ioe)
              {     ioe.printStackTrace();
    public class ping extends HttpServlet
         public void init(ServletConfig config) throws ServletException
         {     super.init();
         public void service(HttpServletRequest req,HttpServletResponse res) throws ServletException, IOException
              res.setContentType("text/html");
              PrintWriter out=res.getWriter();
         try     {
              Runtime rt=Runtime.getRuntime();
              System.out.println("pinging 127.0.0.1");
              String[] cmd={"ping","127.0.0.1"};
              Process proc=rt.exec(cmd);
              System.out.println("finishing process proc=rt.exec(cmd)");
              StreamGobbler errorGobbler = new StreamGobbler(proc.getErrorStream(),"ERROR",out);
              StreamGobbler outputGobbler= new StreamGobbler(proc.getInputStream(),"OUTPUT",out);
              errorGobbler.start();
              outputGobbler.start();
              int exitVal=proc.waitFor();
              out.println("Process exitValue: "+exitVal);
              out.close();
         catch (Throwable t)
                   t.printStackTrace();

    Did you copy all the class files to your solaris machine ? SOunds like you didn't copy all your files correctly.

  • JMF code working under linux but not windows XP

    Hello everyone,
    I'm currently working on a nice cross-platform project involving sound producing. I decided to take a look at JMF and test it a bit to know if its features can suit me. I tried to make it works under windows, using a very simple sample of code. The system seems to play the sound as some console output detects the start and the end, but all i hear is a very short noise ( 1/2second ) like a "CLIK" and nothing else. I tested the code under linux, using the same computer and it works just fine, playing the same wave nicely and entirely.
    some info:
    -i used the cross platform JMF, no performance pack ( i tried it , but still no result )
    -the code just opens a file dialog and plays the selected file
    -the selected file was always a very simple .wav
    -i did not use system classpath variables because i don't like it, i rather use local classpath ( which works fine too, no doubt about it )
    -i tested this little soft on 2 other computer using windows XP, and still got the same result.
    Please, have you got an idea about what's going on ?
    Thanks a lot for any answer!
    Maxime - Paris . France
    Code Sample:
    import java.io.File;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import javax.media.*;
    import javax.swing.JDialog;
    import javax.swing.JFileChooser;
    import javax.swing.JOptionPane;
    public class JMFSound extends Object implements ControllerListener {
         File soundFile;
         JDialog playingDialog;
         public static void main (String[] args) {
              JFileChooser chooser = new JFileChooser();
              chooser.showOpenDialog(null);
              File f = chooser.getSelectedFile();
              try {
                   JMFSound s = new JMFSound (f);
              } catch (Exception e) {
                   e.printStackTrace();
         public JMFSound (File f) throws NoPlayerException, CannotRealizeException,     MalformedURLException, IOException {
              soundFile = f;
              // prepare a dialog to display while playing
              JOptionPane pane = new JOptionPane ("Playing " + f.getName(), JOptionPane.PLAIN_MESSAGE);
              playingDialog = pane.createDialog (null, "JMF Sound");
    playingDialog.pack();
              // get a player
              MediaLocator mediaLocator = new MediaLocator(soundFile.toURL());
              Player player =     Manager.createRealizedPlayer (mediaLocator);
    player.addControllerListener (this);
    player.prefetch();
    player.start();
    playingDialog.setVisible(true);
         // ControllerListener implementation
         public void controllerUpdate (ControllerEvent e) {
    System.out.println (e.getClass().getName());
         if (e instanceof EndOfMediaEvent) {
                   playingDialog.setVisible(false);
                   System.exit (0);
    Message was edited by:
    Monsieur_Max

    Hello everyone,
    I'm currently working on a nice cross-platform project involving sound producing. I decided to take a look at JMF and test it a bit to know if its features can suit me. I tried to make it works under windows, using a very simple sample of code. The system seems to play the sound as some console output detects the start and the end, but all i hear is a very short noise ( 1/2second ) like a "CLIK" and nothing else. I tested the code under linux, using the same computer and it works just fine, playing the same wave nicely and entirely.
    some info:
    -i used the cross platform JMF, no performance pack ( i tried it , but still no result )
    -the code just opens a file dialog and plays the selected file
    -the selected file was always a very simple .wav
    -i did not use system classpath variables because i don't like it, i rather use local classpath ( which works fine too, no doubt about it )
    -i tested this little soft on 2 other computer using windows XP, and still got the same result.
    Please, have you got an idea about what's going on ?
    Thanks a lot for any answer!
    Maxime - Paris . France
    Code Sample:
    import java.io.File;
    import java.io.IOException;
    import java.net.MalformedURLException;
    import javax.media.*;
    import javax.swing.JDialog;
    import javax.swing.JFileChooser;
    import javax.swing.JOptionPane;
    public class JMFSound extends Object implements ControllerListener {
         File soundFile;
         JDialog playingDialog;
         public static void main (String[] args) {
              JFileChooser chooser = new JFileChooser();
              chooser.showOpenDialog(null);
              File f = chooser.getSelectedFile();
              try {
                   JMFSound s = new JMFSound (f);
              } catch (Exception e) {
                   e.printStackTrace();
         public JMFSound (File f) throws NoPlayerException, CannotRealizeException,     MalformedURLException, IOException {
              soundFile = f;
              // prepare a dialog to display while playing
              JOptionPane pane = new JOptionPane ("Playing " + f.getName(), JOptionPane.PLAIN_MESSAGE);
              playingDialog = pane.createDialog (null, "JMF Sound");
    playingDialog.pack();
              // get a player
              MediaLocator mediaLocator = new MediaLocator(soundFile.toURL());
              Player player =     Manager.createRealizedPlayer (mediaLocator);
    player.addControllerListener (this);
    player.prefetch();
    player.start();
    playingDialog.setVisible(true);
         // ControllerListener implementation
         public void controllerUpdate (ControllerEvent e) {
    System.out.println (e.getClass().getName());
         if (e instanceof EndOfMediaEvent) {
                   playingDialog.setVisible(false);
                   System.exit (0);
    Message was edited by:
    Monsieur_Max

  • URL.openStream() works in Windows but not in Linux

    I am having a problem with this line:
    BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
    in the code sample further below.
    A simple program using this line works when compiled in my Windows XP:
    java version "1.6.0_03"
    Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
    Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
    but not when compiled on my RedHat FC 4 server:
    java version "1.4.2"
    gij (GNU libgcj) version 4.0.2 20051125 (Red Hat 4.0.2-8)
    The program (making using of a previous froum example and pared down to minimize tangent topics):
    The code works for all 3 URLs in Windows. In Linux it only works for the 1st one (bbc.co site)
    Error is listed below the code:
    import java.net.*;
    import java.io.*;
    public class BBC {
    public static void main(String[] args) throws Exception
    //    URL url = new URL("http://news.bbc.co.uk/sport1/hi/football/eng_prem/6205747.stm");
    //    URL url = new URL("http://www.weatherunderground.com/global/stations/71265.html");
        URL url = new URL("http://www.weatherunderground.com");
        BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
        int nLineCnt = 0;
        String inputLine;
        while ((inputLine = in.readLine()) != null)
            nLineCnt++;
        System.out.println("nLineCnt=" + nLineCnt);
    //--------------------------------------------------------------------------------------------------------------------------------------------Exception in thread "main" java.lang.StringIndexOutOfBoundsException
    at java.lang.String.substring(int, int) (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.net.protocol.http.Request.readResponse(gnu.java.net.LineInputStream) (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.net.protocol.http.Request.dispatch() (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.net.protocol.http.HTTPURLConnection.connect() (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.net.protocol.http.HTTPURLConnection.getInputStream() (/usr/lib/libgcj.so.6.0.0)
    at java.net.URL.openStream() (/usr/lib/libgcj.so.6.0.0)
    at BBC.main(java.lang.String[]) (Unknown Source)
    at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
    at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)
    Can anyone please suggest what I can do to be able to process the weatherunderground URL?
    Claude

    To me it would suggest a bug in the VM that you are using.
    Solutions
    1. Use a different VM
    2. Write your own code to process the http code. Depending on licensing for the VM in use and the VM itself. you might be
    able to find the bug in that code, fix it yourself, and then use your fix (start up command line options for VM.) Otherwise
    you have to duplicate the functionality. You might look to jakarta commons, there might be code there that does that.

  • Works on Windows but timeout on linux

    I have a problem with the code below. It perfectly works under Windows, but I am getting a timeout under Linux. I am not sure why. Any ideas?
    One more thing: Under Liunx It fails when I am testing it using port 1935. However, if I test it with port 110, it works. On Windows it works with both ports (110 & 1935).
    Thanks you!
    Gustavo
                try {
                    theSocket = new Socket(Address,Port);
                    theSocket.setSoTimeout(Timeout);
                  try {
                        BufferedReader inFromServer = new BufferedReader(
                                new InputStreamReader(theSocket.getInputStream()));
                        PrintWriter outToServer = new PrintWriter(new BufferedWriter(
                                new OutputStreamWriter(theSocket.getOutputStream())), true);
                        outToServer.println((char)13);
                        messageReceived = inFromServer.readLine();
                        TmpPage = messageReceived;
                    catch(IOException e) {
                        if (status == 1){
                            ErrorDescription = ErrorDescription+"ERRTEL01 Error in TELNETMonitor Thread: "+e.getMessage();
                        }else{
                            ErrorDescription = "ERRTEL01 Error in TELNETMonitor Thread: "+e.getMessage();
                        status = 1;
                    finally {
                        theSocket.close();
                catch(UnknownHostException e) {
                    if (status == 1){
                        ErrorDescription = ErrorDescription+"ERRTEL03 Error in TELNETMonitor Thread (INVALID HOST): "+e.getMessage();
                    }else{
                        ErrorDescription = "ERRTEL03 Error in TELNETMonitor Thread (INVALID HOST): "+e.getMessage();
                    status = 1;
                catch(ConnectException e) {
                    if (status == 1){
                        ErrorDescription = ErrorDescription+"ERRTEL04 Error in TELNETMonitor Thread (THE HOST DOESN'T RUN A SERVER ON THE SPECIFIED PORT): "+e.getMessage();
                    }else{
                        ErrorDescription = "ERRTEL04 Error in TELNETMonitor Thread (THE HOST DOESN'T RUN A SERVER ON THE SPECIFIED PORT): "+e.getMessage();
                    status = 1;
                catch(IOException e) {
                    if (status == 1){
                        ErrorDescription = ErrorDescription+"ERRTEL01 Error in TELNETMonitor Thread: "+e.getMessage();
                    }else{
                        ErrorDescription = "ERRTEL01 Error in TELNETMonitor Thread: "+e.getMessage();
                    status = 1;
                }

    GustavoN wrote:
    ...Under Liunx It fails..how?
    >
    Thanks you!
    Gustavo
    [ Don't use PrintWriter or PrintStream|http://forums.sun.com/thread.jspa?messageID=10642137#10642137]
    outToServer.println((char)13);You should flush() the outputstream after writing, before you do a subsequent read on the socket's inputstream.
    catch(IOException e) {
    if (status == 1){
    ErrorDescription = ErrorDescription+"ERRTEL01 Error in TELNETMonitor Thread: "+e.getMessage();
    }else{
    ErrorDescription = "ERRTEL01 Error in TELNETMonitor Thread: "+e.getMessage();
    status = 1;
    finally {
    theSocket.close();
    catch(UnknownHostException e) {
    if (status == 1){
    ErrorDescription = ErrorDescription+"ERRTEL03 Error in TELNETMonitor Thread (INVALID HOST): "+e.getMessage();
    }else{
    ErrorDescription = "ERRTEL03 Error in TELNETMonitor Thread (INVALID HOST): "+e.getMessage();
    status = 1;
    catch(ConnectException e) {
    if (status == 1){
    ErrorDescription = ErrorDescription+"ERRTEL04 Error in TELNETMonitor Thread (THE HOST DOESN'T RUN A SERVER ON THE SPECIFIED PORT): "+e.getMessage();
    }else{
    ErrorDescription = "ERRTEL04 Error in TELNETMonitor Thread (THE HOST DOESN'T RUN A SERVER ON THE SPECIFIED PORT): "+e.getMessage();
    status = 1;
    catch(IOException e) {
    if (status == 1){
    ErrorDescription = ErrorDescription+"ERRTEL01 Error in TELNETMonitor Thread: "+e.getMessage();
    }else{
    ErrorDescription = "ERRTEL01 Error in TELNETMonitor Thread: "+e.getMessage();
    status = 1;
    C'mon, Gustavo, you can have cleaner exception handling than that!
    Edited by: ghstark on May 14, 2009 4:40 PM

  • "iTunes has stopped working.  A problem caused the program to stop working correctly.   Windows will close the program and notify you if a solution is available."

    Whenever I connect to the iTunes store i receive an error message "iTunes has stopped working.  A problem caused the program to stop working correctly.   Windows will close the program and notify you if a solution is available."    This causes iTunes to close.  I am using iTunes version 10.5.0.142 on a Windows Vista (64) PC.  I have reinstalled iTunes selecting the "repair" option and also uninstalled and reinstalled iTunes.  Any help will be deeply appreciated.  Thank you.  Below is the result of the diagnositc.
    Microsoft Windows 7 x64 Home Premium Edition Service Pack 1 (Build 7601)
    HP-Pavilion BN474AV-ABA HPE-150t
    iTunes 10.5.0.142
    QuickTime not available
    FairPlay 1.13.35
    Apple Application Support 2.1.5
    iPod Updater Library 10.0d2
    CD Driver 2.2.0.1
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 4.0.0.96
    Apple Mobile Device Driver 1.57.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.3.494
    Gracenote MusicID 1.9.3.106
    Gracenote Submit 1.9.3.136
    Gracenote DSP 1.9.3.44
    iTunes Serial Number 002FAD94098CD0E0
    Current user is not an administrator.
    The current local date and time is 2011-11-13 22:08:54.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is not supported.
    Core Media is supported.
    Video Display Information
    NVIDIA, NVIDIA GeForce GT 220
    **** External Plug-ins Information ****
    No external plug-ins installed.
    Genius ID: 2cb3fff3fa771d265b0f8ffdcca13b55
    **** Network Connectivity Tests ****
    Network Adapter Information
    Adapter Name: {F4A2029C-16AA-4BDF-8DB7-9EC2A75B5991}
    Description: Realtek PCIe GBE Family Controller
    IP Address: 192.168.1.6
    Subnet Mask: 255.255.255.0
    Default Gateway: 192.168.1.1
    DHCP Enabled: Yes
    DHCP Server: 192.168.1.1
    Lease Obtained: Sun Nov 13 21:09:29 2011
    Lease Expires: Mon Nov 14 21:09:29 2011
    DNS Servers: 192.168.1.1
    Active Connection: LAN Connection
    Connected: Yes
    Online: Yes
    Using Modem: No
    Using LAN: Yes
    Using Proxy: No
    SSL 3.0 Support: Enabled
    TLS 1.0 Support: Disabled
    Firewall Information
    Windows Firewall is on.
    iTunes is NOT enabled in Windows Firewall.
    Connection attempt to Apple web site was successful.
    Connection attempt to browsing iTunes Store was successful.
    Connection attempt to purchasing from iTunes Store was successful.
    Connection attempt to iPhone activation server was successful.
    Connection attempt to firmware update server was successful.
    Connection attempt to Gracenote server was successful.
    Last successful iTunes Store access was 2011-11-13 22:02:08.
    **** CD/DVD Drive Tests ****
    LowerFilters: PxHlpa64 (2.0.0.0),
    UpperFilters: GEARAspiWDM (2.2.0.1),
    E: hp DVD A DH16ABLH, Rev 3HD9
    Data or MP3 CD in drive.
    Found 1 songs on CD, playing time 15:40 on CDROM media.
    Track 1, start time 00:02:00
    Get drive speed succeeded.
    The drive CDR speeds are: 8 16 24 32.
    The drive CDRW speeds are: 8.
    The drive DVDR speeds are: 8.
    The drive DVDRW speeds are: 8.
    The last failed audio CD burn had error code 4251(0x0000109b). It happened on drive E: hp CDDVDW TS-H653R on CDR media at speed 24X.
    **** Device Connectivity Tests ****
    iPodService 10.5.0.142 (x64) is currently running.
    iTunesHelper 10.5.0.142 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    Universal Serial Bus Controllers:
    Intel(R) 5 Series/3400 Series Chipset Family USB Enhanced Host Controller - 3B34. Device is working properly.
    Intel(R) 5 Series/3400 Series Chipset Family USB Enhanced Host Controller - 3B3C. Device is working properly.
    FireWire (IEEE 1394) Host Controllers:
    VIA 1394 OHCI Compliant Host Controller. Device is working properly.
    Connected Device Information:
    Bruce's iTouch, iPod touch (2nd generation) running firmware version 4.2.1
    Serial Number: 1C9053CC201
    **** Device Sync Tests ****
    Sync tests completed successfully.

    Same exact thing with me.  And no help from apple.  Just dropped nearly $600 and cannot get a decent working setup.
    Apple's only suggestion was to uninstall iTunes and Quicktime, and re-install... of course (the I.T. Crowd tactic).
    The crash happens only on iTunes store access.

  • HP CM1312MPF drivers don't work via Windows 7 but works fine via Linux dual booting

    HP CM1312MPF drivers don't seem work using Windows 7 (64-bit) .  Original HP drivers CD now lost. Current drivers were downloaded from HP's website. (This webpage has a number of drivers and most 64-bit ones have been tried. Prior to my Windows re-install, the machine printed and scanned satifactoralily in Windows 7. One day this O/S refused to boot and had to be fully re-installed. The reinstall has been tried on both a SSD and on a HDD. (I have 3 x HDDs and 1 x SSD in this Desktop system. and I dual boot Windows7 and Linux Mint with data on its own HDD.) No attempt has yet been made to scan after this Windows re-install, as I have a separate photo scanner.  I mainly wish on the to print on CM1312MPF, however it did scan perfectly well prior to the reinstall of Windows. THE CM1312MPF PRINTS FINE VIA THE SAME USB OUTPUT LEAD (AND POWERED HUB) AS VIA LINUX MINT 17 (PETRA)  when I dual boot and without any PHYSICAL CHANGES between changing O/Ss. It must be a driver problem, surely, mustn't it? I look forward to your help. John_of_Penrith

    You can also disable that windows wireless "Critter" from device manager and it shouldn't ever again show-up in your adapter list. Thanks for the lesson. I too have wondered about the windows virtual adapter and what it's for. I never had it show-up in my adapters though in the network and sharing center. That was strange that it happened to you. I also occasionally just go to device manager and reload the adapter that came with laptop-not the windows one. It
    seems to keep it running fairly well since there have been no new drivers for it. I think it was an experiment or something called the DW1501 Wireless half-mini n that came with my Dell Inspiron N7010 laptop. I don't particularly like it as compared to the other wireless adapters in my home, this thing is slow on downloads, but I don't want to bother to get a new adapter.
    Anyhow thanks for the interesting lesson.
    LindaSView

  • Fan not working. Hardware problem, or is it just quiet, or is it Linux and DSDT? How can I know?

    Hi.
    The fan in my Lenovo 3000 V100 doesn't seem to work.
    - On Linux (Ubuntu 10.04) the laptop overheats sometimes to point of shutting down.  
    - I don't use Windows, but I tried a bootable Windows CD and it seems the fan isn't working.  I can't hear it and it doesn't seem that any air is coming out of the fan.  I tried with Thinkpad Fan Controller 0.20 and manually setting the fan speed to the maximum.  I noticed no difference.
    - When starting the computer I can hear the hard drive the first few seconds, but I don't think I hear the fan so I don't think it's starting at all.  Os is it so quiet?
    How can I be sure it is a hardware problem?
    I ask this because a many laptops have problems in Linux with DSDT (a file from the BIOS) than only work on Windows.  And I have had this problem in the past.  (I tried compiling the Linux kernel with a DSDT I fixed myself and posted in this forum 2 years ago, but this time it didn't work).

    are you able to monitor fan RPM ?
    if not how comes this is not availble to read that info?
    may this help :
    http://forums.lenovo.com/t5/Linux-Discussion/reading-fan-status-under-linux/td-p/115368/page/2
    http://rzr.online.fr/q/lenovo# g470 s103t (Please Contact me if your s10-3T is booting win7 or support bluetooth, 3g)
    Lenovo S10-3t | Model Name : 0651 | Mfg Date: 2010/06/08
    Lenovo G470 | Model Name : 20078 | M fg Date: 11/03/23 | BIOS: 40CN23WW(V2.09) 06/20/2011 | CPU: i5-2410M | Linux version 3.3.4lenovog470+ (root@lap) (gcc version 4.6.3 (Debian 4.6.3-4) ) #8 SMP Tue May 1 10:23:48 CEST 2012
    OS:GNU/Linux/Debian

  • Problem with iTunes. I have Windows 8 on a new laptop. Installed latest version of iTunes. Can play music in My Library but when I click on Itunes Store I get the message "iTunes has stopped working. A problem caused the program to stop working correctly.

    I have a new laptop with Windows 8 as operating system. Installed latest version of iTunes ontop computer. I can play music in My Library but when I click on iTunes, I get the message " iTunes has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify if a solution is available."
    Anyone know what is the cause and if there is a resolution? Have tried to re-installing iTunes and have also tried restoring laptop to an earlier date.

    iPad not appearing in iTunes
    http://www.apple.com/support/ipad/assistant/itunes/
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/TS1591
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    iTunes for Windows: Device Sync Tests
    http://support.apple.com/kb/HT4235
    IOS: Syncing with iTunes
    http://support.apple.com/kb/HT1386
    Apple - Support - iPad - Syncing
    http://www.apple.com/support/ipad/syncing/
    iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi Syncing
    http://support.apple.com/kb/ts4062
    The Complete Guide to Using the iTunes Store
    http://www.ilounge.com/index.php/articles/comments/the-complete-guide-to-using-t he-itunes-store/
    iTunes Store: Associating a device or computer to your Apple ID
    http://support.apple.com/kb/ht4627
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    Best Fixes for ‘Cannot Connect to iTunes Store’ Errors
    http://ipadinsight.com/ipad-tips-tricks/best-fixes-for-cannot-connect-to-itunes- store-errors/
    Try this first - Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    This works for some users. Not sure why.
    Go to Settings>General>Date and Time> Set Automatically>Off. Set the date ahead by about a year.Then see if you can connect to the store.
     Cheers, Tom

Maybe you are looking for