Read multiple files and save all into one output file(AGAIN)

Hi, guys
I need your help for reading data from multiple files and save the results into one output file. When files are selected from file chooser, my program read the data line by line , do some calculations and save the result into the output. I made an array to store input files and it seems to be working fine, but when it comes to SaveFile() function, issues NullPointException message.
public class FileReduction1 extends JFrame implements ActionListener
   // GUI definition and layout
    /* ACTION PERFORMED */
    public void actionPerformed(ActionEvent event) {
        if (event.getActionCommand().equals("Open File")) getFileName();
    /* OPEN THE FILE */
    private void getFileName() {
        // Display file dialog so user can select file to open
     JFileChooser fileChooser = new JFileChooser();
     fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
        fileChooser.setMultiSelectionEnabled(true);
     int result = fileChooser.showOpenDialog(this);
     // If cancel button selected return
     if (result == JFileChooser.CANCEL_OPTION) return;
        if (result == JFileChooser.APPROVE_OPTION)
         files = fileChooser.getSelectedFiles();
            textArea.setText("");
            if(files.length>0)
                filelist="";
                System.out.println("files length"+files.length);
                for(int i=0;i<files.length;i++)
                     System.out.println(files.getName());
filelist+=files[i].getName()+" ,";
if (checkFileName(files[i]) )
openButton.setEnabled(true);
readButton.setEnabled(true);
textArea.append("file "+files[i].getName()+"is a proper file"+"\n");
readFile(files[i]);
textfield.setText(filelist);
else{JOptionPane.showMessageDialog(this,"Please select file(s)",
                "Error 5: ",JOptionPane.ERROR_MESSAGE); }
     // Obtain selected file
/* READ FILE */
private void readFile(File fileName_in) {
// Disable read button
readButton.setEnabled(false);
// Dimension data structure
     getNumberOfLines(fileName_in);
     data = new String[numLines][4];
     // Read file
     readTheFile(fileName_in);
     // Rnable open button
     openButton.setEnabled(true);
/* GET NUMBER OF LINES */
/* Get number of lines in file and prepare data structure. */
private void getNumberOfLines(File fileName_in) {
int counter = 0;
     // Open the file
     openFile(fileName_in);
     // Loop through file incrementing counter
     try {
     String line = fileInput.readLine();
     while (line != null) {
     counter++;
          System.out.println("(" + counter + ") " + line);
line = fileInput.readLine();
     numLines = counter;
closeFile(fileName_in);
     catch(IOException ioException) {
     JOptionPane.showMessageDialog(this,"Error reading File",
               "Error 5: ",JOptionPane.ERROR_MESSAGE);
     closeFile(fileName_in);
     System.exit(1);
/* READ FILE */
private void readTheFile(File fileName_in)
// Open the file
//int row=0;
int col=0;
openFile(fileName_in);
System.out.println("Read the file");
// Loop through file incrementing counter
try
String line = fileInput.readLine();
while (line != null)
boolean containsDoubles = false;
double temp;
String[] lineParts = line.split("\t");
try
for (col=0;col<lineParts.length;col++)
temp=Double.parseDouble(lineParts[col]);
data[row][col] = lineParts[col];
containsDoubles = true;
System.out.print("data["+row+"]["+col+"]="+lineParts[col]+" ");
} catch (Exception e) {row=0; col=0; temp=0.0;}
if (containsDoubles){ row++;}
System.out.println();
line = fileInput.readLine();
catch(IOException ioException)
JOptionPane.showMessageDialog(this,"Error reading File", "Error 5: ",JOptionPane.ERROR_MESSAGE);
closeFile(fileName_in);
System.exit(1);
//System.out.println("length"+data.length);
closeFile(fileName_in);
process(fileName_in);
/* CHECK FILE NAME */
/* Return flase if selected file is a directory, access is denied or is
not a file name. */
private boolean checkFileName(File fileName_in) {
     if (fileName_in.exists()) {
     if (fileName_in.canRead()) {
          if (fileName_in.isFile()) return(true);
          else JOptionPane.showMessageDialog(null,
                    "ERROR 3: File is a directory");
     else JOptionPane.showMessageDialog(null,
                    "ERROR 2: Access denied");
     else JOptionPane.showMessageDialog(null,
                    "ERROR 1: No such file!");
     // Return
     return(false);
/* OPEN FILE */
private void openFile(File fileName_in) {
     try {
     // Open file
     FileReader file = new FileReader(fileName_in);
     fileInput = new BufferedReader(file);
     catch(IOException ioException) {
     JOptionPane.showMessageDialog(this,"Error Opening File",
               "Error 4: ",JOptionPane.ERROR_MESSAGE);
     textArea.append("OPEN FILE\n---------\n");
     textArea.append(fileName_in.getPath());
     textArea.append("\n");
     //System.out.println("File opened successfully");
/* CLOSE FILE */
private void closeFile(File fileName_in) {
if (fileInput != null) {
     try {
          fileInput.close();
     catch (IOException ioException) {
     JOptionPane.showMessageDialog(this,"Error Opening File",
               "Error 4: ",JOptionPane.ERROR_MESSAGE);
System.out.println("File closed");
private void process(File fileName_in) {
//getNumberOfLines();
     //data = new String[numLines][3];
     // Read file
double temp,temp1;
     //readTheFile();
//System.out.println("row:"+row);
//int number=data.length;
//System.out.println(number);
for (int i=0; i<row; i++)
temp=Double.parseDouble(data[i][1]);
sumx+=temp;
temp1=Double.parseDouble(data[i][3]);
sumy+=temp1;
multixy+=(temp*temp1);
square_x_sum+=(temp*temp);
square_y_sum+=(temp1*temp1);
//System.out.println("Sum(x)="+sumx);
double tempup=(row*multixy)-(sumx*sumy);
double tempdown=(row*square_x_sum)-(sumx*sumx);
slope=tempup/tempdown;
double tempbup=sumy-(slope*sumx);
intb=tempbup/row;
double tempside=(row*square_y_sum)-(sumy*sumy);
double cordown=Math.sqrt(tempdown*tempside);
corr=tempup/cordown;
r_sqrt=corr*corr;
     textArea.append("Data for file"+ fileName_in.getName()+" have been processed successfully.");
     textArea.append("\n");
     textArea.append("Please enter output file name including extension.");
System.out.println("number"+row);
System.out.println("slope(m)="+slope);
System.out.println("intecept b="+intb);
System.out.println("correlation="+corr);
System.out.println("correlation="+r_sqrt);
saveFile();
private void saveFile()
textArea.append("SAVE FILE\n---------\n");
if (openFile1())
     try {
          outputToFile();
catch (IOException ioException) {
          JOptionPane.showMessageDialog(this,"Error Writing to File",
               "Error",JOptionPane.ERROR_MESSAGE);
private boolean openFile1 ()
     // search for the file path
StringBuffer stringpath;
title=textfield1.getText().trim();
int temp=fileName_in.getName().length();
int temp_path=fileName_in.getPath().length();
int startd=(temp_path-temp);
stringpath=new StringBuffer(fileName_in.getPath());
stringpath.delete(startd, temp_path+1);
//System.out.println("file-path="+temp_path);
//System.out.println("length-file="+temp);
path=stringpath.toString();
fileName_out = new File(path, title);
//System.out.println(file_out.getName());
if (fileName_out==null || fileName_out.getName().equals(""))
     JOptionPane.showMessageDialog(this,"Invalid File name",
               "Invalid File name",JOptionPane.ERROR_MESSAGE);
     return(false);
     else
try
boolean created = fileName_out.createNewFile();
if(created)
fileOutput = new PrintWriter(new FileWriter(fileName_out));
fileOutput.println("File Name"+"\t"+"Slope(m)"+"\t"+"y-intercept(b)"+"\t"+"Coefficient(r)"+"\t"+"Correlation(R-Squared)");
return(true);
else
fileOutput = new PrintWriter(new FileWriter(fileName_out,true));
return(true);
catch (IOException exc)
JOptionPane.showMessageDialog(this,"Please enter the file name","Error",JOptionPane.ERROR_MESSAGE);
return(false);
private void outputToFile() throws IOException
// Initial output
     textArea.append("File name = " + fileName_out + "\n");
     // Test if data exists
     if (data != null)
     fileOutput.println(fileName_in.getName() +"\t"+ slope+"\t"+intb+"\t"+corr+"\t"+r_sqrt);
textArea.append("File output complete\n\n");
     else
textArea.append("No data\n\n");
     // End by closing file
initialcomp();
     fileOutput.close();
private void initialcomp()
slope=0.0;
intb=0.0;
corr=0.0;
r_sqrt=0.0;
sumx=0.0; sumy=0.0; multixy=0.0; square_x_sum=0.0; square_y_sum=0.0;
for(int i=0;i<data.length;i++)
for(int j=0;j<data[i].length;j++)
data[i][j]=null;
/* MAIN METHOD */
public static void main(String[] args) throws IOException
     // Create instance of class FileChooser
     FileReduction1 newFile = new FileReduction1("File Reduction Program");
     // Make window vissible
     newFile.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
     newFile.setSize(500,400);
newFile.setVisible(true);
Sorry about the long lines.
As you can see, all input files saved in array called files, however when OpenFile1() function is called, it take input (fileName_in) as a single file not an array. I'm assuming this causes the exception.
When there's muptiple inputs, program should take each file from getFileName() to outputToFile() sequentially.
Does anybody have an idea to solve this?
Thanks a lot!!

you naming convention is confussing. you should follows Java naming convention..you have a getXXX but decalred the return type as "void"...get usully means to return something...
your code is doing too much..and hard to follows..
1. get the selected files
for each selected file
process the file and return the result
write out the result.
/** close the precious resource */
public void closeResource(Reader in){
    if (in != null){
        try{ in.close(); }
        catch (Exception e){}
/** get the total number of line in a file */
public int getLineCount(File file) throws IOException{
    BufferedReader in = null;
    int lineCount = 0;
    try{
        in = new BufferedReader(new FileReader(file));
        while ((in.readLine() != null)
            lineCount++;
        return lineCount;
    finally{ closeResource (in);  }
/** read the file */
public void processFile(File inFile, File outFile) throws IOException{
    BufferedReader in = null;
    StringBuffer result = new StringBuffer();
    try{
        in = new BufferedReader(new FileReader(inFile));
        String line = null;
        while ((in.readLine() != null){
            .. do something with the line
            result.append(....);
        writeToFile(outFile, result.toString());
    finally{ closeResource (in);  }
public void writeToFile(File outFile, String result) throws IOException{
    PrintWriter out = null;
    try{
        out = new PrintWriter(new FileWriter(outFile, true));  // true for appending to the end of the file
        out.println(result);
    finally{  if (out != null){ try{ out.close(); } catch (Exception e){} }  }
}

Similar Messages

  • Trying to drag pdf files i have and combine them into one pdf file in the account i just purchased with Adobe. when i drag a pdf file over Adobe doesn't accept it. says it can not convert this type of file. but it is an Adobe file. Do I need to change it?

    Trying to drag pdf files i have and combine them into one pdf file in the account i just purchased with Adobe. when i drag a pdf file over Adobe doesn't accept it. says it can not convert this type of file. but it is an Adobe file. Do I need to change it in some other form befor dragging it?

    Hello djensen1x,
    Could you please let me know what version of Acrobat are you using.
    Also, tell me your workflow of combining those PDF files?
    Please share the screenshot of the error message that you get.
    Hope to get your response.
    Regards,
    Anubha

  • On Adobe Acrobat Pro, how do I take a PDF file and convert it into an excel file?

    I am not sure how to take a PDF file and change it into an excel file. I have Adobe Acrobat Pro. Thanks!

    Using Acrobat XI Pro.
    File - Save As Other - Spreadsheet - Microsoft Excel Workbook
    Be well...

  • Convert different types of files and merged them into one pdf

    Hi, everyone. I'm girl from China.
    There is folder containing severl files of different types, like doc, msg, jpeg etc.   And I want to convert and merge them into one pdf following a certain order. I know that PDFmaker can do that nicely, but the problem is that I have like 3000+ fodlders that requires the same work.
    I want to do it with VBA and Acrobat. I have a Acrobat XI Standard Version and a perfect license, by the way
    And I have got the code(Thanks, Karl Heinz Kremer) of merging two pdfs into one, but how can I convert them into pdf first?
    Thank you very much.
    If I can finish this, I would like to publish my code on this forum.

    Wow, that's great news. But how should I add the Action?
    1. There is no action named "Covert files into Pdf" in the tools panel....
    And if I write Javascript code to do this action. How should I write it?
    app.openDoc({
    cPath: "/c/temp/myPic.jpg",
    bUseConv: true
    These code only works when I specify the path of the file.
    If you know how, pls tell me..........

  • Save digitizer and DIO waveforms into one spreadsheet file

    I am using attached mixedsignalscopeusingtclk.vi for data acquisition and would like to acquire 4-channel of data. My PXI-1042 system has PXI-5122 and PXI-6552, and I am using 2 channels of digitizer and 2 channels of digital I/O. I am using Labview 2010 SP1. The VI generated 1-D array of cluster for analog waveform and 1-D array of digital waveform. How do I save both waveforms to one spreadsheet file?
    Solved!
    Go to Solution.
    Attachments:
    mixedsignalscopeusingtclk.vi ‏258 KB

    Hi,
    You can use a Write to Measurement File express VI. Note that this is the easiest way however not the most efficient way to write to a file.
    Since you have the fetch VIs inside for loops, your output is a 1D array of waveforms. You will need to obtain the waveform element and convert it into a type that the express VI can read. If you unbundle the waveform and grab only the data and connect it straight to the express VI, LabVIEW will automatically place a "Convert to Dynamic Data" block in line to make it compatible. Same applies when you connect the boolean array to the Signals input of the express VI. And if you connect more than one signal to this input, LabVIEW will automatically place a "Merge Signals" block.
    If you reproduce the below code, you should be able to write the two channels to the same measurement file. If you have more than one channel of each type, you can grab multiple elements using the same Index Array block and take them through the same process shown below.
    Hope this helps.
    Tarek B
    Applications Engineer
    National Instruments

  • Reading multiple text files and writing them to one text file

    Hi,
    I'm trying to read a number of text files and write them to a single master file. My program reads all the files but only writes the last one to the master file.
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    // Input/Output Classes
    import java.util.Scanner;
    import java.io.PrintWriter;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.FileNotFoundException;
    import javax.swing.JFrame;
    import javax.swing.JTextField;
    import javax.swing.JTextArea;
    import java.awt.GridLayout;
    public class Actor implements ActionListener
    public static String DataRoot = "I:\\JAVA\\UBP\\DAT
    public static JFrame SW = new JFrame();
    public static JTextField txtSPath;
    public static JTextArea txtTable;
    public void actionPerformed( ActionEvent e )
    String Command = e.getActionCommand();
    if (Command.equals("Process") )
    SetupWin();
    ProcessAll();
    public void SetupWin()
    SW.setTitle("void");
    SW.setSize(300,400);
    SW.setLayout(new GridLayout(6,1));
    txtSPath = new JTextField(40);    SW.add(txtSPath);
    txtTable = new JTextArea(10, 40); SW.add(txtTable);
    SW.setVisible(true);
    public void ProcessAll()
    Process("Dunstable","Finance");
    Process("Dunstable","Production");
    Process("Dunstable","Sales");
    public void Process(String Town, String Dept)
    String SPath = DataRoot + Town + "
    " + Dept + ".txt";
    String MPath = DataRoot + "masterFile" + ".txt";
    txtSPath.setText(SPath);
    String message = "Trying  " + SPath;
    System.out.println(message);
    String SlaveTable=message;
    try// if following fails an exception is thrown
    Scanner Slave = new Scanner(new FileInputStream(SPath)); // reads slave file
    PrintWriter outputStream = null;
    outputStream = new PrintWriter(new FileOutputStream(MPath));
    while ( Slave.hasNextLine() ) // reads text line by line
    //Read and output next record
    String PartRecord  = Slave.nextLine();
    String FullRecord = Town + " " + PartRecord;
    System.out.println(FullRecord);
    outputStream.println(FullRecord);
    Slave.close();
    outputStream.close();
    txtTable.setText(SlaveTable);
    //An Exception Error would be THROWN by above & CAUGHT below
    catch(FileNotFoundException e)
    message = "Could Not Find " + SPath;
    System.out.println(message);     //console
    txtSPath.setText(message);     //window
    catch(IOException e)
    System.out.println("Slave I/O Problem " + SPath);
    }Edited by: Ardour on Mar 4, 2008 1:53 PM

    I haven't looked closely, but my spidey sense tingles at this:
    new FileOutputStream(MPath)This will clobber (erase) the previous contents of the file. Open in append mode:
    new FileOutputStream(MPath, true)Of course, if the file exists before you run this code, you will end up append to the original contents. If that is not wanted, consider using File's delete method first.

  • IO - Read two image files and put them into one file

    Hi,
    i have 3 files in all. The two image files and one text file. I need to place the image in the first image file, followed by text in the text file and then the image in the second image file, into one file.
    Can anyone tell me how do i go about doing this ?
    i tried using fileinputstream and fileoutputstream, which works fine if all the 3 files have text but when the first and the third file have image, the code doesn't give any error but the result file displays only the image from the first file and nothing else.
    i am running short of time and need to do this really soon.
    if anyone has done anything like this. please let me know,
    thanx,
    poonam

    One approach would be to programmatcally create a single zip/jar file from the three input files. You can use the java.util.zip and java.util.jar packages for this purpose.
    The other apprach would be to create a single image by drawing images and text strings on a BufferedImage object.
    I think the first approach is preferable because you can easily extract the individual files from the zip/jar file

  • How do tou take multiple .pdf files and merge them into one?

    I havefour different .pdf files that I'm trying to merge into one file. How can I do this?

    File>Create PDF>From File.
    Please post followups in the Acrobat forum.
    Bob

  • In C#, how can I detect an opened PDF file and save it into disk?

    he WebBrowse componente in C# opened an PDF file inside. The file came from the Internet. So, the Adobe Acrobat Reader was called and opened the file correctly. I want to save this file to disk. How can I do it?
    The WebBRowse component does not have access to the PDF content.

    PDFs are not designed to be editable. Your engineers can make comments using Adobe Reader without any extra steps provided they use the highlight and sticky note comments. If you want them to have access to the full range of comment markup you will need to use Acrobat to apply extended rights to the file.

  • Is it a way to read Multiple Attachment and send all     - Mail Sender?

    Hi Friends ,
                          Can you please tell me how to send multiple Attachment in Mail Sender Adapter  ?
                     <b>      I am able to bring Multiple Attachement in Payload .But, Only one attachemen't data is passed to IS.</b>
                        First form the attachement i read as row bye row. Rowe like  <b>123 56 98 56 9</b>6 like that  , then in Integration Process i am using<b> XSLT Mapping</b> to get   my required format .
                         It is getting the data from the First Attachement   only. <b>But i am having Three attachement in payload  as MailAttachement-1  , MailAttachement-2 , MailAttachement-3 like that .</b>
                     <b>Can you please tell me how to pass to IS as one by one attachement  ?</b>
    Regards .,
    V.Rangarajan

    You want to separate each attachment in one single message?
    If yeah, change your xslt mapping to a multimapping, which generate the several messages.
    If not, in the receiver mail adapter, select "keep atachments" checkbox.
    Regards,
    Henrique.

  • How to merge serveral layout files into one output file?

    Hi there!
    For my report, I need to get a datasheet with all the customer data from the database and I have to attach a second document - so I've created 2 files (rtf templates) within the layout section.
    But how can I now run my report and these files are merged to one?
    Thank you!
    BR
    Lena

    Hi Lena,
    Have you tried to combine the RTF templates into one template?
    You could use subtemplates or define the contents/logic from your second template into the main template by creating the template like:
    <?template:Template2?>
    your second template logic here
    <?end Template2?>
    And within the main template, you call this <?call@inlines:Template2?>
    Hope this helps.

  • Reading the data from 2 files and writing it into the 3rd file?

    Hi,
    I am reading datas from 2 files Say,
    Example1.txt Example2.txt
    Ashok ^data1^data2^data3
    Babu ^data1^data2^data3
    Chenthil ^data1^data2^data3
    Danny ^data1^data2^data3
    I want those data's to be written in a 3rd file. Say,
    Example3.txt
    Ashok^ data1^data2^data3
    Babu^ data1^data2^data3
    Chenthil^ data1^data2^data3
    Danny^ data1^data2^data3
    So that i can tokenize it with a delimeter(^) and get the values. Here how to append the datas in this form in Example3.txt. Eventhough u use FileWriter with append "true" as a parameter how they will apend like the Example3.txt file? Please do provide an answer for this..Since this is very urgent to be delivered...Expecting postive response.
    Thanx,
    JavaCrazyLover

    import java.io.*;
    import java.util.*;
    public class en
    public static void main(String args[]) throws IOException     
    {int data,data1,offset,offset1;
              FileOutputStream fos1=new FileOutputStream("c:/example3.txt");
              FileInputStream fis=new FileInputStream("c:/example1.txt");
              FileInputStream fis1=new FileInputStream("c:/example2.txt");
    while((data=fis.read())!=-1) 
         fos1.write(data);
    while((data=fis1.read())!=-1) 
    fos1.write(data);
    fis.close();
    fis1.close();
    fos1.close();
    }first create those 3 files in c:

  • I NEED HELP ON COMBINING FILES INTO ONE PDF FILE

    HOW CAN I TAKE 6 FILES AND MAKE THEM INTO ONE PDF FILE?

    Hi GOLDENSOROR
    How to merge files into one PDF:
    Within Acrobat XI, select File > Create > Combine Files into a Single PDF.
    Click Add Files and select the files you want to add.
    Click, drag, and drop to reorder the files and pages. Double-click on a file to expand and rearrange individual pages. Press the Delete key to remove unwanted content.
    When finished arranging the files, click Combine Files.
    Select File > Save As > PDF.
    Name your PDF file and click Save.
    Please refer : http://www.adobe.com/products/acrobat/merge-pdf-files.html

  • How to tell script colse all files and save, but no untitle docs

    Hi everyone 
    I want to colse the open files and save them but no those files which have never been saved.
    I try this script but after ran, all the files are no be saved.
            var docs = app.documents;
                 for (var i = docs.length-1; i >= 0; i--) {
                     if(app.activeDocument.saved == false){
                           docs[i].close(SaveOptions.NO);
                     else if(docs[i].close(SaveOptions.YES));
    can someone tell me what's wrong with the script?
    thanks
    Regard
    Teetan

    var docs = app.documents;
    for (var i = docs.length-1; i >= 0; i--) {
        if (docs[i].saved == false) {
            docs[i].close(SaveOptions.NO);
        else {
            docs[i].close(SaveOptions.YES);

  • How to import 12 different PPro files into one Encore file to make DVD

    I'm trying to create a DVD with 12 different lessons on it.  I have created 12 Premiere Pro CS4 files (each is a slideshow lessons with narration) and I want to bring them all into one Encore file.  I can send one file to Encore via Dynamic Link - but when I open another PPro file and try to send it to the same Encore folder - it erases the file I put in there previously.  Maybe I'm going about this all wrong - I really don't know.  Please Help.

    Hi Stan,
    Thanks for the reply.
    Since I wanted to get the DVD finished asap - I jumped right into PPro CS4 without going through a learning process first.
    When I said "file" I meant one of the 12 or 13 different PPro projects that I saved to my Desktop...each lesson is different - so I made and saved each lesson separately and placed each of them in a different folder.  Each lesson only has one "sequence" (and I'm not sure what "sequence" means yet).
    These are basically PowerPoint lessons with narration - each lesson containing anywhere from 25-75 pictures or text slides.
    When I opened up one of the lessons in PPro and sent it via DL to Encore - that was fine.  It created an Encore file.  When I opened up the next PPro file and tried to DL to that same Encore file - it appeared to delete or do away with the first file I had sent there.  I could DL each of the 12 or 13 files - but only to its own Encore file.  I couldn't figure out how to get them all into the same Encore file.  But thanks to all the help on this forum - there are now 13 little videos that I can import into the same Encore file.  And that's amazing.
    Thanks for the encouraging words that this project might all fit on the same DVD (I was worred because the files add up to 107 minutes - and I the DVD holds 120 minutes (I think).  I was assuming that after I created a menu and added a picture for the background in the title page, etc., that it would all add up to too much information for one DVD).
    I'll let you know how the DVD turns out.
    Thank you very much.
    ph

Maybe you are looking for

  • How to put a value from a V$ view into a variable?

    in my procedure, i use the following codes: SELECT v.VALUE INTO l_cputime FROM V$SYSSTAT v WHERE v.NAME ='CPU used by session'; But it always reports "table or view does not exist". Is anything wrong with my codes? I can SELECT * FROM V$SYSSTAT; in t

  • Qt pro 7, full screen

    1 -I have QT Pro 7, but in trying to play some video trailers from qt list, i can't seem to make the Full Screen function work, as it is grayed out, even though I have full screen checked in my preferences. 2- also, should the full screen work while

  • Which table contains both company code and Plant

    HI, Which table contains both company code and Plant? which table contains Purchase requisition number and Company code? Please help me.

  • Empty Events

    Man, this is the crappiest upgrade Apple has ever put out. I've solved a lot of issues by rebuilding the library, fixing permissions, etc. Importing photos is still flakey, and I've had to rebuild the library many times just to get newly imported pho

  • How can I avoid running rmiregistry when launch an RMI based application

    Hi, How can I avoid running rmiregistry when launch an RMI based application? Will invocation of LocalRegistry.createRegistry() do? Thanks a lot! Regards, Justine