Asking about run a file

Right now I develop a Java GUI program that will execute or run a file (meaby like Gel or JCreator IDE). This file is an Oracle Data Mining sample program which is implement Java, this file has two property
files as input of this file. Actually this Oracle Data Mining sample program can compiled and executed
through Windows command prompt, to compile and execute this file I also use two batch files. So an
Oracle Data Mining sample program, two property files, and two batch files, I place those components
in a specified folder. I also set my Java_Home and Oracle_Home first because in file executing pro
cess I will connect to Oracle database, to do these settings also from Windows command prompt.
And for a specified folder I place it under "Oracle_Home/dm/sample".
If anyone can help me to run or execute an Oracle Data Mining sample program file from my Java GUI program meaby like running a Java program file with Gel, JCreator or other IDE. I am so happy and
say thank you so much for giving help to me. And for the solution, I want it sent to my e-mail address:
[email protected]

It is generally not a good idea to put your e-mail address in forums; but, that is another topic.
If the data mining program you want to run can be run from the command line then it must have the following method:public static void main(String[] args) You can run this method from your application and pass it the command line arguments - here is one way:
try {
    String someClassName = "TheDataMiningProgramsFullClassName";
    Class c = Class.forName(someClassName);
    Method mainMethod = c.getMethod("main", new Class[] {String[].class});
    String[] args = . . .
    mainMethod.invoke(null, new Object[] {args});
} catch (Exception e) { // Easy way out of a problem
    e.printStackTrace();
}You could also start this in its own Thread if you do not want your program to wait.

