QUESTION ABOUT OUTPUTTING to a .txt File???

I want to output some input to 3 different Output and then read those in later... my problem is HOW DO I SET 3 DIFFERENT OUTPUT FILES THAT WILL BE ABLE TO GET THE INPUT EVERY TIME THE PROGRAM IS RUN....?? I DO NOT WANT THE USER TO BE ABLE TO NAME THOSE FILES... I WANT THOSE FILES TO BE OPENED OR CREATED WHEN THE PROGRAM IS RUN... RIGHT NOW I JUST HAVE ALL THE INPUT GOING TO THE SCREEN AND THAT'S NOT WHAT I WANT IT TO DO.. I WANT THE INPUT TO GO TO SEPARATE 3 FILES...
THANKS..
import java.io.*;
import java.lang.*;
import java.util.*;
public class Assemble
     public static void main(String args[]) throws IOException
          if (args.length > 0)
               System.out.println("");
               System.out.println("");
               System.out.println("");
               System.out.println("Assemble.class is a small program that");
               System.out.println("takes in as input a body of text and then");
               System.out.println("outputs the text in an order according to");
               System.out.println("the tags that are placed in the input.");
          else
               System.out.println("");
               System.out.flush();     
     BufferedReader in = new BufferedReader (new InputStreamReader( System.in ));
     String input;                
     while (true)
          input = in.readLine();
          if (input == null)                          
               break;
          else if ( (input.compareTo("<HEAD>")) == 0)
               do
                    input = in.readLine();
                    if ( (input.compareTo("</HEAD>")) != 0)
                         System.out.println(input);
               while ( (input.compareTo("</HEAD>")) != 0);
          else if ( (input.compareTo("<BODY>")) == 0)
               do
                    input = in.readLine();
                    if ( (input.compareTo("</BODY>")) != 0)
                         System.out.println(input);
               while ( (input.compareTo("</BODY>")) != 0);
          else if ( (input.compareTo("<FOOT>")) == 0)
               do
                    input = in.readLine();
                    if ( (input.compareTo("</FOOT>")) != 0)
                         System.out.println(input);
               while ( (input.compareTo("</FOOT>")) != 0);

To write to a file, use PrintStream. It has a method println() like System.out, except you can specify a File as the target, e.g.:
PrintStream ps=new PrintStream(new FileOutputStream(new File("myfile,.txt")));And to write a string to this file,
ps.println(String);

