Launching another prog from java prog

Hi!
I'm striving to format floppy disk from a java prog.
format, like many other commands/applications, sends some messages back to the terminal and waits for user input. I need to handle communication with such programs.
So far it doesn't go smooth - please look at the code below, there must be number of bugs:private static void execute(String command) // command="cmd.exe /c format A:"; (Win2k)
     try {
     String outp_line;
        Process process = Runtime.getRuntime().exec(command);
     // put process input in BufferedReader
     BufferedReader normalBR =
          new BufferedReader(new InputStreamReader(process.getInputStream()));
     // "format A:" on win2k sends to console 2 lines:
     // 1. Insert disk in drive A:
     // 2. and press ENTER
     // but I see only one(first) line. Why?
     while ((outp_line = normalBR.readLine()) != null)
                    System.out.println(outp_line);
     // assign an output stream to the process
     BufferedOutputStream bos = new BufferedOutputStream(process.getOutputStream());
     // assign input from user to BufferedInputStream
     byte[] bytes = new byte[12];
     BufferedInputStream bis = new BufferedInputStream(System.in, 12);
     // read user's input
     bis.read(bytes);
     // write user's input to the process
     bos.write(bytes);
     }catch(IOException ioex){ioex.printStackTrace();}

Don't know about the first thing, but I saw this in the API:
"The Runtime.exec methods may not work well for special processes on certain native platforms, such as native windowing processes, daemon processes, Win16/DOS processes on Microsoft Windows, or shell scripts. The created subprocess does not have its own terminal or console. All its standard io (i.e. stdin, stdout, stderr) operations will be redirected to the parent process through three streams (Process.getOutputStream(), Process.getInputStream(), Process.getErrorStream()). The parent process uses these streams to feed input to and get output from the subprocess. Because some native platforms only provide limited buffer size for standard input and output streams, failure to promptly write the input stream or read the output stream of the subprocess may cause the subprocess to block, and even deadlock."
I'd suggest googling for a workaround.
Re: the second item, I think another thread makes sense. Perhaps a thread that reads all the error output and stores it in a buffer, which could then be queried.

