Page 2 of 2 FirstFirst 12
Results 21 to 34 of 34
  1. #21
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,371
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by UJJAL DHAR View Post
    If this is okay,then you can use this for the next posts related coverting .jar to .exe

    উজ্জ্বল সূত্র ধর: Converting .jar to .exe
    No it's not ok, the OP is trying to create an executable .jar file, not a MS Windows executable file.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  2. #22
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,371
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by ravi1 View Post
    In the above post, it shows that I created a manifest file and also the jar file, should I add the 2 in iexpress, I tried that and still the error is shown.

    any suggestions?

    Regards
    Try to open that .jar file with a .zip program and see if everthing is in there as you expect.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #23
    ravi1 is offline Member
    Join Date
    Mar 2011
    Posts
    19
    Rep Power
    0

    Default

    thanks for the reply, thats what I am asking, what am I expecting?

    can someone just direct me a step by step process to create a .jar and then convert it to a .exe file, as I am very confused now

    Regards

  4. #24
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,371
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by ravi1 View Post
    thanks for the reply, thats what I am asking, what am I expecting?
    You are expecting your .class files to be in there and a manifest entry containing the correct information. You can see them all if you open your .jar file with, say, winzip or similar.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  5. #25
    Solarsonic is offline Senior Member
    Join Date
    Mar 2011
    Posts
    261
    Rep Power
    4

    Default

    You can create an executable jar file using a manifest (look it up). There's virtually no point in converting a jar file to an exe file because, if I'm correct, when you "convert" them the actual code isn't converted, but an exe wrapper is put onto the jar file (in other words the user still needs JRE installed). That eliminates Java's platform compatibility, which is one of Java's biggest strengths.

  6. #26
    UJJAL DHAR is offline Senior Member
    Join Date
    Apr 2010
    Location
    Dhaka,Bangladesh
    Posts
    180
    Rep Power
    0

    Default

    JosAh,
    Did you really read the post of that link?
    Please have a look on this and read the post.
    উজ্জ্বল সূত্র ধর: Converting .jar to .exe

    And if you have suggestion,then tell me..

  7. #27
    ravi1 is offline Member
    Join Date
    Mar 2011
    Posts
    19
    Rep Power
    0

    Default

    Once again, thanks for all the replies, how to I convert it into a software that's JRE installation independant?

    Regards

  8. #28
    Solarsonic is offline Senior Member
    Join Date
    Mar 2011
    Posts
    261
    Rep Power
    4

    Default

    Quote Originally Posted by ravi1 View Post
    Once again, thanks for all the replies, how to I convert it into a software that's JRE installation independant?

    Regards
    You use a different programming language... but Java is the most platform-independant language and most computers hava Java installed.

  9. #29
    ravi1 is offline Member
    Join Date
    Mar 2011
    Posts
    19
    Rep Power
    0

    Default

    I have created it into the JAR file using netbeans, now how do I make it execute, I have used iexpress but it seems to have just copied the files and saved them in a different locations so i need to either use cmd or netbeans which I want to avoid. I just need to click on the icon to open and run it.

    Regards for all the help so far, I am getting there

  10. #30
    Solarsonic is offline Senior Member
    Join Date
    Mar 2011
    Posts
    261
    Rep Power
    4

    Default

    Quote Originally Posted by ravi1 View Post
    I have created it into the JAR file using netbeans, now how do I make it execute, I have used iexpress but it seems to have just copied the files and saved them in a different locations so i need to either use cmd or netbeans which I want to avoid. I just need to click on the icon to open and run it.

    Regards for all the help so far, I am getting there
    Do it in command prompt. Navigate to the directory where your files and manifest(look it up) are stored and use the command:

    jar cvfm Application.jar manifest.mf *.class

  11. #31
    ravi1 is offline Member
    Join Date
    Mar 2011
    Posts
    19
    Rep Power
    0

    Default

    Thanks for that. Maybe what I am doing is wrong, but I did like what you suggested Solarsonic, but it just created and added the Manifest file in the JAR, but my question is how do I run my gui by a single/double click on the file using the JAR that I have?


    kind Regards

  12. #32
    UJJAL DHAR is offline Senior Member
    Join Date
    Apr 2010
    Location
    Dhaka,Bangladesh
    Posts
    180
    Rep Power
    0

    Default

    If your Jar file is created once,it will work on double click once.If it is not working then change the opening command from Filetypes.

    For windows:
    JAR should be open by
    "C:\Program Files\Java\jdk\bin\javaw.exe" -jar "%1" %*

    If you want,you can refresh your work.Build your project using Netbeans.You will get the JAR file.Then just update the jar file with menifest using this command.
    http://sufal-programmerszone.blogspo...jar-files.html
    Remember,you have created JAR already,So,just update that with these 3 commands.you will get it.

    Regards
    Ujjal
    Last edited by UJJAL DHAR; 03-30-2011 at 08:04 AM.

  13. #33
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    A few things I have read said to open a text editor to create the manifest file and hit enter after the line, try doing that instead of using echo, then re jar the file and see what happens

  14. #34
    ozzyman's Avatar
    ozzyman is offline Senior Member
    Join Date
    Mar 2011
    Location
    London, UK
    Posts
    797
    Blog Entries
    2
    Rep Power
    4

    Default

    ravi, i only added my executable jar file to iexpress, i compiled my jar with NetBeans IDE which is what i'm designing my current project in. your manifest file is used to compile the executable jar isnt it?

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Convert Java program to web-app
    By carderne in forum New To Java
    Replies: 3
    Last Post: 12-08-2010, 06:10 PM
  2. Convert XML file into DTD using Java
    By veera in forum XML
    Replies: 0
    Last Post: 12-19-2008, 05:38 AM
  3. To open an image file such as Jpeg file using JAva Program
    By itmani2020 in forum Advanced Java
    Replies: 10
    Last Post: 07-11-2008, 09:57 AM
  4. Replies: 1
    Last Post: 07-02-2008, 01:58 PM
  5. Convert a program to Applet
    By carl in forum Java Applets
    Replies: 2
    Last Post: 08-09-2007, 09:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •