Just finished my first Java application. What's next?

Thanks to the kind help from everyone on this forum and some intensive labor for the last couple of months, I've finally given birth to my first Java application. I used Netbeans as my IDE of choice. During the development stages I would run my project directly from the IDE. In the project folder, a total of five folders were created: build, dist, nbproject, src, and test as well as two files build.xml and manifest.mf.
Being a newbie in this field, I was wondering about the remaining steps needed to distribute the application. Here are some questions that come to mind:
1) I know I can simply just double-click the project's *.jar* file to get it work. Is that the norm with Java applications or do I need to create a different file? I'm used to seeing *.exe* files. I'm also used to seeing an installation process, which brings me to my next question.
2) Do you simply just zip the entire project folder and allow people to download it on their computer hoping they know how to access the *.jar* file?
3) Seeing that I've only been testing the application in Netbeans, will there be file path or classpath problems if I run it on other computers? Are there necessary steps I need to follow to avoid such problems?
4) Do you take any precautionary steps to protect your code? Do you lock the folders?
5) In the future, if I decide to add a small fee to download the application, how hard would it be to add a password activation feature? (I know this could get pretty complex)
Thanks in advance for all your suggestions.

mohogany wrote:
Thanks to the kind help from everyone on this forum and some intensive labor for the last couple of months, I've finally given birth to my first Java application. I used Netbeans as my IDE of choice. During the development stages I would run my project directly from the IDE. In the project folder, a total of five folders were created: build, dist, nbproject, src, and test as well as two files build.xml and manifest.mf.
Being a newbie in this field, I was wondering about the remaining steps needed to distribute the application. Here are some questions that come to mind:
1) I know I can simply just double-click the project's *.jar* file to get it work. Is that the norm with Java applications or do I need to create a different file? I'm used to seeing *.exe* files. I'm also used to seeing an installation process, which brings me to my next question.It's quite common to provide a shell script (batch file, etc) to launch the app.
2) Do you simply just zip the entire project folder and allow people to download it on their computer hoping they know how to access the *.jar* file?You can do. There are also installation utilities around. InstallAnywhere is the only one I've ever used, but others do exist.
3) Seeing that I've only been testing the application in Netbeans, will there be file path or classpath problems if I run it on other computers? Are there necessary steps I need to follow to avoid such problems?Probably. The best way to avoid them is to test them, and to not ever depend on the CLASSPATH environment variable. That's a portability nightmare.
4) Do you take any precautionary steps to protect your code? Do you lock the folders? Nope.
5) In the future, if I decide to add a small fee to download the application, how hard would it be to add a password activation feature? (I know this could get pretty complex) Don't bother. Unless you've got something amazing, in which case you'll be needing lawyers, it's not worth the trouble of charging for it. No offence, but your first Java app is hardly going to set the world on fire anyway.
No matter what you try and do to stop people stealing your code, they'll manage it. Or, alternatively, just steal your idea instead.

