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.

Results 1 to 4 of 4

Thread: how to configure Launch4j the jre bundle and find my JRE version etc?

  1. #1
    Member
    Join Date
    Jul 2011
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to configure Launch4j the jre bundle and find my JRE version etc?

    Hi,

    I've tried to used this Launch4j to test out my mini Java SE programs.

    However, I'm stuck at the JRE bundle.

    What happened was that I've entered all the necessary action required by Launch4j.

    But, there's this part where I'm asked to enter the JRE version.

    So, what I did is look at my Netbean version which is 6.8.0 and entered that as the version. I can sense something is wrong here right? So, can someone advise me where to find my JRE version?

    Now, after clicking on my desktop exe file created by Launch4j, I can't click and run the file at all. It will bring me to the browser to download the JRE and latest Java to download.

    So, I hope someone can help me resolve this problem. How can I make it run after clicking on the desktop icon and the exe file.

    Thanks.


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: how to configure Launch4j the jre bundle and find my JRE version etc?

    Go to the command line of your OS and ask it for the current JRE version: java -version
    Alternatively, ask your JDK for the its version: javac -version

  3. #3
    Member
    Join Date
    Jul 2011
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: how to configure Launch4j the jre bundle and find my JRE version etc?

    Quote Originally Posted by copeg View Post
    Go to the command line of your OS and ask it for the current JRE version: java -version
    Alternatively, ask your JDK for the its version: javac -version
    Got it. But, after entering the version and making the exe file, the file won't run at all cos it says my jar is corrupted! However, it works perfectly in NetBean IDE. Any idea how to make it work. I run a couple of times and yet run into the same problem.

  4. #4
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: how to configure Launch4j the jre bundle and find my JRE version etc?

    Break the step down to see where failure occurs - make sure all steps upstream of launch4j are working. For instance, compile the code and package into an runnable jar - does this jar run from the command line as a stand-alone? If no, you know your jar is not packaged correctly. If yes, then something may be wrong with the launch4j configuration - inspect all configs (been a while since I used launch4j, so you might seek a forum specific for that app).

Similar Threads

  1. Bundle the JRE with the program.
    By atar in forum Java Theory & Questions
    Replies: 2
    Last Post: April 10th, 2012, 08:38 AM
  2. Problem Running J2EE Application - JRE Version Error
    By rameshiit19 in forum Java IDEs
    Replies: 3
    Last Post: November 28th, 2011, 07:12 AM
  3. 1.7 JRE library error?
    By colbol89 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: October 27th, 2011, 07:18 AM
  4. jre version in command line
    By major in forum What's Wrong With My Code?
    Replies: 2
    Last Post: June 14th, 2011, 06:55 AM
  5. new jre6 conflicts with old jre (1.2.2)
    By codeshark in forum Java Theory & Questions
    Replies: 1
    Last Post: December 6th, 2009, 04:28 AM