Designing Java Apps for Users Without a JRE Installed Yet

Hi, sorry if this post is in the wrong place, but here goes:
I'm designing a Swing Java application for a client. My client intends to distribute/sell this application.
I'm concerned because, chances are that at least one of the people he distributes this application to will not have the JRE installed and will thus be unable to run the application.
Can anyone give me some suggestions on ways I can make my application more convenient for users without the JRE currently installed? Even some kind of error message that would direct the user to the JRE download site would be okay.
kwikness
Edited by: kwikness on Dec 2, 2009 5:56 PM

Use NSIS and package your application with JRE.
Add your jar files to lib/ext of the JRE package.
NSIS can create a short cut (desktop/start menu) to launch java class/jar file
I would not use webstart unless you are sure that clients will have access to the internet, the bandwidth is not an issue and installing the new JRE is allowed (permissions, SLA, etc.)
Best regards.

Similar Messages

  • Need help with Java app for user input 5 numbers, remove dups, etc.

    I'm new to Java (only a few weeks under my belt) and struggling with an application. The project is to write an app that inputs 5 numbers between 10 and 100, not allowing duplicates, and displaying each correct number entered, using the smallest possible array to solve the problem. Output example:
    Please enter a number: 45
    Number stored.
    45
    Please enter a number: 54
    Number stored.
    45 54
    Please enter a number: 33
    Number stored.
    45 54 33
    etc.
    I've been working on this project for days, re-read the book chapter multiple times (unfortunately, the book doesn't have this type of problem as an example to steer you in the relatively general direction) and am proud that I've gotten this far. My problems are 1) I can only get one item number to input rather than a running list of the 5 values, 2) I can't figure out how to check for duplicate numbers. Any help is appreciated.
    My code is as follows:
    import java.util.Scanner; // program uses class Scanner
    public class Array
         public static void main( String args[] )
          // create Scanner to obtain input from command window
              Scanner input = new Scanner( System.in);
          // declare variables
             int array[] = new int[ 5 ]; // declare array named array
             int inputNumbers = 0; // numbers entered
          while( inputNumbers < array.length )
              // prompt for user to input a number
                System.out.print( "Please enter a number: " );
                      int numberInput = input.nextInt();
              // validate the input
                 if (numberInput >=10 && numberInput <=100)
                       System.out.println("Number stored.");
                     else
                       System.out.println("Invalid number.  Please enter a number within range.");
              // checks to see if this number already exists
                    boolean number = false;
              // display array values
              for ( int counter = 0; counter < array.length; counter++ )
                 array[ counter ] = numberInput;
              // display array values
                 System.out.printf( "%d\n", array[ inputNumbers ] );
                   // increment number of entered numbers
                inputNumbers++;
    } // end close Array

    Yikes, there is a much better way to go about this that is probably within what you have already learned, but since you are a student and this is how you started, let's just concentrate on fixing what you got.
    First, as already noted by another poster, your formatting is really bad. Formatting is really important because it makes the code much more readable for you and anyone who comes along to help you or use your code. And I second that posters comment that brackets should always be used, especially for beginner programmers. Unfortunately beginner programmers often get stuck thinking that less lines of code equals better program, this is not true; even though better programmers often use far less lines of code.
                             // validate the input
       if (numberInput >=10 && numberInput <=100)
              System.out.println("Number stored.");
      else
                   System.out.println("Invalid number.  Please enter a number within range."); Note the above as you have it.
                         // validate the input
                         if (numberInput >=10 && numberInput <=100)
                              System.out.println("Number stored.");
                         else
                              System.out.println("Invalid number.  Please enter a number within range."); Note how much more readable just correct indentation makes.
                         // validate the input
                         if (numberInput >=10 && numberInput <=100) {
                              System.out.println("Number stored.");
                         else {
                              System.out.println("Invalid number.  Please enter a number within range.");
                         } Note how it should be coded for a beginner coder.
    Now that it is readable, exam your code and think about what you are doing here. Do you really want to print "Number Stored" before you checked to ensure it is not a dupe? That could lead to some really confused and frustrated users, and since the main user of your program will be your teacher, that could be unhealthy for your GPA.
    Since I am not here to do your homework for you, I will just give you some advice, you only need one if statement to do this correctly, you must drop the else and fix the if. I tell you this, because as a former educator i know the first thing running through beginners minds in this situation is to just make the if statement empty, but this is a big no no and even if you do trick it into working your teacher will not be fooled nor impressed and again your GPA will suffer.
    As for the rest, you do need a for loop inside your while loop, but not where or how you have it. Inside the while loop the for loop should be used for checking for dupes, not for overwriting every entry in the array as you currently have it set up to do. And certainly not for printing every element of the array each time a new element is added as your comments lead me to suspect you were trying to do, that would get real annoying really fast again resulting in abuse of your GPA. Printing the array should be in its own for loop after the while loop, or even better in its own method.
    As for how to check for dupes, well, you obviously at least somewhat understand loops and if statements, thus you have all the tools needed, so where is the problem?
    JSG

  • Install Java plugin for IE without manual update or install

    Hi,
    I have a client machine with JRE installed. Now i see the problem that java plugin is not installed in IE. Is there anyway i could manually register java plugin for IE without using installer or java update ? would it be possible to use command line argument or such alternative please let me know.

    I would like to find a way to allow a user without
    administrative rights to install the Java-Plugin for
    using Java-Applets. As far as I understood, the
    plugin can be installed in a silent way withou
    registry modifiactions. Is this working for users
    without admin rights?Could anyone please explain, why it is so difficult for Sun to create an installation package for user without admin rights? The whole "GetJava"-program doesn't make any sense for ordinary users if they get the JRE downloaded seamlessly and then the installation fails due to missing admin rights. This way Java would never succeed on the desktop.
    Andr�

  • Can I create a java app for my palm zire 71 that uses floating point calc

    I am an eclipse user that is looking at studio creator 2 and was wondering if I could create a java app for my palm zire 71. I have read alot about no floating point support in midp... is that true for java on the palm? If so, how does one calculate with floats and doubles to do sqrt functions etc?
    Thanks in advance for your time
    Dean-O

    I looked at netbeans and it does not support floating points in midlets. Not good for palm app if no floating point ability. J2ME supports floating point but in netbeans... is uses midlets and there are no floating points. Now what does one do? Not that dreaded C++
    THanks in advance
    Dean-O

  • Alternative for HLS HTML streaming trough JW player for users without Flash?

    Hello!
    I am using HLS TS Streaming trough JW player for the largest group of users that have flash for streaming video's.
    Is there an alternative for users without flash?
    Best regards

    I will just summarize myself...
    Adobe media server supports rtmp and HTTP(HLS and HDS)..
    for rtmp streaming the swf running in a Flash player is the standard interface...that flash player may be an activeX control/plugin in your browser or may be a standalone player downloaded from adobe website...Chrome web browser however users a slightly different( PPAPI based) flash player(which is different from Adobe flash player) and is developed and maintained by google.
    For HLS and HDS, you can either use special players(i.e swfs)(Flash based) developed Adobe by Adobe e.g Strobe meida player(Open Source Media Framework Blog | Adobe’s free and open source media playback system) or you can use players like jwplayer(Video Player Download | JW Player Online Video Player)... Incidentally jwplayer has added simultaneous support for playing rtmp streams too(which is reallly good), but i do not have much insight into workings of jwplayer...

  • Do open fonts work in Word for users without the font on their machine?

    Our team creates documents in Word and we would like to use an Open Font (Adobe Jenson Pro)--there is quite a bit of internal file-sharing and I don't want the font to switch to something ugly when it is reviewed in Word (because Word users do not have this font installed by default). I know that there is some cross-compatibility. We would like to apply this font to the template and don't want to introduce a font issue. anyone with experience know how if this works with the Open Font in word documents for users without it installed? 
    thanks!!
    Anne

    annecroft wrote:
    Thanks for your expertise. You are a little snarky, aren't you?
    The coffee hasn't kicked in yet.
    Open TYPE fonts are Adobe fonts
    Nope. OTF's are made by many different companies. Adobe DOES have many of them yes but they don't rule the market on them.

  • How to download apps for iphone without itunes ?

    Is it possible to download apps for iphone without using itunes ?
    I tried to download from a place where itunes can't be installed in a series of lan connected computers. Also plenty of internet content can be downloaded for free

    Koushik Velampalli wrote:
    Is it possible to download apps for iphone without using itunes ?
    Yes, on the iDevice via the App store.

  • Adding Adobe Content Viewer to Desktop for users without InDesign 5, 5.5, 6

    We are starting to sell digital advertising and it would be nice if Adobe Content Viewer could be downloaded to the desktop for these advertisers who do not have tablet devices nor have InDesign 5, 5.5 and 6 on their machine. They are wanting to proof their ads in an interactive format on their desktop.

    I also would like to see a Content Viewer for people without InDesign.
    Better yet would be the ability to embed a viewer into a Folio, like a flash with a projector.

  • The Creative Cloud App for desktop can't be installed on my Macbook pro

    I've have bought the Photoshop + Lightroom applications via the creative cloud. I can download the installion file for Crative Cloud app for desktop and I can start the installation process but it is interrupted halfway through with a message saying "The following problem have encountered: Creative Cloud for desktop could not be installed". There are no hints for any solution. I've tried to use Opera instead of Safari but the same thing happens. Is there anyone that knows what the solution for this problem is? Sincerely Lars

    Thank you! You solved the problem!! /Lars
    3 jan 2014 kl. 22:34 skrev AMreso <[email protected]>:
    Re: The Creative Cloud App for desktop can't be installed on my Macbook pro
    created by AMreso in Creative Cloud Download & Install - View the full discussion
    Rename OOBE folder with OOBEOLD ( Mac HD/Library/Application Support/Adobe/OOBE folder )
    Run the Adobe cleaner ( http://helpx.adobe.com/content/dam/help/en/support/AdobeCreativeCloudC leanerTool.dmg )
    Remove Adobe application Manager/Adobe creative cloud .
    Restart the computer and redownload Adobe Creative cloud and install it.
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5978280#5978280
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5978280#5978280
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5978280#5978280. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Creative Cloud Download & Install at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How do I run java app when user calls a number?

    Hi all
    Is it possible to run a java app everytime a user calls a number? It has to run before the call is placed. The app will do its job and then place the call using PlatformRequest().
    Thanks
    hsogra

    Hi,
    I believe in general this is not possible.
    J2ME was designed in such a way that J2ME apps don't have permission to interrupt the normal functions of the phone (making/receiving calls, sending/receiving SMS).

  • MDX Query much slower for users without administrativ rights

    We have a SQL 2012 SP1 with CU9 installed and run a MDX query against a Cube. The Problem is that the query runs very slow for a user without administrativ persmission on the cube. With admin rights it takes 3 seconds and without 30 seconds. I can't find
    any error in the query so maybe someone can pin point me in the right direction.The Role has all reading information it needs.
    This is the Query:
    SELECT NON EMPTY { [Measures].[Blocked Consignment], [Measures].[Consignment in Inspection],
    [Measures].[Restricted Consignment], [Measures].[Unrestricted Consignment] } ON COLUMNS, NON EMPTY
    { ([Date].[Date].[Date].ALLMEMBERS * [Materials].[Part Number].[Part Number].ALLMEMBERS *
    [Materials].[Key].[Key].ALLMEMBERS * [Sold To].[Name].[Name].ALLMEMBERS *
    [Stock Information].[Plant - Storage Location].[Storage Location].ALLMEMBERS * [Non Zero].[Zero Stock Status].[Zero Stock Status].ALLMEMBERS ) }
    ON ROWS
    FROM ( SELECT ( STRTOSET("[Non Zero].[Zero Stock Status].&[No]", CONSTRAINED) )
    ON COLUMNS FROM ( SELECT ( STRTOSET("[Stock Information].[Storage Location].&[1090]", CONSTRAINED) )
    ON COLUMNS FROM ( SELECT ( STRTOSET("[Stock Information].[Plant].&[1090]", CONSTRAINED) )
    ON COLUMNS FROM ( SELECT ( STRTOSET("[Sold To].[Name].[All]", CONSTRAINED) )
    ON COLUMNS FROM [Stock Snapshot]))))
    WHERE ( IIF( STRTOSET("[Stock Information].[Plant].&[1090]", CONSTRAINED).Count = 1, STRTOSET("[Stock Information].[Plant].&[1090]", CONSTRAINED), [Stock Information].[Plant].currentmember ),
    IIF( STRTOSET("[Stock Information].[Storage Location].&[1090]", CONSTRAINED).Count = 1, STRTOSET("[Stock Information].[Storage Location].&[1090]", CONSTRAINED), [Stock Information].[Storage Location].currentmember ) )
    Any one came across this is or is it a bug?

    Can you check which build of SSAS you've got installed? It looks similar to this bug:
    http://support.microsoft.com/kb/2905298/en-us
    Apart from that, if you have used cell security in your role, it would be expected that query performance would be slower for users of that role.
    Chris
    Check out my MS BI blog I also do
    SSAS, PowerPivot, MDX and DAX consultancy
    and run public SQL Server and BI training courses in the UK

  • Deploying Java Apps for All patforms?

    Ok, I have my appilcation running in windows by a simple cmd file, what do I need to do so the user can acivate it on linux and Macs,
    I know this is a deployment question, where are the java deployment tricks and tips / documentation/ tutorial?
    Thanks

    Either use:
    Webstart: Multiplatform, creates desktop & start menu icons ( on Windows, prob. the same on UNIX & MacOS ) autoupdates applications, REQUIRES JRE 1.2+ to be installed - part of Java 2 1.4, might be part of 1.3 as well, can update the JVM if needed.
    http://java.sun.com/products/javawebstart/
    Install Anywhere: Multiplatform, can install the JVM if needed, does not require ANY JRE to be installed, could end up with the user having multiple JRE's installed.
    http://www.zerog.com
    JARs: Multiplatform (double clickable on Win & MacOS, can be on UNIX if setup correctly), no install required - like a single EXE, Requires JRE to be installed
    http://java.sun.com/docs/books/tutorial/jar/index.html
    Hack.sh: Not Multiplatform, create shell scripts or small applications to launch, EVIL, don't use.

  • Automatic Adobe Update for users without admin privileges

    Hi there,
    I have a PC with Windows 7 Professional (32bits) and Adobe Reader (9.4.6)
    I have selected "Automatically install updates" in Preferences --> Updater:
    The problem is: when a normal user (without admin privileges) is using the system, it turns up an Adobe Box which asks the user to install the Update:
    But when the user tries to update, it asks to insert the admin password.
    How can I solve this? I would like Adobe Reader updates to be downloaded and automatically installed for users in my PC without admin privileges. Is this possible?
    Thanks in advance.
    Best regards,
    Pablo

    Anyone have any further insight into this?  Is there a way to simply give the user admin creds but only for Adobe Reader that would permit users to do thier own updates?
    I don't want to have to constantly update the MSI I am deploying with GP/LUP if possible.
    I am, however simply looking to update 11.0.0 to 11.0.1 ,11.0.2....etc without having to touch GP/LUP/each end user machine

  • Numbers app for iPhone 4 won't install

    I recently had to restore my iPhone 4 because it wasn't responding. I'm running iOS 7.1.2. It It seems to be working fine now, except the Numbers App won't install from my computer to my iPhone. I'm assuming it's because my iPhone is old and the app is new. How can I get an older version of the app for my phone?

    Keeps saying the connection timed out and to check my connections but everything is working just fine. I was able to donwload the itunes update just fine so I know its nothing to do with my connections. I get an error msg when I try to do it OTA. Says it encountered and error and to check my settings. Cant restore the phone since it needs to download the update because it always gives that error message

  • How will the applet tag behave for users without Java?

    I am considering using an applet I have created as a splash screen for my website. But I am worried that by doing this I will loose all the visitors that don't have Java. Is there a way I can have the splash screen detect whether or not the user has Java? If so, is there a way I can have the splash screen automatically forward the non-java users to the main page? Maybe I could put something between the <applet></applet> tags?
    �Caleb�

    That doesn't help. Had you read my post more carefully you would have better understood what I wanted. In any case, I have already figured out how to automatically forward the non-Java users to the main page. The only thing I worry about now is about the people who's computers crash whenever they try to run a Java applet.
    �Caleb�

Maybe you are looking for

  • What frame rate timeline should I use for 1080p 60fps premiere pro

    When using 1080p 60fps clips what sequence should I use when creating a timeline that would work the best for slow mo application? I read that you should use a 24 fps timeline but i'm not sure? Also I have a few 720 @ 120 fps, should I create a separ

  • While trying to download or update App it shows a busy signal?

    While trying to download or update an app it shows a busy signal. What should I do?

  • Any Class or Function Module..?

    Hi, I have a requirement to update some Infotypes when the user updates the salary package from portal. Is there any class or Function Module available? Pls let me know. Thanks, KK Moderator Message: Thread locked. Points unassigned. Edited by: Suhas

  • Load swf into parent according to successful log-in

    Hello out there!!! I would like to have a swf loaded into a parent swf at a level # once a log-in is successful. Which swf is loaded will depend upon the user associated to the log-in (different swf for different users - using phpMyAdmin). Thank you

  • HT2506 "Find next"  with a PDF document

    I would like to use the "Find next string" of a PDF document with Preview. When i fill the search window, Preview does the search on the entire document, and shows the first occurence it has found. Thus, making me loose my current reading page.  I ju