Similar Messages

  • Pulling output data from .txt file

    Hello, I am trying to have a program that allows a user to input shopping items into the program andhave that input go to a .txt file called shoppinglist, then after the user is finished, he/she can type no to stop entering items to the list and the program will then pull all the info entered to the .txt file and output it to the screen, creating a shooping list for the user. My problem is that I am not quite sure how to output the data from the .txt file to the screen. Here is my code.
    import java.io.*; // uses the java io library for the
    import java.util.*; // BufferedReader class
    public class week5
    public static void main(String [] args)
    PrintWriter inputItems = null;
    try
    inputItems = new PrintWriter(new FileOutputStream("shoppinglist.txt"));
    BufferedReader outputItems = null;
    String line = null;
    outputItems = new BufferedReader(new FileReader("shoppinglist.txt"));
    line = outputItems.readLine();
    outputItems.close();
    catch(FileNotFoundException e)
    System.out.println("File file.txt not found");
    System.out.println("or could not be opened.");
    catch(IOException e)
         System.out.println("Error reading from file file.txt.");
    System.out.println("This program will create a shopping list:");
    String keepGoing = "yes";
    String item = null;
    Scanner keyboard = new Scanner(System.in);
    for (int count = 1; count < 999 && keepGoing.equalsIgnoreCase("yes");count++)
    //ask for input, write it to a file
    System.out.print("Please enter item # " + count + ": ");
    System.out.print("");
    item = keyboard.nextLine();
    inputItems.println(count + " " + item);
    //ask if you want to keep going
    System.out.print("Do you wish to enter more items (yes/no): ");
    System.out.print("");
    keepGoing = keyboard.nextLine();
    System.out.println("Your shopping list contains: " + item);
    System.out.print("");
    inputItems.close();
    } All the above does is output the last item entered by the user, not the whole shopping list. Any help is greatly appreciated.

    nim_ramesh wrote:
    outputItems = new BufferedReader(new FileReader("shoppinglist.txt"));
    /* I think u want to print the text here so */
    line = outputItems.readLine(); // Replace this line with that while loop
    outputItems.close();
    He hasn't even read the user input at that point.
    OP, you need to sit down and think about the exact order you want to do things in, and rewrite your code in a logical straightforward manner. It looks like you just threw some code in hoping it would work, instead of coding deliberately. I'm not insulting you or anything, I know you're new to Java. I'm just trying to give you some advice. Look at your code, and ask yourself why the following line of code appears before you've even written anything to your file:
    line = outputItems.readLine();

  • Question about image slideshow (like mac file preview)

    Hello!Ι have a question about Adobe Edge.is it possible to create a photo slide show like mac's file preview? i mean smthg like this  https://www.youtube.com/watch?v=Q727LqDIZKM

    Hi, TasisGrafix2-
    Edge Animate doesn't support css3d natively, but you can use a third party library such as edgehero.js to make this work.
    http://www.edgehero.com/edgeherojs.html
    Good luck!
    -Elaine

  • Output data to txt file with full length of the field as in database

    Hi
    I have a problem related to output data I ntxt file on server
    for eg
    CONCATENATE
    wa_sagadr_outtab-seqno
    wa_sagadr_outtab-bpext
    wa_sagadr_outtab-name_org1
    wa_sagadr_outtab-country INTO wa_sagadr_text SEPARATED BY ''.
    the output is separated by single space irrespective of database length of the field , I want to display all the lenth of the database field eventhough the remaining space is blank ie if a field is 20 char in dtabase and only filled with 6 char the whole 20 char lenth should be displayed in the output file
    ouput as below
    required format ie space equvalent to as in database lenght
    000001       700006               C4 Plant AMD Export Sdn.Bhd.so on.
    my format as coming single space in between only
    000001 700006 C4 Plant AMD Export Sdn.Bhd
    pls suggest

    For this maintain an work area with the fields and structure same as the one which you want.
    ten populate the work are and write to file.
    concatenate will not work.
    e.g.
    DATA: begin of wa_sagadr_text,
              seqno like wa_sagadr_outtab-seqno,
              bpext like wa_sagadr_outtab-bpext,
              name_org1 like wa_sagadr_outtab-name_org1,
              country like wa_sagadr_outtab-country
              end of wa_sagadr_text,
    clear wa_sagadr_text.
    wa_sagadr_text-seqno = wa_sagadr_outtab-seqno.
    wa_sagadr_text-bpext= wa_sagadr_outtab-bpext.
    wa_sagadr_text-name_org1 = wa_sagadr_outtab-name_org1.
    wa_sagadr_text-country = wa_sagadr_outtab-country INTO wa_sagadr_text.
    transfer wa_sagadr_text to outputfile
    or write:/ your fields.

  • Question about output in Excel file

    Hi all experts
    I am trying to export a report to excel sheet. Got one problem, in the report there are codes of companies,  like "09", "08", but when exported by using WS_EXCEL FBS, i got the result "9", "8".
    That is> the Zero at the beginning is lost.
    How can i solve this problem easily?
    question2, how can i make the alignment better. (now some are left and some are right aligned)
    thank you !
    here is my coding
    CALL FUNCTION 'WS_EXCEL'
    EXPORTING
    FILENAME = file1
    SYNCHRON = ' '
    TABLES
    data = tab_comp
    EXCEPTIONS
    UNKNOWN_ERROR = 1
    OTHERS = 2
    file1 = 'c:\tmp\b.xls'
    Richard

    Hi,
    Conventionally it is not possible.
    If u can compromise to some extent its is possible. Check below code.
    U may have to give one check box in selection screen/Push button in output list.
    Based on the selection(In case of check box)/Click(In case of push button) u can download the data.
    U have loop through ur itab and modify that value by concatenating the special character '
    But it will also be downloaded to excel
    If u don't understand what i am saying just copy paste below code and see whether it will be fine.
    TYPES:BEGIN OF t_tab,
            empno(10) TYPE c,
          END OF t_tab.
    DATA: i_tab TYPE TABLE OF t_tab,
          wa_tab TYPE t_tab.
    CLEAR wa_tab.
    wa_tab-empno = '0075694'.
    APPEND wa_tab TO i_tab.
    CONCATENATE '''' wa_tab-empno INTO wa_tab-empno.
    MODIFY i_tab FROM wa_tab INDEX 1.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
    *   BIN_FILESIZE                  =
        filename                      = 'E:/test.xls'
    *   FILETYPE                      = 'ASC'
    *   APPEND                        = ' '
       WRITE_FIELD_SEPARATOR         = '#'
    *   HEADER                        = '00'
    *   TRUNC_TRAILING_BLANKS         = ' '
    *   WRITE_LF                      = 'X'
    *   COL_SELECT                    = ' '
    *   COL_SELECT_MASK               = ' '
    *   DAT_MODE                      = ' '
    * IMPORTING
    *   FILELENGTH                    =
      tables
        data_tab                      = i_tab
    EXCEPTIONS
       FILE_WRITE_ERROR              = 1
       NO_BATCH                      = 2
       GUI_REFUSE_FILETRANSFER       = 3
       INVALID_TYPE                  = 4
       NO_AUTHORITY                  = 5
       UNKNOWN_ERROR                 = 6
       HEADER_NOT_ALLOWED            = 7
       SEPARATOR_NOT_ALLOWED         = 8
       FILESIZE_NOT_ALLOWED          = 9
       HEADER_TOO_LONG               = 10
       DP_ERROR_CREATE               = 11
       DP_ERROR_SEND                 = 12
       DP_ERROR_WRITE                = 13
       UNKNOWN_DP_ERROR              = 14
       ACCESS_DENIED                 = 15
       DP_OUT_OF_MEMORY              = 16
       DISK_FULL                     = 17
       DP_TIMEOUT                    = 18
       FILE_NOT_FOUND                = 19
       DATAPROVIDER_EXCEPTION        = 20
       CONTROL_FLUSH_ERROR           = 21
       OTHERS                        = 22
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *Here output in excel is '0075694
    Thanks,
    Vinod.

  • Question about security issue when transferring files from PC

    I am in the process of looking at macs. I have always been a PC user and have been EXTREMELY impressed with the features of mac os x. Here's the question. I am probably sure that I have one or more viruses on my PC, what PC doesn't right? When I get my mac, I'm looking at the macbook, I see that I can transfer my files over from a PC to my new mac. The problem is. I want my files, but I'm leery about transferring a virus over also. I've heard about the security of macs and I am wondering if this is something I need to be worried about, or if it won't be a problem. Is there any steps I will need to take to ensure that I don't bring any viruses over with my files? Thanks for the help.
    Micah
    P.S. I am really starting to get sick and tired of Vista. I had to download VLC media player to play my Windows Media files because my Windows Media player on Vista WILL NOT play the files meant for that system. Arrrghhh Sorry for the vent.

    Be sure to scan all your files for viruses before moving them from the PC to the Mac. Although PC viruses should have no effect on a Mac, it's still possible to pass on a virus to a friend via email.
    Do You Need Anti-Virus Protection for Your Mac?
    According to Rich Mogull's article, Should Mac Users Run Antivirus Software?,
    "The reality is that today the Mac platform is relatively safe. There are hundreds of thousands of viruses and other malicious software programs floating around for Windows, but less than 200 are known to target the Mac, and many of those are aimed at versions of the Mac OS prior to Mac OS X (and thus have no effect on a modern Mac).
    It's not that Mac OS X is inherently more secure against viruses than current versions of Windows (although it was clearly more secure than Windows prior to XP SP2); the numerous vulnerabilities reported and patched in recent years are just as exploitable as their Windows equivalents. But most security experts agree that malicious software these days is driven by financial incentives, and it's far more profitable to target the most dominant platform."
    Mr. Mogull is a computer security expert. I recommend reading the entire article as it is quite informative.
    For additional information on viruses, trojans, and spyware visit The XLab FAQs and read the FAQs on viruses and spyware.

  • Question about the arrangement of music files within an album

    Hi all,
    I used to have a cheap MP3 player that worked just like a portable hard drive--drag-and-drop and organized into folders. I wanted the quality of an iPod, but with the organizational convenience of my old player, so I decided to change the tags of all my MP3s so that the album titles were the titles of all my old folders. This basically worked--whenever a folder was organized by tracks, I would open up the album, and there were all my files, properly arranged. The problem is when the "album" wasn't actually an album. I tried to change all the track numbers to "1" hoping that the iPod would just then arrange the files in alphabetical order by title. But it doesn't. I can't figure out what system it uses, but I figured you might know. Here are the questions:
    How does the 5G iPod determine the file order of tracks within an album when all the tracks have the same number?
    and
    If track number is the only thing it checks, is there any way for me to cheat and get the songs in alphabetical order without manually giving them all a track number?
    and on an unrelated note
    Anyone find the standard issue Apple earbuds to be too large? Any recommendations for slightly smaller earbuds that are at least at the same quality level? A few suggestions at different price levels would be appreciated. And I assume you already have a discussion for that, so a link would suffice.
    Thanks,
    John

    wow that is crazy i can't believe it is able to transpose audio loops (not midi) to different keys. especially stuff with more then one note playing at the same time like guitar strum.
    I know how to set up the key in logic and change it etc... i was really wondering how it is capable of doing this?? does it have some kind of melodyne or autotune built in to it?? i never heard of software being able to do this with pre recorded audio that plays more than one note at a time.
    Message was edited by: smurffy

  • Question about Illustrator CS5 making eps files in Mac OS 10.9.5

    Hello, I am using Illustrator CS5 on a Mac. I just updates to Mac OS 10.9.5
    Now when I save an simple Illustrator vector file as an eps, and place it in another program (such as Quark), I get code instead of the preview image. I tried older vector eps files, and they still work. i tried older Quark files, and they still work. I ruled out font problems. I tried importing new Illustrator ai file, same result. Any thoughts?

    Ask in the AI forum and include proper details about your export settings and your artwork. EPS parsing errors usually mean you chose an unsuitable combination of settings and/or the embedded previews are botched.
    Mylenium

  • Question about how javac finds referenced files.

    Hi
    I am just beginning to learn Java and have got some questions related to packages.
    I have two classes:
    MyClass.java
    package pkg;
    public class MyClass {
         public void prn(int x){
         System.out.println("Integer: "+x);
    Test.java
    import pkg.*;
    public class Test{
         public static void main(String[] args){
              MyClass obj=new MyClass();
              obj.prn(2);
    Directory structure
    /root/ jprog/MyClass.java
    /root/ jprog/Test.java
    Executing the following sequence of commands gives me:
    # ls
    MyClass.java Test.java
    # javac -d . MyClass.java
    # ls
    MyClass.java Test.java pkg/
    # cd pkg
    # ls
    MyClass.class -----compiles.
    # cd ..
    # javac Test.java
    Test.java:5: cannot access MyClass
    bad class file: ./MyClass.java
    file does not contain class MyClass
    Please remove or make sure it appears in the correct subdirectory of the classpath.
    MyClass obj=new MyClass();
    ^
    1 error
    Now after reading another thread on this forum I came to know that the compiler finds the
    MyClass.java in the wrong package. Using verbose option with javac shows this.
    So I move it to some other directory and everything works.
    # mv MyClass.java /root
    # ls
    Test.java pkg/
    # javac Test.java
    # java Test
    Integer: 2
    Now the question begins:
    Suppose we go back to how the files were arranged before I moved the MyClass.java file and
    I change the Test.java file by adding
    package pkg2;
    statement to it.
    Now everything compiles
    # ls
    MyClass.java Test.java ---I have deleted pkg and .class files
    # cat Test.java
    package pkg2;
    import pkg.*;
    public class Test{
    public static void main(String[] args){
    MyClass obj=new MyClass();
    obj.prn(2);
    # cat MyClass.java
    package pkg;
    public class MyClass {
    public void prn(int x){
    System.out.println("Integer: "+x);
    # javac -d . MyClass.java
    # javac -d . Test.java
    # ls
    MyClass.java Test.java pkg/ pkg2/
    # java pkg2.Test
    Integer: 2
    Why isn't the MyClass.java file causing any problems now?
    Using the verbose option with javac shows that the compiler goes straight for the pkg/MyClass.class.
    My readings of Core Java Horstmann tell me that the compiler always looks in the current directory. javac documentation also doesn't help. I know that the documentation recommends that the source file locations should match the package statements.
    I'm just trying to learn how javac finds referenced files.
    Any help??
    Thanks a load in advance.

    I know that the
    documentation recommends that the source file
    locations should match the package statements.This is not merely a recommendation, it is a requirement.
    Both javac and java find classes by traversing the classpath. The classpath should contain directories (or jar files) that correspond to the top of a (part of the) package hierarchy.
    For example, if the Java code for your class is in a file C:\src\pkg\MyClass.java, and MyClass.java declares the class to be in package pkg, the classpath should contain C:\src. Classes are then found by transforming their package declaration into a directory structure.
    Please note that javac works on files, not classes. Therefore it is necessary to specify the full filenames of the files you want to compile, even if you have specified the classpath. By default, javac will put compiled class files in the same location as their sources, so the classpath for the java command should also contain C:\src.
    The exception to the rule is when all classes for the program are in the default package (i.e., they do NOT contain a package statement). In that case, it is possible for javac (and I believe java as well) to find all classes in the current directory, so it will "just work".
    You can specify the classpath using the -cp parameter to both javac and java.
    Hope this helps.

  • Question about Output Preview

    I have a simple Illustrator file. The color values are C=0  M=0  Y=0  K=100
    When I run the file through Acrobat Professional's Output Preview to check the colors (I am looking to make sure there are no C, M or Y values), I get values for all four (CMYK).
    What gives here?
    Thanks

    May I suggest the setText() method?

  • Question about outputting DVCPRO HD to MiniDV Tape

    Hi There,
    I have a DVCPRO HD 720p24 project that I need to output onto MiniDV and I have a few questions. I am running FCS2 with the latest updates.
    1) I have an older sony camera (DCR-PC100) that I am outputting to. I would like to maintain my 16x9 aspect ratio. Provided I have selected anamorphic in my sequence settings, will my camera record a 720x480 image with the aspect ration intact? The camera is just a 4:3 consumer camera and it's a bit older. Just don't want to lose any quality.
    2) As it states in my signature, I'm working on a MBP so my only video output for coloring monitoring and that type of thing is through firewire and out of my camera. This doesn't work correctly from my native 720p24 sequence - it just sticks on one frame. I am already in the process of rebuilding a 720x480 NTSC sequence. Is this the only way I can output properly to a monitor?
    Thank you for reading my post

    Hi Spiff,
    Well I mainly assumed so because the most practicle way to screen a selection of films in one session at a short film festival is to compile a tape with all the films set to one ratio (usually 4:3)and I thought you were specifically asked to send a tape.
    However it would be wise indeed to call them.
    Some festivals use/compile miniDV or DVDs some others BetaSP or DigiBeta.
    With regard to transferring the film onto your PC 100 (Mighty PC 100! It was very popular 4-5 years ago amongst domestic camcorders, so popular that Sony put a PC 12O in the market with enahanced features) providing it works fine, then you will be fine to use it. Renting a deck or using a pro camera with miniDV capability will not improve the quality of your video.
    If your anamorphic version looks fine then lay that one on the tape.
    Try to use Panasonic pro master 63 minutes miniDV tapes. THey are white tapes.
    Good luck with the festival!
    G

  • Question about users in thr realm file.

    Hi,
    I started reading and practicing how to implement security issues on web applications. I understand that you can use either a the declarative approach or a programmatic approach using annotations. From what I understand all the users,groups and principals are managed by the application server and the roles are managed by the web.xml and sun-web.xml and can be used in the annotations.
    My question is as follows: If I am building a web site that requires a login process, it means that I have to save the information of the web site's users in a database or in some other means of data source. Do I have to declare all my web site users in the realm file also, Is there a way to map the users from the database to the users in the realm file?
    Thanks
    Shay

    Hi ,
    Has the IBR server been configured correctly to process contents that are to be converted to PDF ?
    If not , then please go through the following documentation : http://docs.oracle.com/cd/E23943_01/doc.1111/e10800/toc.htm
    This will list all the relevant steps / configurations which should be done to get conversions working .
    Thanks,
    Srinath

  • Question about reading a very big file into a buffer.

    Hi, everyone!
    I want to randomly load several characters from
    GB2312 charset to form a string.
    I have two questions:
    1. Where can I find the charset table file? I have used
    google for hours to search but failed to find GB2312 charset
    file out.
    2. I think the charset table file is very big and I doubted
    whether I can loaded it into a String or StringBuffer? Anyone
    have some solutions? How to load a very big file and randomly
    select several characters from it?
    Have I made myself understood?
    Thanks in advance,
    George

    The following can give the correspondence between GB2312 encoded byte arrays and characters (in hexadecimal integer expression).
    import java.nio.charset.*;
    import java.io.*;
    public class GBs{
    static String convert() throws java.io.UnsupportedEncodingException{
    StringBuffer buffer = new StringBuffer();
    String l_separator = System.getProperty("line.separator");
    Charset chset = Charset.forName("EUC_CN");// GB2312 is an alias of this encoding
    CharsetEncoder encoder = chset.newEncoder();
    int[] indices = new int[Character.MAX_VALUE+1];
    for(int j=0;j<indices.length;j++){
           indices[j]=0;
    for(int j=0;j<=Character.MAX_VALUE;j++){
        if(encoder.canEncode((char)j)) indices[j]=1;
    byte[] encoded;
    String data;
    for(int j=0;j<indices.length;j++) {
         if(indices[j]==1) {
                encoded =(Character.toString((char)j)).getBytes("EUC_CN");
                          for(int q=0;q<encoded.length;q++){
                          buffer.append(Byte.toString(encoded[q]));
                          buffer.append(" ");
                buffer.append(": 0x");buffer.append(Integer.toHexString(j));
                buffer.append(l_separator);
        return buffer.toString();
    //the following is for testing
    /*public static void main(String[] args) throws java.lang.Exception{
       String str = GBs.convert();
       System.out.println(str);*/

  • Workflow question about output module names

    Hi!
    I have been working on a massive project that requires hundreds of lower thirds.
    After finishing the actual design, my workflow has been like this:
    1. Save the project with a new file name
    2. Replace the old text with the new one
    3. Save
    Before doing that, I have added the render comp to the render queue. For the output module name and location, I have used a template that automatically gives the output module the project name. This has been great, since I have only needed to enter a new project name when "saving as" and the render module has automatically taken that name for the output file name. A great speed saver when you have to do tens of repeats.
    Now here comes the problem:
    After I had created all the necessary AE-projects, I was thinking of importing all the projects in to a single AE-project and then simply hitting render (since all the output modules were automatically added to the render queue when importing the projects) so that I could leave the computer rendering for a few days and do something else in the mean while. BUT when I import the projects, the name for the output module changes for every item in the render que to represent the current project. In other words I loose all my carefully planned names that I used to have in the output modules, because AE replaces them with the current project name.
    Is there any way of keeping the workflow I described without having to rename all the output modules after importing the projects in to a single render project? Is there some other way to get a good workflow on a project like this?
    Any tips will be highly appreciated!

    Should be perfectly doable to iterate through the appProjectIItem list. Off hand I'm not sure if it recognizes folders, though, so maybe it will be a bit more tricky to get what you want. IMO the safest way to avoid any confusion would be to have the script itself do the import. That way it can store the name of the imported file as a variable or some text file and reuse it when it renames the RQ items...
    Mylenium

  • Question about using third party jar files in Java Web Start Environment

    Hi everybody, I got a very strange problem and still can't figer out how to solve it. Can anyone help to overcome this problem?? Thanks in advance.
    Question: I wrote a simple java swing application to connect to Oracle database. I packed whole my classes and a third party jar file(classes12.jar) to a new jar file named "IRMASSvrMgntGUI.jar" and then use command 'jarsigner' to signed IRMASSvrMgntGUI.jar. There is no problem when I execute 'java -jar IRMASSvrMgntGUI.jar' in the command line. But when I execute this application via Web Start Environment, an "java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
    " error occured with the following detail log shown in Jave Web Start Console:
    =============================================================
    java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
         at DBConnection.getNewConnection(DBConnection.java:25)
         at IRMASSvrMgntGUI.actionPerformed(IRMASSvrMgntGUI.java:524)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    ==========================================================================
    contents of the manifest file I used to create this jar file are as follows
    ===================================
    Manifest-Version: 1.0
    Main-Class: IRMASSvrMgntGUI
    Class-Path: classes12.jar
    Created-By: 0.9a (itoh)
    ===================================
    and file structures in "IRMASSvrMgntGUI.jar" is
    ====================================
    META-INF/
    classes12.jar
    DBAuthenticateDialog.class
    DBConnection.class
    IRMASSvrMgntGUI.class
    ====================================

    If you directly include classes12.jar in IRMASSvrMgntGUI.jar, the classloader won't be able to find the classes inside classes12.jar. You should sign classes12.jar separately and include that in jnlp along with your application specific jar. When you're launching your app using "java -jar somefile.jar" then the classpath settings in manifest file are used, but that's not the case when you start using JWS since in this case the classpath is based only on the " <jar href=..." entries in jnlp.

Maybe you are looking for