Similar Messages

  • HT204053 i RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    I RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    Welcome to the Apple community.
    iTunes and iCloud and different accounts, you will need to delete both accounts from your device before adding the new details in their place.
    For iCloud go to settings > iCloud, scroll down and hit the delete button. You can then sign back in using your correct details. For iTunes go to settings >store, tap your account ID and then sign out, you can then sign back in using your correct Apple ID.

  • I Just Did the Exam 1Z0-047 - What's Next?

    I just passed my first (Internationally Recognized) Oracle exam 1Z0-047. Hmmm, i got %83. I think its good since its my first exam, i felt i could make it better up to %90+. The paper shows 9 bullet points of topics that i may show review. The topics they mentioned i know it really well. Shall i take the exam again? I don't think its a big deal probably %83 is good. Anyway, the exam center gave me a printed paper of my total score. They said Oracle will send another Certification to my address. Which Certification is official? The one i have been given by the exam center is a printed cert (black and point). Which one should i show to the employers?
    I'm happy as well as sad because i knew the mistakes i made are silly (i wish to rid of the bullet points argghhhh) + i did the exam after having at least 3 months college hands on experience.

    user11164565 wrote:
    I just passed my first (Internationally Recognized) Oracle exam 1Z0-047. Hmmm, i got %83. I think its good since its my first exam, i felt i could make it better up to %90+.
    The paper shows 9 bullet points of topics that i may show review. The topics they mentioned i know it really well. Shall i take the exam again? Be cool. - thats good. Congratulations.
    NO DO NOT TRY TO TAKE ANY PASSED EXAM AGAIN - its against certification candidate agreements : [http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=138]
    Although the suggested topics are a guide dont dwell on them too much; if you feel you know them ell enough thats fine; move on. Because of the effects of small samples sizes on individual topics these can easily become skewed.
    I don't think its a big deal probably %83 is good. Anyway, the exam center gave me a printed paper of my total score. They said Oracle will send another Certification to my address. WhicCertification is official? The one i have been given by the exam center is a printed cert (black and point). Which one should i show to the employers?
    Keep both. 1z0-047 is an exam with fulfills a certification requirement so you get a success pack including a certificate; and thats even more important. Thats the best one to show to your employer; but it may be 8 / 10 weeks beforeyou received it. (NB: Oracle does not send a copy of your exam report - they will only send certificates - however there might be changes when they move to Prometric).
    I'm happy as well as sad because i knew the mistakes i made are silly (i wish to rid of the bullet points argghhhh) + i did the exam after having at least 3 months college hands on experience.Then your mistakes will help you for the future.
    Rgds - bigdelboy.
    Whats next is up to you. The UK government is pleased to recommend as follows :-) : [http://whatsnext.direct.gov.uk]. If it oracle education or certifications read the forum announcements and visit [http://www.oracle.com/education] and [http://www.oracle.com/education/certification]; otherwise browse OTN at [http://otn.oracle.com]. Or you may wish to spend your time doing something completely different ... your choice.

  • My first Java application only works on emulator

    I've been programming (just for fun) for many years now, and a couple of days ago I got interested in writing software for my cellphone (a SE k500i). Now I've managed to create my first program. It works great when being run inside an emulator-window but not on my cellphone. I guess it crashes directly because I don't get any error messages or anything.
    I've been developing it using netbeans and I'm using a "TableItem" to display searches (my program searches a huge list of swedish words (only the CRC32 of the words are stored in a file called "ord") to see if an inputted word is valid when playing Scrabble). Is it wrong to use the tableItem maybe?
    Screenshot: http://home.no/filipsprogram/DUMP/Shot0001.JPG
    I have attached the full source code for my program, if someone could take a look at it I would be very greatful:
    (oh, one more thing, in netbeans, how do you delete autogenerated code? I added some commands in the "Screen Design"-er and deleted them right away but the code is still there...)
    * AlfapetSok.java
    * Created on den 29 juni 2006, 10:39
    package AlfapetSok;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import java.io.*;
    import java.io.*;
    import org.netbeans.microedition.lcdui.TableModel;
    * @author filip ([email protected])
    public class AlfapetSok extends MIDlet implements CommandListener, ItemCommandListener {
         * Creates a new instance of AlfapetSok
        public AlfapetSok() {
        private Form mainForm;
        private Command exitCommand;
        private TextField textField1;
        private Command okCommand1;
        private org.netbeans.microedition.lcdui.SimpleTableModel simpleTableModel1;
        private org.netbeans.microedition.lcdui.SimpleTableModel simpleTableModel2;
        private Spacer spacer1;
        private org.netbeans.microedition.lcdui.TableItem tableItem1;
        private Command screenCommand1;
        private Command screenCommand2;
        private int NumWords = 5;
        private String[][] Words = new String[NumWords][2];
        private int NumSearches=0;
        private int polynomial = 0xEDB88320;
        int[] ord = createFromFile("/AlfapetSok/ord");
    private int CRC32Value(int i) {
    int crc = i;
    for (int j = 8; j > 0; j--) {
    if ((crc & 1) == 1)
    crc = (crc >>> 1) ^ polynomial;
    else
    crc >>>= 1;
    return crc;
    public int calculateCRC32(byte[] buffer) {
        int crc=0;
            for (int i = 0; i <  buffer.length; i++) {
                int tmp1 = (crc >>> 8) & 0x00FFFFFF;
                int tmp2 = CRC32Value(((int) crc ^ buffer) & 0xff);
    crc = tmp1 ^ tmp2;
    return crc;//((crc % 0xFFFFFF) & 0xFFFFFF); //24-bit CRC :-)
    public static int[] createFromFile(String aFilename) {       
    try {
    InputStream is = aFilename.getClass().getResourceAsStream(aFilename);
    DataInputStream d = new DataInputStream(is);
    int antalord = 89361;
    int[] array = new int[antalord];
    for(int i = 0; i < antalord; i++){
    array[i] = d.readInt();
    return array;
    } catch (Exception e) {
    System.out.println("FEEEEEEL!!!!: "+e.toString());
    return null;
    public int search(int[] buffer,int target){
    int low=0;
    int high = buffer.length-1;
    int mid;
    while (low <= high)
    mid= (low + high) / 2;
    if (target == buffer[mid])
    return mid;
    if (target < buffer[mid])
    high = mid - 1;
    else
    low = mid + 1;
    return -1;
    public org.netbeans.microedition.lcdui.SimpleTableModel getModel(int Num) {
    if (simpleTableModel1 == null)
    simpleTableModel1 = new org.netbeans.microedition.lcdui.SimpleTableModel();
    String[][] WordsTemp = new String[Num][2];
    for (int i=0;i < Num;i++)
    WordsTemp[i][0] = Words[i][0];
    WordsTemp[i][1] = Words[i][1];
    simpleTableModel1.setValues(WordsTemp);
    simpleTableModel1.setColumnNames(new String[] {"Ord","Finns?"});
    return simpleTableModel1;
    /** Called by the system to indicate that a command has been invoked on a particular item.
    * @param command the Command that ws invoked
    * @param item the Item on which the command was invoked
    public void commandAction(Command command, Item item) {
    // Insert global pre-action code here
    if (item == textField1) {
    if (command == okCommand1) {
    // Do nothing
    String s = textField1.getString();
    String s2= s.toLowerCase();
    int i = calculateCRC32(s2.getBytes());
    String t = "ja";
    if(-1 == search(ord,i))
    t = "nej";
    for (i = NumWords-1 ;i > 0;i--)
    Words[i][0] = Words[i-1][0];
    Words[i][1] = Words[i-1][1];
    Words[0][0] = s;
    Words[0][1] = t;
    if (NumSearches++ >= NumWords)
    NumSearches = NumWords;
    tableItem1.setModel(getModel(NumSearches));
    textField1.setString("");
    // Insert global post-action code here
    /** This method initializes UI of the application.
    private void initialize() {
    // Insert pre-init code here
    getDisplay().setCurrent(get_mainForm());
    // Insert post-init code here
    /** Called by the system to indicate that a command has been invoked on a particular displayable.
    * @param command the Command that ws invoked
    * @param displayable the Displayable on which the command was invoked
    public void commandAction(Command command, Displayable displayable) {
    // Insert global pre-action code here
    if (displayable == mainForm) {
    if (command == exitCommand) {
    // Insert pre-action code here
    exitMIDlet();
    // Insert post-action code here
    // Insert global post-action code here
    * This method should return an instance of the display.
    public Display getDisplay() {                        
    return Display.getDisplay(this);
    * This method should exit the midlet.
    public void exitMIDlet() {                        
    getDisplay().setCurrent(null);
    destroyApp(true);
    notifyDestroyed();
    /** This method returns instance for mainForm component and should be called instead of accessing mainForm field directly.
    * @return Instance for mainForm component
    public Form get_mainForm() {
    if (mainForm == null) {
    // Insert pre-init code here
    mainForm = new Form(null, new Item[] {
    get_textField1(),
    get_spacer1(),
    get_tableItem1()
    mainForm.addCommand(get_exitCommand());
    mainForm.setCommandListener(this);
    // Insert post-init code here
    return mainForm;
    /** This method returns instance for exitCommand component and should be called instead of accessing exitCommand field directly.
    * @return Instance for exitCommand component
    public Command get_exitCommand() {
    if (exitCommand == null) {
    // Insert pre-init code here
    exitCommand = new Command("Avsluta", Command.EXIT, 1);
    // Insert post-init code here
    return exitCommand;
    /** This method returns instance for textField1 component and should be called instead of accessing textField1 field directly.
    * @return Instance for textField1 component
    public TextField get_textField1() {
    if (textField1 == null) {
    // Insert pre-init code here
    textField1 = new TextField("Filips AlfapetS\u00F6k", "", 120, TextField.ANY);
    textField1.addCommand(get_okCommand1());
    textField1.setItemCommandListener(this);
    textField1.setDefaultCommand(get_okCommand1());
    // Insert post-init code here
    return textField1;
    /** This method returns instance for okCommand1 component and should be called instead of accessing okCommand1 field directly.
    * @return Instance for okCommand1 component
    public Command get_okCommand1() {
    if (okCommand1 == null) {
    // Insert pre-init code here
    okCommand1 = new Command("S\u00F6k", Command.OK, 1);
    // Insert post-init code here
    return okCommand1;
    /** This method returns instance for simpleTableModel1 component and should be called instead of accessing simpleTableModel1 field directly.
    * @return Instance for simpleTableModel1 component
    public org.netbeans.microedition.lcdui.SimpleTableModel get_simpleTableModel1() {
    if (simpleTableModel1 == null) {
    // Insert pre-ire
    simpleTableModel1 = new org.netbeans.microedition.lcdui.SimpleTableModel();
    simpleTableModel1.setValues(new String[][] {
    new String[] {
    new String[] {
    null,
    new String[] {
    null,
    null,
    new String[] {
    null,
    null,
    new String[] {
    null,
    null,
    new String[] {
    null,
    null,
    simpleTableModel1.setColumnNames(null);
    // Insert post-init code here
    return simpleTableModel1;
    /** This method returns instance for simpleTableModel2 component and should be called instead of accessing simpleTableModel2 field directly.
    * @return Instance for simpleTableModel2 component
    public org.netbeans.microedition.lcdui.SimpleTableModel get_simpleTableModel2() {
    if (simpleTableModel2 == null) {
    // Insert pre-init code here
    simpleTableModel2 = new org.netbeans.microedition.lcdui.SimpleTableModel();
    simpleTableModel2.setValues(new String[][] {
    new String[] {
    simpleTableModel2.setColumnNames(new String[] {
    "Ord",
    "Finns?",
    // Insert post-init code here
    return simpleTableModel2;
    /** This method returns instance for spacer1 component and should be called instead of accessing spacer1 field directly.
    * @return Instance for spacer1 component
    public Spacer get_spacer1() {
    if (spacer1 == null) {
    // Insert pre-init code here
    spacer1 = new Spacer(1000, 1);
    // Insert post-init code here
    return spacer1;
    /** This method returns instance for tableItem1 component and should be called instead of accessing tableItem1 field directly.
    * @return Instance for tableItem1 component
    public org.netbeans.microedition.lcdui.TableItem get_tableItem1() {
    if (tableItem1 == null) {
    // Insert pre-init code here
    tableItem1 = new org.netbeans.microedition.lcdui.TableItem(getDisplay(), "S\u00F6kningar", get_simpleTableModel2());
    // Insert post-init code here
    return tableItem1;
    /** This method returns instance for screenCommand1 component and should be called instead of accessing screenCommand1 field directly.
    * @return Instance for screenCommand1 component
    public Command get_screenCommand1() {
    if (screenCommand1 == null) {
    // Insert pre-init code here
    screenCommand1 = new Command("Screen", Command.SCREEN, 1);
    // Insert post-init code here
    return screenCommand1;
    /** This method returns instance for screenCommand2 component and should be called instead of accessing screenCommand2 field directly.
    * @return Instance for screenCommand2 component
    public Command get_screenCommand2() {
    if (screenCommand2 == null) {
    // Insert pre-init code here
    screenCommand2 = new Command("Screen", Command.SCREEN, 1);
    // Insert post-init code here
    return screenCommand2;
    public void startApp() {
    initialize();
    public void pauseApp() {
    public void destroyApp(boolean unconditional) {

    I still haven't heard anything from the guy at Sun, so today when I got an infrared device I did some debugging on my own directly on the phone. I managed to trace the error (by alot of System.out.println("I'm here!")) to TableItem.java in the function setModel.
         public void setModel(TableModel model) throws IllegalArgumentException {
                 if (this.model != null) {
                   this.model.removeTableModelListener(this);
                 if (model == null) throw new IllegalArgumentException("model parameter cannot be null");
              if (model != null) {
                   if (model.getRowCount() < 0) throw new IllegalArgumentException("model cannot have negative number of rows");
                   if (model.getColumnCount() < 0) throw new IllegalArgumentException("model cannot have negative number of cols");
                   model.addTableModelListener(this);
              this.model = model;
                    recomputeModelValues();
                    invalidate();       
         }The last line there, Invalidate();, is causing the crash; by commenting that line out the program will run :-) Unfortunately the tableItem will not work correctly without it. I'm not skilled enough to continue debugging, maybe someone else can take over from here?

  • HOW TO MAKE MY JAVA APPLICATION CODE INTO A EXE?

    I JUST FINISH WRITING A JAVA APPICATION code USING JCreator.
    there is no error in the program.
    Can someone provide me the steps to change it into a exe so that i can use the application in any computer. THANK YOU!

    You could use Google. I know, it means you need to do some research yourself. But an exe will only work on a Windows platform. Try looking for a tutorial on jar files instead.

  • Can Web dynpro Java application run as background application

    Hi Experts,
    Is it possible to execute the Web dynpro java application in background without opening the application in a web browser.
    We just want the WD java application deployed on the SAP Web AS server to be invoked and get executed as a background application by some external web application. It should not get open at any point of time in a web browser.
    Can anyone suggest if it is possible?
    Thanks & Regards,
    Anurag

    Hi Anurag,
    Since Web Dynpro is "SAPu2019s standard UI technology based on MVC for developing user interfaces" (see http://www.sdn.sap.com/irj/sdn/nw-wdjava) it is by design not possible to run 'in the background'.
    There are other possibilities to develop server processes per your requirements, such as developing web services or servlet development.
    Web services are the de facto standard for executing business logic on a remote server. However, as I understand your external web application is not capable of sending web service requests, have you tried the servlet approach?
    See http://help.sap.com/saphelp_nwce711core/helpdata/en/3f/f8bc3d8af79633e10000000a11405a/frameset.htm for more info on how to develop a servlet using NWDS.
    Take particular attention to the sub-topic 'Servicing Client Requests' of the above guide
    Hope this helps!
    Best regards,
    Robin van het Hof

  • My first java program!! ALMOST done..I hope

    I've just written my first java program (part of a class I'm taking).. It's feeling kinda awkward since I'm a C++ programmer.. I've written most of the code but I'm still having problems and I thought I should show it to you to get some help..
    import java.lang.*;
    import java.util.*;
    public class Dice
    private static Random generator = new Random();
    int Die1, Die2, rolled, pairNum, pairSum;
    public Dice()
       int[] Dice_arr={Die1, Die2};
       new Random(System.currentTimeMillis());
       return;
      }//end_func_Dice
       public static roll()
         rolled = generator.nextInt(6) + 1;
         return rolled;
        }//end_func_roll
       public String toString()
         StringBuffer bfr = new StringBuffer("\n");
         System.out.println("Rolling Dice...");
          for(pairNum=0; pairNum==10; pairNum++)
            System.out.println("Pair"+pairNum+": "+Die1+","+Die2+" Sum= "+pairSum);
           }//end_for_
        }//end_func_ 
    }//end_class_Dice
    public static void main(String args[])
          for (int dieNum=0; dieNum==2; dieNum++)
            Dice.roll();
            Dice_arr[dieNum]=rolled;
           }//end_for_
         return;
        }//end_func_mainI need main to instatiate the Dice class and then use the toString to print the dice numbers and their sum 10 times..
    I hope this doesn't need much effort,
    Thanks a bunch in advance..

    Right now, my opinion in java is that it's too
    complicated for no reason compared to C++..It's not too complicated, it's just that you are new at this.
    Here's a little example of a simple class with a simple main method, the rest figure it out yourself, and with time read some java books, you won't learn java just by knowing C++.
    public class Human {
        // See this as C constants (although they're not their Equivalent)
        public static boolean MALE = true;
        public static boolean FEMALE = false;
        //member variables.
        private String name;
        private boolean sex;
        /** Creates a new instance of Human */
        public Human(String n, boolean s) {
            name = n;
            sex = s;
        }//End of CONSTRUCTOR.
        public String getName() {
            return name;
        }//End of getName
        public String toString() {
            StringBuilder sb = new StringBuilder();
            sb.append("[Name: " + name);
            if(sex)
                sb.append(", sex: Male]");
            else
                sb.append(",sex: Female]");
            String returnValue = new String(sb);
            return returnValue;
        }//End of toString()
        //Just the main program, it could be at another class.
        public static void main(String[] args) {
            Human h = new Human("Pablo", Human.MALE);
            String theHumanAsAString = h.toString();
            System.out.println(theHumanAsAString);
        }//End of main method
    }//End of class

  • Could I call another java application?????

    I wanna to exec another java application in my current Java Application.Could I?????
    can U tell me how to do this????
    thanx.

    yes u can do it in two ways !
    1) if ur problem is associated with execution of different application just like running two java application simultaneously .
    then u can use this
    call runtime environment by
    Runtime run= Runtime.getRuntime();
    then execute any process using exec() method
    run.exec(command);
    here command is a simple string which is the command syntax to run java application
    e.g.
    String command="java program1" to running program1.class
    2)but if ur problem is just execute a class file which being called by another class file.
    then its so simple.
    when u click button or select any item from list an event will be generated and in event hanling u just call the constructor of ur class file or main() method.
    public void itemStateChanged(itemEvent ie)
    if(list.getSelectedItem().equals("file1.class")
    file1 f=new file1();
    or
    file1.main("xxx","yyy");
    }

  • OK, just paid for first month of CreatePDF, but nothing converts. What's up??

    I just paid for first month of and installed Adobe CreatePDF. But when I tried to use to convert files (individually or multiples to single .pdf), they've all failed to convert. Tried .jpg files within the size limitations, Excel files as well, but just get "File_______ failed to convert. You can try the file again or use the PDF printer for Windows to convert the file."
    I did download the installer for the Adobe PDF Desktop Printer, but due to hardware settings on this laptop, couldn't finish installation. But that is moot-- I'm at a copy center at which I planned to print these documents once I got them converted to .pdf. That was $9.99 I could have used for something more useful than this exercise...
    Running current Firefox. Have Firefox applications for Content Type= Adobe Acrobat Forms, Adobe Acrobat Forms Document(s), Adobe Acrobat XML Data Package File set to "Use Adobe Acrobat (in Firefox)" plugin.
    What am I doing incorrectly?

    I just paid for first month of and installed Adobe CreatePDF. But when I tried to use to convert files (individually or multiples to single .pdf), they've all failed to convert. Tried .jpg files within the size limitations, Excel files as well, but just get "File_______ failed to convert. You can try the file again or use the PDF printer for Windows to convert the file."
    I did download the installer for the Adobe PDF Desktop Printer, but due to hardware settings on this laptop, couldn't finish installation. But that is moot-- I'm at a copy center at which I planned to print these documents once I got them converted to .pdf. That was $9.99 I could have used for something more useful than this exercise...
    Running current Firefox. Have Firefox applications for Content Type= Adobe Acrobat Forms, Adobe Acrobat Forms Document(s), Adobe Acrobat XML Data Package File set to "Use Adobe Acrobat (in Firefox)" plugin.
    What am I doing incorrectly?

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • I am having difficulty opening my iPhoto on my macbook. Every time I try to access it, it freezes or the application will just not open at all. What can I do to open it successfully?

    I am having difficulty opening my iPhoto on my macbook. Every time I try to access it, it freezes or the application will just not open at all. What can I do to open it successfully?

    Select iPhoto in the Applications folder the type Command+i to bring up its Info window.  That will tell you what version it is.
    As a first fix attempt do the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iPhoto folder (Snow Leopard and Earlier).
    or with Lion and Mt. Lion from the User/Library/Containers/com.apple.iPhoto/
    Data/Library/Caches/com.apple.iPhoto folder
    3 - launch iPhoto and try again.
    NOTE 1: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    NOTE 2:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.

  • How can i run java application at system startup just liks as services

    How we can run java application at the time of system
    starts up just like as services.

    Hi,
    At first you have to create an exe of the class file.
    for that go to the site www.duckware.com/java2exe.html
    Click on the j2exe23c.exe(75k) download it and install in ur system. convert the class file to windows exe.
    The put the exe in the startup folder in windows.
    If ur not able to find that folder search for it and put that exe in that folder.

  • I have Win7Pro64, tried to Un-Install Firefox control panel, no luck, tried running helper.exe from Uninstall folder and it says "Not a Valid Win-32 Application" What gives?? Just want to update to 3.6.4 and that didn't work either so I'm trying to remove

    Running Win7Pro64. Tried to update to 3.6.4 and it failed. It said to download the whole program so I did. Tried to install and says that the "License File" is missing. SO I go to un-install 3.6.3 myslef with Control Panel. All that did was remove Firefox as a listed program in control panel, all of it is still there in Explorer and it runs fine. So I go to use Helper.Exe under the Uninstall folder of Mozilla Firefox and when I click that, it says "Not a Valid Win-32 Application" What's up with that?? All I want to do is remove 3.6.3 so that I can clean install 3.6.4. I tried installing 3.6.4 two different ways with failures both times. I tried to remove 3.6.3 using two different ways, and that also failed both times.
    == This happened ==
    Just once or twice
    == I tried updating to 3.6.4. It failed both with the update and the full download, so tried to un-install 3.6.3 in control panel, then helper.exe with no luck.

    You don't want to update to 3.6.4, trust me. Stay with 3.6.3. If you need to download it again you can find it here:
    http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.6.3/win32/en-US/

  • My new iPad air is suddenly asking for a pass code. I have only just finished restoring it from my iPad 2 and I didn't set one. The one I used before doesn't work. What can I do?

    My new iPad air is asking for a pass code. I have only just finished restoring it via iTunes from my ipad2 and I didn't set one. The one I used before doesn't work. What can I do?

    http://support.apple.com/kb/HT1212

  • What is the recommended way to launch a web-start enabled Java application?

    Hello,
    I have a simple web-start enabled Java application, which I can launch from a brower by entering :
    https://xx.xx.x.xxx/MyApp/launch.html
    This method would show me a page. I then had to click on a link to run my application.
    I noticed that I could also launch my program by entering :
    https://xx.xx.x.xxx/MyApp/launch.jnlp
    This method would run my application right away.
    I wonder if there is a recommended way to launch/run a web-start enabled Java application?
    Thank you,
    Akino

    user8708553 wrote:
    ..to directly launch my application and bypass the HTML page, why is there a need to
    display the HTML page and make the user do a click?There are a number of advantages to using the web page. Including..
    <li> An explanation to the end-user of what the application does (a 'sales pitch').
    <li> Provision of screen shots of the app. (more 'sales pitch').
    <li> A description of what security environment it requires, and why.
    <li> Access to using the deployJava.js* to ensure the end-user actually has Java installed & has a suitable minimum version of Java, before they ever get access to the launch button/link.
    * http://download.oracle.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html#deployingApplications

Maybe you are looking for

  • Macbook connected to a 15" TV gives a widescreen display...

    I just purchased a mini-DVI to video adapter for my Macbook. I have connected to it to a good-but-not-great TV, a Panasonic 15-inch TV, about three years old. It is not HDTV, it is not widescreen. Nothing fancy. Just a normal TV with audio/video inpu

  • A.pack wont create an *.AC3 file - perplexed..

    Hi all, I currently have Apack 1.5, DVDSP 3 and FCP 4.5, now i captured the 2.2hours of footage, waited the nearly 13 hours for my 1.4ghz G4 to compress that footage to fit onto a DVD-R, but i would like to AC3 the audio, I have followed the tuts on

  • Automatically change Desktop picture.

    Hi, time ago, not sure if with Panther or in older versions of Tiger or iPhoto... I remember there was a way to set in System Preferences>Desktop to navigate to particular folders within the iPhoto folders and make the pictures there to show randomly

  • When viewing an Event in iPhoto, I can't get back to library

    I am stuck in an event and I can't get back to the library. Sometimes I have a button on the top left "All Events" but often it is not there. I do not have the menu on the left to click back to the library. Please help!

  • Thinkpad X1 uses 50% in 24hours in sleep mode

    I am just wondering if those values are normal? I've put my X1 by closing the lid into sleep mode at 94% yesterday evening. Today I reopen the lid and battery is at 53%. That means I cannot even keep my thinkpad for 48h on sleep. So is this normal or