Similar Messages

  • How to launch an app from Java in Mac OSX?

    I would like to launch another application from my Java code which will run on OS X. Doesn anyone know how to do this? I think it involves the "Runtime.getRuntime.exec()" method, but I'm not sure how to tell it which application to launch.
    Thanks

    I dont know about OSX but i can give you a generalized
    solution. In all OS's there will be a way to get to
    command prompt. It is not really true: MacOS is one noticeable exception! Version 9, like every previous one, was completely extraneous to the notion of "command prompt", because the Macintosh, since its origin to nowadays, has been a "fanatically" User-Centric system: everything is iconic. A side effect of this approach is that MacOS was a pretty hard platform for low-level developers...
    In MacOSX things have dramatically changed: this OS is a powerful Unix-like one, with the beautiful dress that only a Mac can wear: and finally, all you Mac users, here it is: the shell!
    Of course, in MacOSX (and in MacOS "classic" too) there are paths and executable files.
    MacOS1-9 file-system was a very peculiar one: resource fork and data fork for every file, ":" as path components separator (but what "common" user has ever seen a Macintosh path?) and so on.
    MacOSX will use an Unix-like filesystem, I guess (I'm not a Mac user, I like every OS for its beauties - and therefore dislike Microsoft products even if often they give me bread).
    But the key question is: how do I tell the runtime which file it has to execute?
    Fortunately, every modern SO I know adopts a hyerarchical organization of its files. So, indipendently of what is considered the "root" ("C:\", "/" or whatever else), you can "trace" a relative path from your current path (if you use an Unix or URL idiom, "./") and the file you want to reach.
    So, if your java app ("JavaApp.class") is placed in a folder called "MyJavaApp", nested in another folder called "Programs" that you see when you click on the "MacHD" icon, and you can manually launch the Mac app you're interested in clicking on an icon called "MyMacApp Program", placed in a folder called "MyMacApp", nested in another folder called "Programs" that you see when you click on the "MacHD" icon (it's the same folder we said before :-) ), using Unix or URL sintax we have that:
    your java application is at: [...]/MacHD/Programs/MyJavaApp/JavaApp.class
    the Mac application is at:
    [...]/MacHD/Programs/MyMacApp/MyMacApp Program
    The relative path from the former to the latter is, therefore:
    ../MyMacApp/MyMacApp
    where two dots ("..") are the symbol for "parent folder".
    If the situation is similar to above, the code to launch MyMacApp should be something like this:
    import java.io.File;
    File currentDir=new File("");
    //supposing that double dot (..) is the symbol for "parent folder"
    Runtime.getRuntime(
         new File(currentDir,".."
         +File.separator
         +"MyMacApp"
         +File.separator
         +"MyMacApp Program"
         ).getAbsolutePath()
    in a more portable fashion - if you're not sure ".." works
    (? who cares? we're launching a native app :-)) )
    Runtime.getRuntime(
         new File(currentDir.getParent(),
         "MyMacApp"
         +File.separator
         +"MyMacApp Program"
         ).getAbsolutePath()
    );Hope it works... good work!

  • Cannt execute stored proc of one schema in another schema from java app.

    I am posting my problem in this forum as i i though it could be server-independent.
    I am working on apache tomcat and spring framework with Oracle db (schema/user A)
    We access oracle db from our java application by setting jndi and works fine.We have sqlstatements, stored procs and functions all run fine.
    Now we create a role (DBROLE) with all permissions to that original db schema/user(A) . We created another empty schema B and assigned that role(DBROLE) to that user B.
    (We grant all kind of permissions on tables/packages of schema A to user role DBROLE and also created synonyms)
    Intentions are: to access the schema A though schema B from application and avoiding direct access.
    In our spring application, we replaced database-settings with schema B.
    Things work fine: When its plain SQL statement is run from Java code but Stored proc wont run and we get
    'Wrong num of arguments/data types' error.
    Also all stored procs are in packages.To execute stored proc in java code, we use SimpleJdbcCall.
    I also checked run stored proc from schema B and its works. Only from web app, it doesnt work.
    Please suggest,what should be done to make this working or if there is other alternative.
    Thanks

    Instead of importing a scema in another schema specifiy the schemas in the external-schemaLocation property.
    SAXParser saxParser = new SAXParser();
    saxParser.setProperty("http://apache.org/xml/properties/schema/external-schemaLocation", "xmlschema1.xsd, xmlschema2.xsd");

  • How to run another concurrent from Java Concurrent Program?

    Hi,
    I have one Java Concurrent Program in ebs R12.
    I need to run another Java Concurrent Program when first finished.
    I can not find a way to start another request from JCP.
    Thanks,
    ms

    Hi ,
    this is an example code to check the OS before running the command :
    try{
    int ch;
    Process proc ;
    Runtime r=Runtime.getRuntime();
    StringBuffer sbuf = new StringBuffer();
    String dir = new String();
    String osname = System.getProperty("os.name");
    if(osname.equals("Windows NT") )
    proc = r.exec("cmd /c dir");
    if(osname.startsWith("Linux") )
    proc = r.exec("df -k");
    InputStream is = proc.getInputStream();
    while((ch=is.read() ) != -1)
    sbuf.append((char)ch);
    is.close();
    dir = sbuf.toString();
    System.out.println(dir );
    }catch(Exception e){ System.out.println(e.getMessage());}
    bye
    Taha

  • How to execute another application from java ?

    I want to execute another application ( not java ) from my java application. Is it possible ? How can we do it ? Please guide me...
    thanx

    Hi littlestuart,
    Yes it's possible.
    Your question is frequently asked, please search the forum or google for an answer.
    /Kaj

  • Execute another programm from Java

    Hello Java Gurus,
    I am developing a java app that reads from my DB and do some calcs with it. I would need to execute another programm later sending some of the data as parameters.
    In C I would use _exec() function, is there any function like that in Java?
    Many thnks,
    AC.

    There is a method like
    runtime.exec();
    you could use that.

  • How to launch an application from java?

    Hi,
    Would anybody please help me this. I need to launch a new desktop application from my java app but I don't know how. For example, when user clicks on a "Edit" button from my java app, my app needs to launch NOTEPAD.EXE to allow user starts editing.
    Thanks a lot.
    Hung.

    try something like this for your button's action method:
            String[] cmd = {"notepad"};
    Runtime rt = Runtime.getRuntime();
            try {
                Process pro = rt.exec(cmd);
                pro.waitFor();  // wait until it's done executing
                System.out.println("Process exit code is: " + pro.exitValue());
            }catch(IOException ioe) {
                System.err.println("IOException -> " + ioe);
            } catch(InterruptedException ie){
                System.err.println("InterruptedException: " + ie);
            }

  • Can not launch swing application from Java Web Start 1.6.0_37

    I have a dynamic generated jnlp file from a serlvet. When I used Java Web Start to start the swing application, it failed. The exception showed
    com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://xxxx.xx.com:9080/dilpipweb/Test-1.0-SNAPSHOT.jar
         at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
         at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
         at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
         at java.util.concurrent.FutureTask.run(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    I used janela to validate the generated jnlp file. It was valid. I also checked the tomcat access log, it showed that the Test-1.0-SNAPSHOT.jar file was accessed correctly (with a 200 return code).
    Can anyone help me what was the problem?
    Thanks,

    Hi.
    I got a different problem. My Corba application works in JRE 1.6, but doesn't works in JRE 1.5.X. I got an unexpected error and my console shows:
    getSubjectX500Principal NoSuchMethodError: java.lang NoSuchMethodError
    #### Java Web Start Error:
    #### null
    Can you help me?

  • Launch another app from Siena app

    As it's not possible to launch a map in Siena, I'm hoping that I can pass an address out of Siena to the native Maps app in Windows 8. Is that possible? I can't find any documentation on how to open other apps from my app.

    Nice,
    Now we can launch browser, Skype, bing maps
    Sidenote: You need then to be sure that the user has the map app (or Skype) installed and all associations are correct. So at least best to write it in the prerequisites when moving to the app store.
    If you just want to add maps, you can also insert them directly in the app as static maps. I've explained that in
    http://social.technet.microsoft.com/Forums/en-US/45b2ffe3-4d57-4b4c-94a4-75d299a03e62/how-to-add-a-bing-map-with-pins-to-a-siena-project?forum=projectsiena
    The interactive nature is not present of course
    Or you could use the static google map api
    https://developers.google.com/maps/documentation/imageapis/
    Regards
    StonyArc
    http://www.stonyarc.com http://www.xboxlivenation.com

  • Launching An Application From Java applet?

    is it possible to run an executable from a java applet (the executable could be in the local machine)? if it is not possible is there any other alternatives (like scripts)?

    Yes, it is possible but it violates the applet security rules. So you have to sign the applet for this to be allowed.

  • Launching another application from Palm KVM

    Hi, is there anyway where I can pass a string variable to another application on the palm using the KVM?

    [axlrose82],
    Do you mean mulitple MIDlets app running on the Palm? Currently J2ME does not support multiple MIDlets running on a kVM i.e. only one MIDlet per kVM.
    If you are looking at passing the string variable information for later use by another MIDlet, one solution that we can suggest is for you to store the string variable object on to the persistent storage mechanism of CLDC/MIDP i.e. the RMS persistent store.
    Is this what you are asking?
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • Launch another extension from within your extension error

    hello I have two extension one is a panel and one is a modaless dialog box.
    I would like to lanch the modaless dialog box exention from the panel extension.
    I did some reasech and I came up with the below code:
    var result:SyncRequestResult =CSXSInterface.getInstance().requestOpenExtension("com.media.test","key1=" + IdModel.Edition).
    if(SyncRequestResult.COMPLETE == result.status)
      trace("com.media.test extension has been successfully open");
    however I get  a error :
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    I must be missing a step here, can anyone help?

    Found the probelm, the extesnion name was incorrect

  • Running another program from Java on OSX

    I have an application that allows the user to specify an external program to run using the Process class, they just have to xpecify the path.
    On OSX most of the apps are in .app packages with the contents hidden to the filechooser. What command do I need to run to start (for example ITunes) an application

    Thanks, this is very wierd but compard to other OSes seems to work

  • Launching IE from Java

    Hi,
    My requirement is as follows:
    I must be able to launch Internet explorer from Java. Also i must be able to open a pdf file inside it (embedded inside IE i.e. acrobat reader inside IE).
    I have tried using OleControlSite object, but does not work ( i mean it does not launch IE). I have also tried using exec. Here, how do i open ? What are the parameters that need to be passed to exec? i have tried the following code.....
    String WIN_PATH = "rundll32";
    String WIN_FLAG = "url.dll,FileProtocolHandler";
    String cmd = WIN_PATH + " " + WIN_FLAG + " " + "c:\\NYSE Glossary.pdf";
    try {
    p = Runtime.getRuntime().exec(cmd);
    } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    This piece of code opens the pdf file in acrobat reader(stand-alone). But i want the file to be open inside IE(acrobat embedded inside IE).
    Can anyone suggest me a solution?
    Thanks and Regards,
    Kris

    i have done the same thing.. it just opens the pdfin
    acrobat reader.. not as part of IEThat has nothing to do with the code... you need to
    install Acrobat plugin in IE. :)Annie. Have you changed login?

  • Launching Browser from Java when Browser URL is very  long

    Hi,
    I am trying to launch a browser from Java.
    I am doing the following.
    String command = "cmd" + "/c" + "start" + " browserURL";
    Process p = Runtime.getRuntime()exec(command);
    Note: My browserURL is very long.
    Now the browser is invoked. But the URL shown is incomplete and hence
    browser is unable to open the required application.
    Can someone help me in this.
    One way is to increase the buffer size on the command prompt?
    Is there any java command for this?
    Is there any other way to solve this issue.
    Thanks,
    AR

    this is my second time posting this, take note of it. I can't remember where i got it from, but credits go to the person that wrote it. It has helped me out thousands of times!!!
    to use, compile, then call from your program:
    org.newio.utils.BrowserLauncher.openURL("your url here")dfwtc
    package org.newio.utils;
    import java.io.File;
    import java.io.IOException;
    import java.lang.reflect.*;
    public class BrowserLauncher
        private static int jvm;
        private static Object browser;
        private static boolean loadedWithoutErrors;
        private static Class mrjFileUtilsClass;
        private static Class mrjOSTypeClass;
        private static Class macOSErrorClass;
        private static Class aeDescClass;
        private static Constructor aeTargetConstructor;
        private static Constructor appleEventConstructor;
        private static Constructor aeDescConstructor;
        private static Method findFolder;
        private static Method getFileType;
        private static Method makeOSType;
        private static Method putParameter;
        private static Method sendNoReply;
        private static Object kSystemFolderType;
        private static Integer keyDirectObject;
        private static Integer kAutoGenerateReturnID;
        private static Integer kAnyTransactionID;
        private static final int MRJ_2_0 = 0;
        private static final int MRJ_2_1 = 1;
        private static final int WINDOWS_NT = 2;
        private static final int WINDOWS_9x = 3;
        private static final int OTHER = -1;
        private static final String FINDER_TYPE = "FNDR";
        private static final String FINDER_CREATOR = "MACS";
        private static final String GURL_EVENT = "GURL";
        private static final String FIRST_WINDOWS_PARAMETER = "/c";
        private static final String SECOND_WINDOWS_PARAMETER = "start";
        private static final String NETSCAPE_OPEN_PARAMETER_START = " -remote 'openURL(";
        private static final String NETSCAPE_OPEN_PARAMETER_END = ")'";
        private static String errorMessage;
        private BrowserLauncher()
        private static boolean loadClasses()
            switch(jvm)
            default:
                break;
            case 0: // '\0'
                try
                    Class aeTargetClass = Class.forName("com.apple.MacOS.AETarget");
                    macOSErrorClass = Class.forName("com.apple.MacOS.MacOSError");
                    Class osUtilsClass = Class.forName("com.apple.MacOS.OSUtils");
                    Class appleEventClass = Class.forName("com.apple.MacOS.AppleEvent");
                    Class aeClass = Class.forName("com.apple.MacOS.ae");
                    aeDescClass = Class.forName("com.apple.MacOS.AEDesc");
                    aeTargetConstructor = aeTargetClass.getDeclaredConstructor(new Class[] {
                        Integer.TYPE
                    appleEventConstructor = appleEventClass.getDeclaredConstructor(new Class[] {
                        Integer.TYPE, Integer.TYPE, aeTargetClass, Integer.TYPE, Integer.TYPE
                    aeDescConstructor = aeDescClass.getDeclaredConstructor(new Class[] {
                        java.lang.String.class
                    makeOSType = osUtilsClass.getDeclaredMethod("makeOSType", new Class[] {
                        java.lang.String.class
                    putParameter = appleEventClass.getDeclaredMethod("putParameter", new Class[] {
                        Integer.TYPE, aeDescClass
                    sendNoReply = appleEventClass.getDeclaredMethod("sendNoReply", new Class[0]);
                    Field keyDirectObjectField = aeClass.getDeclaredField("keyDirectObject");
                    keyDirectObject = (Integer)keyDirectObjectField.get(null);
                    Field autoGenerateReturnIDField = appleEventClass.getDeclaredField("kAutoGenerateReturnID");
                    kAutoGenerateReturnID = (Integer)autoGenerateReturnIDField.get(null);
                    Field anyTransactionIDField = appleEventClass.getDeclaredField("kAnyTransactionID");
                    kAnyTransactionID = (Integer)anyTransactionIDField.get(null);
                    break;
                catch(ClassNotFoundException cnfe)
                    errorMessage = cnfe.getMessage();
                    return false;
                catch(NoSuchMethodException nsme)
                    errorMessage = nsme.getMessage();
                    return false;
                catch(NoSuchFieldException nsfe)
                    errorMessage = nsfe.getMessage();
                    return false;
                catch(IllegalAccessException iae)
                    errorMessage = iae.getMessage();
                return false;
            case 1: // '\001'
                try
                    mrjFileUtilsClass = Class.forName("com.apple.mrj.MRJFileUtils");
                    mrjOSTypeClass = Class.forName("com.apple.mrj.MRJOSType");
                    Field systemFolderField = mrjFileUtilsClass.getDeclaredField("kSystemFolderType");
                    kSystemFolderType = systemFolderField.get(null);
                    findFolder = mrjFileUtilsClass.getDeclaredMethod("findFolder", new Class[] {
                        mrjOSTypeClass
                    getFileType = mrjFileUtilsClass.getDeclaredMethod("getFileType", new Class[] {
                        java.io.File.class
                    break;
                catch(ClassNotFoundException cnfe)
                    errorMessage = cnfe.getMessage();
                    return false;
                catch(NoSuchFieldException nsfe)
                    errorMessage = nsfe.getMessage();
                    return false;
                catch(NoSuchMethodException nsme)
                    errorMessage = nsme.getMessage();
                    return false;
                catch(SecurityException se)
                    errorMessage = se.getMessage();
                    return false;
                catch(IllegalAccessException iae)
                    errorMessage = iae.getMessage();
                return false;
            return true;
        private static Object locateBrowser()
            if(browser != null)
                return browser;
            switch(jvm)
            case 0: // '\0'
                try
                    Integer finderCreatorCode = (Integer)makeOSType.invoke(null, new Object[] {
                        "MACS"
                    Object aeTarget = aeTargetConstructor.newInstance(new Object[] {
                        finderCreatorCode
                    Integer gurlType = (Integer)makeOSType.invoke(null, new Object[] {
                        "GURL"
                    Object appleEvent = appleEventConstructor.newInstance(new Object[] {
                        gurlType, gurlType, aeTarget, kAutoGenerateReturnID, kAnyTransactionID
                    return appleEvent;
                catch(IllegalAccessException iae)
                    browser = null;
                    errorMessage = iae.getMessage();
                    return browser;
                catch(InstantiationException ie)
                    browser = null;
                    errorMessage = ie.getMessage();
                    return browser;
                catch(InvocationTargetException ite)
                    browser = null;
                    errorMessage = ite.getMessage();
                    return browser;
            case 1: // '\001'
                File systemFolder;
                try
                    systemFolder = (File)findFolder.invoke(null, new Object[] {
                        kSystemFolderType
                catch(IllegalArgumentException iare)
                    browser = null;
                    errorMessage = iare.getMessage();
                    return browser;
                catch(IllegalAccessException iae)
                    browser = null;
                    errorMessage = iae.getMessage();
                    return browser;
                catch(InvocationTargetException ite)
                    browser = null;
                    errorMessage = ite.getTargetException().getClass() + ": " + ite.getTargetException().getMessage();
                    return browser;
                String systemFolderFiles[] = systemFolder.list();
                for(int i = 0; i < systemFolderFiles.length; i++)
                    try
                        File file = new File(systemFolder, systemFolderFiles);
    if(file.isFile())
    Object fileType = getFileType.invoke(null, new Object[] {
    file
    if("FNDR".equals(fileType.toString()))
    browser = file.toString();
    return browser;
    catch(IllegalArgumentException iare)
    browser = browser;
    errorMessage = iare.getMessage();
    return null;
    catch(IllegalAccessException iae)
    browser = null;
    errorMessage = iae.getMessage();
    return browser;
    catch(InvocationTargetException ite)
    browser = null;
    errorMessage = ite.getTargetException().getClass() + ": " + ite.getTargetException().getMessage();
    return browser;
    browser = null;
    break;
    case 2: // '\002'
    browser = "cmd.exe";
    break;
    case 3: // '\003'
    browser = "command.com";
    break;
    case -1:
    default:
    browser = "netscape";
    break;
    return browser;
    public static void openURL(String url)
    throws IOException
    if(!loadedWithoutErrors)
    throw new IOException("Exception in finding browser: " + errorMessage);
    Object browser = locateBrowser();
    if(browser == null)
    throw new IOException("Unable to locate browser: " + errorMessage);
    switch(jvm)
    case 0: // '\0'
    Object aeDesc = null;
    try
    try
    aeDesc = aeDescConstructor.newInstance(new Object[] {
    url
    putParameter.invoke(browser, new Object[] {
    keyDirectObject, aeDesc
    sendNoReply.invoke(browser, new Object[0]);
    catch(InvocationTargetException ite)
    throw new IOException("InvocationTargetException while creating AEDesc: " + ite.getMessage());
    catch(IllegalAccessException iae)
    throw new IOException("IllegalAccessException while building AppleEvent: " + iae.getMessage());
    catch(InstantiationException ie)
    throw new IOException("InstantiationException while creating AEDesc: " + ie.getMessage());
    break;
    finally
    aeDesc = null;
    browser = null;
    case 1: // '\001'
    Runtime.getRuntime().exec(new String[] {
    (String)browser, url
    break;
    case 2: // '\002'
    case 3: // '\003'
    Runtime.getRuntime().exec(new String[] {
    (String)browser, "/c", "start", url
    break;
    case -1:
    Process process = Runtime.getRuntime().exec((String)browser + " -remote 'openURL(" + url + ")'");
    try
    int exitCode = process.waitFor();
    if(exitCode != 0)
    Runtime.getRuntime().exec(new String[] {
    (String)browser, url
    catch(InterruptedException ie)
    throw new IOException("InterruptedException while launching browser: " + ie.getMessage());
    break;
    default:
    Runtime.getRuntime().exec(new String[] {
    (String)browser, url
    break;
    static
    loadedWithoutErrors = true;
    String osName = System.getProperty("os.name");
    if("Mac OS".equals(osName))
    String mrjVersion = System.getProperty("mrj.version");
    String majorMRJVersion = mrjVersion.substring(0, 3);
    try
    double version = Double.valueOf(majorMRJVersion).doubleValue();
    if(version == 2D)
    jvm = 0;
    } else
    if(version >= 2.1000000000000001D)
    jvm = 1;
    } else
    loadedWithoutErrors = false;
    errorMessage = "Unsupported MRJ version: " + version;
    catch(NumberFormatException numberformatexception)
    loadedWithoutErrors = false;
    errorMessage = "Invalid MRJ version: " + mrjVersion;
    } else
    if(osName.startsWith("Windows"))
    if(osName.indexOf("9") != -1)
    jvm = 3;
    } else
    jvm = 2;
    } else
    jvm = -1;
    if(loadedWithoutErrors)
    loadedWithoutErrors = loadClasses();
    suck my balls

Maybe you are looking for

  • PDF Portfolios updating pdf's within portfolio

    I'm working on a pdf portfolio, is there a way to update the pdf's in the portfolio without deleting them and adding them again?  I don't see any options for re-linking or updating the pdf's once you add them?

  • SCSI, AGP Powermac G4, and Tiger

    I have a SCSI card installed in my AGP Graphics PowerMac G4, but it also has Tiger installed on it. I've read that the Mac OS X stopped supporting SCSI starting with Panther. Is this true? I have some SCSI external hard drives, and it would be nice i

  • My iPad2 colors are wrong. Has anyone had this problem?

    My iPad 2 colors are wrong. Has anyone had this problem?

  • Valuation error for production order

    Hi For a material, valuation type was not maintained initally. At that time production orders was created (Settlement rule created). Later valuation type was maintained. The production order was TECOed and settlement run was done. But during the sett

  • Ipod does not transfer all songs from itunes

    I have the 80g ipod classic. I have 16,000 songs on itunes. when i go to setting on ipod and go to about it shows that i am missing 13 songs. for a while i was missing 5 songs then 9 songs and now 13.yes i still have room on my ipod for music. I do n