Similar Messages

  • Where can i ask about Lifecam video file that won't work?

    i used lifecam studio in order to capture once in a lifetime event. when i wanted to stop, the softwer didn't responded and i was left with 2:30 hours wmv file (1.78gb) that plays for like 1 minute and then stucks! what can i do ?! it's an emergency!

    I'd ask them over here.
    Windows
    Video forums on Microsoft Answers
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Asking about a text file

    how can i read a list containing some records e.g.fahrenheit temperatures. from a text file already been saved and then using it to make some conversions and calculations like converting to centigrade .after that i must save the outputs to another text file ??
    i know that is alot but can anybody help me with it ........

    after the above you just need to search the string for 'end of line' and maybe a paramname/value seperator, sperate the values, make sure you dont forget to kill whitespaces, and put the values into a vector or array.
    i prefer to read the file line by line with the DataInputStream.readline() command and extract the value line by line.
    look at this, maybe you can use it with little modification:
         public PropertiesObject(String name, String path)
              this.name = name;
              this.path = path;
              // sign for linebreak - depends on platforms
              newline = System.getProperty("line.separator");
              // reference to the properties file
              PropertiesFile = new File(path+name+".properties");
              // vector to put the param/value pair-array in
              PropertiesSet = new Vector();
              System.out.println("Properties File wird angelegt: "+PropertiesFile);
              try
                   //opening stream to file for read operations
                   FileInputStream PropertiesFileInput = new FileInputStream(PropertiesFile);
                   DataInputStream PropertiesDataInput = new DataInputStream(PropertiesFileInput);
                   while (true)
                        //reading line after line of the properties file
                        String line = PropertiesDataInput.readLine();
                        if (line == null)
                             return;
                        //just making sure there are no whitespaces at the beginng or end of the line
                        line = cutSpaces(line);
                        if (line.length() > 0)
                             //$ indicates a param-name
                             if (line.startsWith("$"))
                                  // array to store a param/value pair in
                                  propvaluepair = new String[1][2];
                                  //get the param-name
                                  String parameter = line.substring(1, line.indexOf(separator)-1);
                                  //just making sure there are no whitespaces at the beginng or end of the variable
                                  parameter = cutSpaces(parameter);
                                  //get the value
                                  String value = line.substring(line.indexOf(separator)+1, line.length());
                                  //just making sure there are no whitespaces at the beginng or end of the variable
                                  value = cutSpaces(value);
                                  //put the param-name and the value into an array
                                  propvaluepair[0][0] = parameter;
                                  propvaluepair[0][1] = value;
                                  //and finaly put the array into the vector
                                  PropertiesSet.addElement(propvaluepair);
              // error handlig
              catch (IOException e)
                   System.out.println("ERROR occured while reading property file for: "+name);
                   System.out.println("ERROR CODE: "+e);
                   System.out.println("this is a serious error - the server must be stopped");
         }

  • WTK 2.5.2 Emulator always asks about file access

    Is there a way to suppress the question that the emulator asks about accessing a file using a Fileconnection? It asks it on EVERY SINGLE ACCESS and seriously interferes with debugging. (On the real device, I can give permission once and be done with it).
    Michael D. Spence
    Mockingbird Data Systems, Inc.

    In (for Windows) C:\Documents and Settings\spence\j2mewtk\2.5.2\appdb:
    - Make a copy of _policy.txt so you can undo this later if you want.
    - Find the domain you midlet runs in (e.g., domain: identified_third_party).
    - Change these two lines:
    blanket(oneshot): read_user_data_access
    blanket(oneshot): write_user_data_access
    to read
    allow: read_user_data_access
    allow: write_user_data_access

  • [ASK] About references in PLL

    i want to ask about references in file modul extension .pll <opened using oracle form builder>
    went i trace an error in flow program , i found the flow took me in proc / func and it listed in "references"
    but when i searching in the proc / func in the modul, i didn't find it !!
    example listed in references :
    apps.XXX_XX_test_pkg(package spec)
    and my question how to find that proc / func that not exist in current modul ??
    sorry my bad english :)

    example listed in references :
    apps.XXX_XX_test_pkg(package spec)
    and my question how to find that proc / func that not exist in current modul ??Please run this query to determine under which schema this package exists.
    SQL> select owner, object_name, object_type, status
    from dba_objects
    where object_name like 'XXX_XX_TEST_PKG';Also, please see (SCRIPT: REGENERATING PACKAGE and PROCEDURE CODE from DBA_SOURCE [ID 1012473.7]).
    Thanks,
    Hussein

  • Everytime i try to open my Firefox i get a window that pops up asking me which browser i want to use to open it. After choosing Firefox it asks to run a C:/Program Files (x86)/Mozilla Firefox/firefox.exe.

    Every time i try to open my Firefox i get a window that pops up asking me which browser i want to use to open it. After choosing Firefox it asks to run a C:/Program Files (x86)/Mozilla Firefox/firefox.exe. But my search bar says file:///C:/Program Files (x86)/Mozilla Firefox/firefox.exe. Never seen anything like this, half tempted to stop using Mozilla for this sole fact. PLEASE someone help me.

    Same error message, I disabled tab mix and made sure I only have the newest version of Java, restarted firefox, now it seems to be fine no error yet on Pogo games or pictures upload to ebay which were the biggest problems besides hanging. I had also had disabled AVG secure search yesterday but that did not solve the issue. Now I will try to add back in AVG search...I have very few adds ons, also the note embedded about re- installing a toolbar went away, my old one did not work with FF4, so I installed Yahoo toolbar but the message still did not go away until I applied this fix. Hopes this helps someone..

  • I run OSX10.6.8. Just dwnlded FF8.1 and everytime I go to open it I am asked about the disk image. But if I delete the dmg, the program won't run.

    I just downloaded the 8.1 version. It was a 30+mb file. Previously I ran 4.0. So I drag the new Firefox icon into the Apps folder. It does its merge thing with the old version. Problem is when I click to open FF now, it always throws up this window asking me about the disk image of what I just downloaded. I even tried restarting the computer--but the same message pops up. I checked on your website and it says that I need to "eject" the disk image (i.e. I'm guessing that means the 30+ mb file I just down loaded), so since I don't have an eject option that I can find (except for external harddrives and cd/dvd), I just drug it into the trash. I go to empty the trash and I get a message that that dmg file is "in use" even though FF is completely shut down. So again I'm guessing that means that even though I already merged that dmg file with the old 4.0 version file, if I dump the update file it seems that it's going to mess up the actual revised program file still remaining. I just want to be able to click on the icon in my dock like I've always done and have FF open. I don't want to keep being asked about disk image stuff. Somehow this feels like an easy resolution, but I just can't seem to put my finger on how to resolve it. Thanks for you help.

    Nope---didn't work. I've owned Macs for about 12 years so although I am brain dead on some things, I do have a working knowledge on most things. I only say that to say this--I did try holding down the mouse and choosing empty trash. It asks if I want to permanently delete what's in there. I say yes--and then I get the same identical message again-----'The operation can't be completed because the item "Firefox 8.0.1.dmg" is in use I can then click stop, or continue.' So apparently that complains the same way it does if I click it up on the menu :)))
    As for item owned by---that's not an issue and isn't coming up. User is not a problem either as I am the only user on this system. There is only ONE file in my trash at the moment at that is this dmg file. Nothing Mac. Nothing owned by anyone other than Firefox. The problem seems to be that the dmg file and the original 4.0 FF file are working in tandem with each other--even though I have already drug the new 8.0 globe into the Apps folder and it updated the FF app with the new stuff. If I could force the dmg file to go away, I would do so, but at every turn the system is telling me it can't be done because it seems to think that dmg file is in use---even though everything is shut down and/or ejected. Hey--I'm getting ready to head out and won't be back till evening. I'll check back in this evening. Thank you again for your help.

  • I have an iMac model 4,1 running OSX 10.6.8.   The CD/DVD drive went bad and I have replaced it.  However I can not get disks to eject.   I have asked about this before and tried all all the suggestions I have received but I can not eject.

    I have an iMac model 4,1 running OSX 10.6.8.   The CD/DVD drive went bad and I have replaced it.  However I can not get disks to eject.   I have asked about this before and tried all all the suggestions I have received but I can not eject.  
    Yesterday I opened up the iMac and reinstalled the drive to make sure that it was not an alignment problem.   I still can not eject.   When I try to eject the drive makes noises like it is ejecting but the disk does not come out.
    How do I solve this problem?

    Hi again Hal
    Link to your other thread > The slot loading CD/DVD drive in my...: Apple Support Communities
    You have also tried resetting the PRAM as I suggestion in your other thread...?
    See resetting the PRAM > About NVRAM and PRAM
    1. Shut down the computer.
    2. Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    3. Turn on the computer.
    4. Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    5. Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    6. Release the keys.

  • I want to ask about deleting files that have been deleted in the trash but I want to remove it permanently from the trash can not

    I want to ask about deleting files that have been deleted in the trash but I want to remove it permanently from the trash can not, indeed I delete files that are partly contained in the application file. I want to delete files that are also quite a lot by 5 Gyga, I've tried to remove it from the normal trash remains are not removed. How should I do?

    +

  • Running .CLASS file in Java JDK1.3.1_19

    Hello
    i am an old java programmer. but stopped for a while... so i guess im a bit rusy at it...
    anyway...
    i installed jdk1.3.1_19 on my pc and did everything as they asked for in the installation but i get an error wen i run the .CLASS file
    the error i get is:
    "exception in thread 'main' java.lang.NoClassDefFoundError: C:\jexamples\Welcome1"
    i read a documentation abt some CLASSPATH... which im kinda confused abt... how do i set that? and wat do i set it as?...
    Thanx for the help in advance!

    i am an old java programmer. but stopped for a
    while... so i guess im a bit rusy at it...
    anyway...
    i installed jdk1.3.1_19 on my pc Why did you install an old version instead of the latest version?
    and did everything
    as they asked for in the installation but i get an
    error wen i run the .CLASS file
    the error i get is:
    "exception in thread 'main'
    java.lang.NoClassDefFoundError:
    C:\jexamples\Welcome1"
    i read a documentation abt some CLASSPATH... which im
    kinda confused abt... how do i set that? and wat do i
    set it as?...Do not set or use the CLASSPATH environment variable. Instead use the -classpath option when compiling or running your programs. Otherwise, you'll never figure out what's going on.
    When asking about compiling problems, you need to post:
    1) The path to all the files used in your program
    2) The prompt where you entered the commmand
    3) The actual command you entered

  • Where to ask about an OLDER iMac?

    Hi guys, looks like this board is largely about the newer iMacs; where on here could I ask about the capabilities/potential of an older iMac??
    I just had to ask because my parents have one of the older 1999 or so era blue iMacs, format Mac OS Ext., 320 MB RAM built in memory, OS 9.2.2, w/ a 6.29 GB drive that has 3.29 GB. I want to try to upgrade the OS for them over the holiday to make it just a LITTLE more internet-compatible (since whenever I come home it's practically impossible to check out a lot of sites; I don't even think they've been able to get onto their Netflix account lately that I gave them). Obviously I can understand why anyone would question why you'd bother upgrading such an older model; I'm hoping to give them my newer model G4 as soon as I myself upgrade to a newer computer in a few months, but I just was hoping to give them a temporary upgrade for the time being.
    (As a side note, I have an External drive that's formatted to my G4--still running Tiger--that I was hoping to use to backup any important files from their boot drive prior to the installation--and in turn copy any upgrades they may need from--and wanted to know if you'd think the iMac could read it).
    Anyone know??? Thanks so much.

    Just look a little further down and you will see the iMac CRT discussion area. That is where your parent's iMac would be discussed.
    For iMac G4 questions go to the "iMac (Flat Panel)" discussion area.
    For iMac G3 questions go to the "iMac (CRT)" discussion area.

  • Not able to run .msi file on windows XP Version 2002 (SP3)

    Hi I am not able to run .msi file in Windows XP Version 2002(SP3)..I am not able to find the log or the Error.Kindly help

    Hello,
    this forum is about problems within the forum itself. PLease ask in
    http://answers.microsoft.com/en-us/windows/forum?tab=Threads
    Best regards
    Meinolf Weber
    MVP, MCP, MCTS
    Microsoft MVP - Directory Services
    My Blog: http://blogs.msmvps.com/MWeber
    Disclaimer: This posting is provided AS IS with no warranties or guarantees and confers no rights.
    Twitter:  

  • Disk utility can't repair the Macintosh HD, asking toback up all files as possible? and how to  reformat the disk?

    disk utility can't repair the Macintosh HD, asking toback up all files as possible? and how to  reformat the disk?

    Some problems can indeed be fixed this way. But working from Recovery_HD or Disk Warrior DVDs and working in the restricted environment those provide can be difficult. You can literally spend days working on this problem (while your regular work is unavailable) only to discover the old drive is unsalvageable.
    There is no way to know up front whether you are facing a major Hardware failure or a minor software glitch, or something in between. Often you are forced to work from the drive you no longer trust. I continue to recommend you do this work from a different, fully functioning Mac OS X booted from a different drive.
    If you have had the foresight to (as The hatter often recommends) clone your virgin install onto another drive for use in such situations, you will be able to recover from such problems in record time. If not, my previous recommendations stands:
    Buy a new Drive. Or  two. Install Mac OS X from scratch on a new drive, and get your Mac running again. Later, you can use the full power of Mac OS X to attempt to rescue your data, if needed. Then Zero the old drive, to see if it can hold data again reliably.
    If the old drive eventually provides some needed data, and is salvageable, Merry Christmas.

  • How to run .exe files with Virtual PC for Mac

    Hey Guys, I'm new around here and with mac technology as well. Anyway, I have an iMac OS X 10.5.1 Leopard and I've recently purchased the Virtual PC for Mac 7.0.2 software. So I'd like to know how to use this program properly, because I need to run some executable files in my computer. It is confusing for me because I don't know how to get started, and I only get to the part when it says "OS not found, Install an OS on this hard drive".
    Honestly I've no idea of what an OS is or where do I get that. So I'd really appreciate if one of you guys could tell me, step by step, what to do to use Virtual PC properly, and finally learn how to run .exe files on mac.
    Thanks in advance!
    Have a nice day!

    Always nice to see new faces
    Honestly I've no idea of what an OS is or where do I get that.
    This brings up the second part of your problem. The first part is setting up either a proper Virtual Machine program like Parallels or VMfusion, or setting up a Boot Camp partition on your drive.
    http://www.parallels.com/
    http://www.vmware.com/products/fusion/
    OS stands for Operating System. You are running Leopard 10.5.7 as an operating system on your Mac (MacOS X).
    The second part of your problem - You will need a copy of Windows XP or Vista if you want to run Windows on your Mac.
    There is at least one other solution for running Windows programs on a Mac. It's called "CrossOver" by a company named 'Codeweavers'. It's based on a project for "Wine" to be able to run PC programs on a Mac or Linux, without having to buy or install Windows. It works with a narrow subset of Windows programs so you would want to make sure the program you want to run is compatible with CrossOver before you buy it.
    http://www.codeweavers.com/products/cxmac/
    In addition to all the above information, you need to upgrade your Mac to the latest 10.5.7 from 10.5.1. "Software Update" is located under the black Apple icon in the Menu Bar at the top left corner of your monitor. After you are updated you will want to update your Profile here so that it shows the proper OS version.
    With your level of experience with MacOS X and the Windows OS's you should probably get some help from a local Apple store. They have an appointment system and do offer many types of help and training, and they can offer assistance with choosing the proper programs for you to purchase for your machine.
    You are also welcome to continue to ask questions here, of course. You will want to ask your questions with different issues that come up in different threads so that the answers stay focused on the title of the thread.
    Message was edited by: dechamp to try to be more accurate with a fairly complicated issue...

  • How to run .exe files on macbook pro

    Just bought my first macbook pro the other day.  I absolutely love it.  Much better than the windows boxes.  I wanted to run some '.exe' files on my new laptop but was not successful finding anything on the market to use without purchasing a full OS version of Windows.  Is there any software out there that I can use to run '.exe' files without purchasing a full Windows OS to do so.  I know about parallels for MAC but that seems to require purchasing Windows OS?  Any help is greatly appreciately.
    Here are the specs on my Macbook Pro.
    2.2GHz quad core i7
    4GB RAM
    500GB HDD

    Some Windows software -- not all, by a long shot -- will run on a Mac without installing Windows, with the aid of the CrossOver Mac emulator:
    http://www.codeweavers.com/products/cxmac/
    Games generally won't. For those, you need Windows installed through Boot Camp so you can run Windows natively.

Maybe you are looking for

  • How do I keep movies on my Iphone, but delete them from my computer as well?

    I've got a computer with limited hard drive space left due to an exhaustive game library. As such, I can only 'afford' to fit maybe 8 gigs (2 or so) worth of media downloads on it. And suffice to say, downloading media with my computer is much prefer

  • Error message: "invalid command line argument" while lodaing itunes

    I'm trying to load Itunes onto a computer that already has a version of itunes on it. I get a message that says "error: -1639 invalid command line argument" Does anyone know what this means? Does this mean I can't load itunes onto a computer that alr

  • PDF with Flex/Flash not running on iPhone

    Dear all I have a pdf document including Flex content running perfectly in the Acrobat or Reader on Windows. On the iPhone the Flex is not shown. Is there any solution to this? Many thanks

  • 2011 13 MPB - Frequent BSOD & Kernel Panics - seeking advice

    All, I have been having similar issues with my 13 inch MBP.  I've had it for a couple weeks now.  Ive had an original aluminum Macbook for the past two years and had not one issue with it.  In fact, I was a BSOD virgin and didnt even have any idea wh

  • Change selection screen mb25

    Hi all, The transaction MB25 uses the DB logic MMIMRKPFRESB, At the selection screen I want to see the block KEY (Key Fields) How can I do that ?. I create a new programm with attributes:     logical database MMIMRKPFRESB and s     selection screen w