Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Page 1 of 2 12 LastLast
Results 1 to 25 of 44

Thread: Jar Executable File

  1. #1
    Member
    Join Date
    Feb 2010
    Posts
    81
    Thanks
    18
    Thanked 1 Time in 1 Post

    Default Jar Executable File

    Hey, this isn't exactly a problem with the code, but I couldn't find a better place to put it:

    I use Eclipse, and I'm trying to export my program to an executable jar file which I can put on my desktop and click on to run. Eclipse has a built in export function which I use to easily export my non-applet programs to executable jar files. However it only allows you to export non-applet programs, and I have an applet program which I want to export. It doesn't give me the option to choose any program that is an applet when picking from the list of programs I want to export. Does anyone know what I should do?


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Jar Executable File

    Applet's are packaged slightly differently than apps. They don't need a manifest file, which is needed to be able to execute a jar file. But they do need all the classes.
    Is there some way to tell your IDE to put all the class files in a jar file?
    I don't know what "export" means.

    Perhaps if you ask the question on the IDE's users forum there'd be help.

  3. #3
    Member
    Join Date
    Feb 2010
    Posts
    81
    Thanks
    18
    Thanked 1 Time in 1 Post

    Default Re: Jar Executable File

    Quote Originally Posted by Norm View Post
    Applet's are packaged slightly differently than apps. They don't need a manifest file, \
    Strange, because I can export (meaning put the program into a file that's runnable by clicking on it...like an icon on a desktop) the program without the manifest file, and the error that comes up when I try to run it is:

    "Failed to load Main-Class manifest attribute from C:\Users\John\Desktop\AppletTest.jar"

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Jar Executable File

    without the manifest file, and the error
    That's what I was trying to say. An applet is not an application. You do NOT click on a jar file containing an applet to execute the applet. You need an html file with an <APPLET tag with code=<class> and archive=<jarfile> attributes to execute an applet in a browser.

  5. #5
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Re: Jar Executable File

    Also, how come stuff with println can't become a jar?

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Jar Executable File

    Most java programs can be put into and executed from a jar file, including those that use println().

  7. #7
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Re: Jar Executable File

    How? I couldn't get my perfectly working code to execute in Eclipse. Eclipse is very user-unfriendly.

  8. #8
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Jar Executable File

    I believe I've mentioned to you before that you should read the API doc and the tutorials. Its explained there.

  9. #9
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Re: Jar Executable File

    I got it to make it a jar file, but it won't open. Where would the println stuff go anyway? And what would I use to run programs with println.

  10. #10
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Jar Executable File

    Where would the println stuff go
    On the console.

    but it won't open
    Open a command prompt window, change to the directory with the jar file and enter:
    java -jar <thejarfilenamehere.jar>

    Copy and paste the results here.

  11. The Following User Says Thank You to Norm For This Useful Post:

    javapenguin (June 16th, 2010)

  12. #11
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Re: Jar Executable File

    "The syntax of the command is incorrect."

  13. #12
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Re: Jar Executable File

    I have the jar on my desktop, but I tried entering Desktop: and what you told me to, but it doesn't like it.

  14. #13
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Jar Executable File

    I'm sorry my crystal ball isn't working. I have no idea what you did or what the results were.
    If you don't copy and paste the contents of the screen here, there is no way anyone can help.

  15. #14
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Re: Jar Executable File

    It's on my desktop. How do I change the directory? Also, do I need the <>, because I'm including them and maybe they were there only as a reference and not to use when you showed them.

    I cannot copy and paste what the command prompt says. It doesn't let me. Very annoying.

  16. #15
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Jar Executable File

    copy and paste what the command prompt says
    yes you can.
    In the upper left of the window there is an icon. Press it.
    Choose Edit and then Select All
    Do it again and chose Copy.
    Here's what you could get:
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.

    D:\Norms\Norms Tools>

  17. The Following User Says Thank You to Norm For This Useful Post:

    javapenguin (June 17th, 2010)

  18. #16
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Re: Jar Executable File

    Microsoft Windows [Version 6.0.6001]
    Copyright (c) 2006 Microsoft Corporation.  All rights reserved.
     
    C:\Users\Paul>

    The file is at

    C:\Users\Paul\Desktop

    but how do I tell it that?

    Also, it should be

    java -jar <battleship game 2.jar>

    right?

  19. #17
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Jar Executable File

    Leave off the <> they are meta characters representing places where the user should insert his stuff.
    Its better if there are no spaces in your filename.

  20. The Following User Says Thank You to Norm For This Useful Post:

    javapenguin (June 17th, 2010)

  21. #18
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Re: Jar Executable File

    yes, but the file name is battleship game 2.jar.

  22. #19
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Re: Jar Executable File

    Microsoft Windows [Version 6.0.6001]
    Copyright (c) 2006 Microsoft Corporation. All rights reserved.

    C:\Users\Paul>java -jar battleship game 2.jar
    Unable to access jarfile battleship

    C:\Users\Paul>

  23. #20
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Jar Executable File

    This is really pathetic. Don't you know how to rename a file?
    Do you see what the java command read from what you typed?
    What did the space in the command line do?

  24. #21
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Re: Jar Executable File

    There's some infinite loops that musta resulted when I copied code from JGrasp to Eclipse. Or maybe it was there all along. Maybe it isn't making the jar because that glitch could crash the system.

  25. #22
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Jar Executable File

    Sounds like witchcraft. Or a jinx. Have you made anyone angry?

    Now is the time for some println() debugging. Add enought println() statements to your code so you can see where it is executing and where its stuck.

  26. #23
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Re: Jar Executable File

    How do I deal with the infinite loop in all of my try and catch blocks?

          //********************************************************
          //* Program #2 and 6                                     *
          //* Author: Paul Adcock                                  *
          //* Last Modified 4/21/10                                *
          //* Battleship program                                   *
          //********************************************************
          // This program is supposed to prompt the user to enter an x and y value and 
          // also to enter a -1 for either if they want to quit and see where the battleship
          // is. It returns a M for miss, for a hit, "You sunk my battleship!" and a A and 
          // "already shot here, try again." message if already shot there.  It also should
          // stop asking the user for info once either the user enters -1 or if the user hits
          // the battleship.  It also returns the number of shots fired.  It has fixed the old
          // problem with it setting it to miss again the third time if it was already shot there     
          // twice and the shot counter error was fixed.  This program checks for exceptions for both
          // n, the size of the grid, and the x and y values.  It won't let the grid be smaller than 1
          // or larger than 50.  It also will not abort if the user enters a non-integer value.
          // What it does is tell them to enter an integer that is at least 1 or less than 51
          // till they get it right.  Also, the program now exits when the battleship is hit.
     
       import java.awt.*;
       import java.awt.event.*;
       import javax.swing.*;
       import javax.swing.JFrame;
       import javax.swing.JDialog;
       import javax.swing.JPanel;
       import java.awt.Graphics;
       import javax.swing.ImageIcon;
       import java.util.*;
       import java.io.*;
       import java.awt.Component;
     
        public class battleshipGame7
       { // beginning of program
     
     
          static Scanner console = new Scanner(System.in);
     
     
           public static void main( String[] args) 
          { // beginning of main method
     
          // TODO Auto-generated method stub
     
             JFrame frame = new JFrame();
             int x = 0;  // x value inputted by user
             int y = 0;  // y value inputted by user
             int n = 1;  // size of array inputted by user
     
          	        // and if it is in bounds
             boolean enteredNegativeOne;
             boolean isHit;
             boolean thisWorks;
             float gamesPlayed = 0;
             float percentWon = 0;
             float gamesWon = 0;
    			float gamesLost = 0;
             thisWorks = false;
             boolean endGame = false;
             while (endGame == false)
             {
                System.out.println("Please enter an positive integer no smaller than"
                                + " one and no greater than 50. ");
                System.out.println("An integer is not a decimal like 1.234 . ");
                System.out.println("When using the program, the first row and first "+
                                "column, start at 0, so enter 0,0 for column one"
                   				+ " row one. ");
                System.out.println("Don't have the comma. Enter 0 for x and 0 for y "
                               + "to get column one row one. ");
     
                System.out.println();
     
                thisWorks = false;
     
                while (thisWorks == false)
                { // beginning of while
                   try
                   { // beginning of try
                      System.out.println ("Enter the size of the grid. ");
                      n = console.nextInt();
                      if (n < 1) // combines negative array and out of bounds exceptions
                         throw new MyOutOfBoundsException() ;  // needs to be thrown to be able to catch MyOutOfBoundsException
                      if (n > 50) // exception that won't let n be greater than 50, though the computer can handle about 5700.
                         throw new MyTooBigException(); // needs to be thrown to be able to catch MyTooBigException
     
                      thisWorks = true; // will set thisWorks to true no exceptions are thrown.  
     
                   } // end of try
                       catch ( MyOutOfBoundsException moobe)
                      { // beginning of catch
     
                         System.out.println("Enter a value that is an integer and" 
                            + " greater than 0" +"\n " + moobe.toString() );
     
     
                      } // end of catch
     
                       catch ( MyTooBigException mtbe)
                      { // beginning of catch
     
                         System.out.println("Enter a value that is an integer and" 
                            + " no greater than 50 " +"\n " + mtbe.toString() );
     
     
                      } // end of catch
     
                       catch (InputMismatchException imeRef )
                      { // beginning of catch
                         System.out.println(   "Enter a value"
                            +" that is an integer, i.e.  not a decimal "  + 
                            "\n" + imeRef.toString());
     
                      } // end of catch
                } // end of while
     
                char[][]arraySize = new char[n][n]; // creates an array of n by n
     
     
                System.out.println("Enter a x and a y" );
                System.out.println("Enter a -1 to show battleship and exit program. ");
                int shots; // declares shots
                shots = 0;	// sets shots initially to 0
                enteredNegativeOne = false; // sets enteredNegative initially to false
                isHit = false; // sets isHit  initially to false;
                boolean thisWorks2; //boolean variable to check if x coordinate is an integer within specified range
                boolean thisWorks3;// boolean variable to check if y coordinate is an integer within specified range
     
                placeBattleship(arraySize);
                while(enteredNegativeOne == false && isHit == false) // executes while user continues to input x and y values.
                { // beginning of while loop
                   thisWorks2 = false; // keeps resetting thisWorks2 to false so it won't
                                    // only go through the catch once and then be true 
                						  // and cause a mysterious infinite loop
                   thisWorks3 = false; // keeps resetting thisWorks3 to false so it won't
                                    // only go through the catch once and then be true 
                						  // and cause a mysterious infinite loop
     
                // while loop will keep asking for x values till an integer within the given
                // bounds is entered.  After getting the y coordinate, if it isn't a hit, thisWorks2
                // will be set to false again after 1 is added to shots.  It returns a message telling the
                // user to enter an integer if they don't enter the right type of value and also the type of exception.
     
                   while (thisWorks2 == false)
                   { // beginning of while loop
                      try 
                      { // beginning of try
                         System.out.println("Enter an x value. ");
                         x = console.nextInt(); 
                         thisWorks2 = true;
                      } // end of try
                          catch (InputMismatchException imeRef )
                         { // beginning of catch
                            System.out.println(   "Enter a value"
                               +" that is an integer, i.e.  not a decimal "  + 
                               "\n" + imeRef.toString());
     
     
                         } // end of catch
                   } // end of while
     
                	// while loop will keep asking for y values till an integer within the given
                // bounds is entered. If it isn't a hit, thisWorks3 will be set to false again after 1 is added to shots. 
                // It returns a message telling the user to enter an integer if they don't enter the right type of value and 
                // also telling them the type of exception.
     
     
                   while(thisWorks3 == false)
                   { // beginning of while
                      try 
                      { // beginning of try
                         System.out.println("Enter a y value. ");
                         y = console.nextInt();   
                         thisWorks3 = true;
                      } // end of try
                          catch (InputMismatchException imeRef )
                         { // beginning of catch
                            System.out.println(   "Enter a value"
                               +" that is an integer, i.e.  not a decimal "  + 
                               "\n" + imeRef.toString());
     
     
                         } // end of catch
                   } // end of while
                   shots = shots + 1;
     
                   if (x == -1 || y == -1) // if user enters a -1 for either x or y, ends program
                                 // it also shows location of battleship and displays 
                   				 // number of shots fired.  
                   { // beginning of if statement
                      enteredNegativeOne = true;
                      System.out.println("Game over");
                      System.out.println("Shots: " + shots);
                      printArray(arraySize);
                      gamesPlayed = gamesPlayed + 1;
                      percentWon = (gamesWon/gamesPlayed) * 100;
    						gamesLost = gamesPlayed - gamesWon;
     
     
                      System.out.printf( "Games Played: " + "%.0f" , gamesPlayed);
                      System.out.println();
                      System.out.printf("Games Won: " + "%.0f",  gamesWon);
                      System.out.println();
    						System.out.printf("Games Lost: " + "%.0f", gamesLost);
    						System.out.println();
                      System.out.printf("Percent Won: " + "%.0f",  percentWon);
                      System.out.println();
     
                      Object[] options2 = {"No",
                            "Yes"};
                      int m = JOptionPane.showOptionDialog(frame,
                         "Play again?",
                         "Do you want to play again?",
                         JOptionPane.YES_NO_OPTION,
                         JOptionPane.QUESTION_MESSAGE,
                         null,        options2,     options2[0]); 
                   // creates Yes and Continue playing butons buttons.
                   // if Yee button is clicked, sends output "You quit." as heading and sends a message "Adiós!" and exits when 
                   // user clicks OK on dialog box
                      if (m == JOptionPane.YES_OPTION) 
                      { // beginning of if
                         endGame = true;
                         isHit = false;
                         System.exit(0);
                      } // end of if
                      // changes the string the standard dialog box for the No button but still uses its predefined return value.  If user clicks on 
                      // Continue Playing, sends title "Ok don't quit then." and the message "Whatever." and takes the user back to the grid.
                      else if ( m == JOptionPane.NO_OPTION)
                      { // beginning of else if
                         endGame = false;
                         isHit = true;
                      } // end of else if
     
     
     
                   } // end of if statement
     
                   else if ((x < 0 || x > arraySize.length -1)|| 
                   (y < 0 || y > arraySize.length -1))           // this loop executes if user enters value of out bounds
                   { // beginning of else if statement                 // and not equal to -1.
                      System.out.println("Enter a valid x and y value ");
     
                   } //end of else if statement
     
     
                   else // executes if user is in bounds.  Adds up shots and updates array.
     
                   { // beginning of else statement
                      if (Fire(x, y, shots, arraySize) == 'H')
                      { // beginning of if statement
                         gamesPlayed = gamesPlayed + 1;
                         gamesWon = gamesWon + 1;
                         percentWon = (gamesWon/gamesPlayed) * 100;
    							gamesLost = gamesPlayed - gamesWon;
     
                         System.out.printf( "Games Played: " + "%.0f" , gamesPlayed);
                         System.out.println();
                         System.out.printf("Games Won: " + "%.0f",  gamesWon);
                         System.out.println();
    							System.out.printf("Games Lost: " + "%.0f", gamesLost);
    							System.out.println();
                         System.out.printf("Percent Won: " + "%.0f",  percentWon);
                         System.out.println();
     
                         isHit = true;
                         printArray(arraySize);
                         Object[] options = {"No",
                               "Yes"};
                         int r = JOptionPane.showOptionDialog(frame,
                            "Play again?",
                            "Do you want to play again?",
                            JOptionPane.YES_NO_OPTION,
                            JOptionPane.QUESTION_MESSAGE,
                            null,        options,     options[0]); 
                      // creates Yes and Continue playing butons buttons.
                      // if Yee button is clicked, sends output "You quit." as heading and sends a message "Adiós!" and exits when 
                      // user clicks OK on dialog box
                         if (r == JOptionPane.YES_OPTION) 
                         { // beginning of if
                            endGame = true;
                            isHit = true;
                            System.exit(0);
                         } // end of if
                         // changes the string the standard dialog box for the No button but still uses its predefined return value.  If user clicks on 
                         // Continue Playing, sends title "Ok don't quit then." and the message "Whatever." and takes the user back to the grid.
                         else if (r == JOptionPane.NO_OPTION)
                         { // beginning of else if
                            endGame = false;
     
                         } // end of else if
     
                      } // end of if statement
                      else
                         isHit = false;
     
                      if (isHit == false)
                         System.out.println("Enter a x and y value. ");
                   } // end of else statement
     
                }//ends while loop
     
             } // end of while
     
          }// ends main method
     
       // the method placeBattleship, places the battleship by randomly choosing an 
       // x and y coordinate and storing a 'B' there.  The 'B' is not displayed to 
       // the user unless the user enters -1.  It takes the array as a parameter and 
       // should return nothing.  This method sets the location of the battleship.
           private static void placeBattleship(char arraySize[][])
          {
             int valueOne, valueTwo;
             valueOne= (int) ( 1 + (Math.random() * arraySize.length - 1 )); 
             valueTwo = (int) ( 1 + (Math.random() * arraySize.length - 1));
             arraySize[valueOne][valueTwo] =  'B';
          } //end of method placeBattleship
     
       //This is method Fire.  It returns a char.  Either a M for miss, a H for hit
       // or an A for already shot there.  It takes the array and the user's x and y
       // values as parameters.  
           public static char Fire( int x, int y, int shots, 
           char arraySize[][])
          { // beginning of method Fire
     
     
          	// IntClass intShotObj = new IntClass(0);  this would be necessary if I needed to use IntClass
          	// to somehow get the value of shots for Miss and Already Shot.
            // IntClass intShotObj2 = new IntClass();
             if (arraySize[x][y] == 'B')  // if battleship is hit return H and end game
             { // beginning of if statement
                arraySize[x][y] = 'H';
                System.out.println("You've sunk my battleship! ");
                System.out.println("Game over! ");
                System.out.println("Shots: " + shots);
                System.out.println();
     
                return ('H');
     
             } // end of if statement
     
             else if (arraySize[x][y] == 'M')  // this is else if 
                                              // because it could also 
             											// be just a miss.
     
             { // beginning of else if statement
     
                System.out.println("Previously selected, try again ");
                arraySize[x][y] = 'A';
                return ('A');
             } // end of else if statement
     
             else if (arraySize[x][y] == 'A') // makes sure it won't set an A to an M again.
             { // beginning of else if  
                System.out.println("Previously selected, try again ");
                arraySize[x][y] = 'A';
              //   intShotObj.addToNum(1);  This would be used to add one to get
              // intShotObj to get from its original value and keep adding one to it till
              // I hit the battleship.  I still don't know how to do that, but I found a better way.
                return ('A');
             } // end of else if
             else
     
             { // beginning of else statement
                arraySize[x][y] = 'M'; 
                System.out.println("Miss"); // this is an else statement because if it 
                return ('M');          // isn't already shot and it isn't a hit
             	                       // then it must be a miss.  
             } // end of else statement
          } // end of method fire
     
       	 /*this method makes it easier than having to just use a for loop every time to
             get it to keep printing the array.  This is method printArray.  It should just
             have a nested for loop.  It takes the array as a parameter. */ 
           public static  void printArray(char [][]arraySize)
          { 	// beginning of method printArray	
             int x;
             int y; 
             for (x = 0; x < arraySize.length; x++)
             { // beginning of for loop
                for ( y = 0; y < arraySize[x].length; y++)
                   System.out.print( arraySize[x][y]);
                System.out.println();
             } // end of for loop
          } //end of method printArray
     
       } // end program

  27. #24
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Jar Executable File

    First you need to find it.
    Then figure out why it isn't ending.

    Do you mean you have intentionally written infinite loops in your code? Why?
    You always should have a way to exit a loop.

  28. The Following User Says Thank You to Norm For This Useful Post:

    javapenguin (June 17th, 2010)

  29. #25
    Banned
    Join Date
    May 2010
    Location
    North Central Illinois
    Posts
    1,631
    My Mood
    Sleepy
    Thanks
    390
    Thanked 112 Times in 110 Posts

    Default Re: Jar Executable File

    Not on purpose. However, it might be because of all the while loops. I've had evil loops before, but I just put in a break and it went away, but this time it doesn't go where I want it to, and a continue isn't an option either.

    Will it even let it make a jar if there is a nasty error like that, actually about six or seven, that could overwhelm the system?

    It does recognize errors with Eclipse on those exceptions.

Page 1 of 2 12 LastLast

Similar Threads

  1. [SOLVED] Executable .jar file isn’t launched after being double-clicked
    By voltaire in forum Java Theory & Questions
    Replies: 6
    Last Post: May 18th, 2010, 03:37 PM
  2. Making executable JAR more "executable"
    By ni4ni in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 1st, 2010, 01:19 PM
  3. How to change File Type of a File Using java
    By akash169 in forum File I/O & Other I/O Streams
    Replies: 8
    Last Post: March 31st, 2010, 02:58 AM
  4. Inputing file (.txt) and finding the highest number in the file
    By alf in forum What's Wrong With My Code?
    Replies: 3
    Last Post: March 15th, 2010, 09:11 AM
  5. Replies: 8
    Last Post: January 6th, 2010, 09:59 AM