Results 1 to 5 of 5
  1. #1
    Jerre is offline Member
    Join Date
    Jun 2008
    Posts
    3
    Rep Power
    0

    Default howto make a standalone application?

    Hi,
    I've been using IntelliJ for some time now, and always tested programs by running the project.
    But I've been looking howto create a standalone program?
    Musst be something stupid but I can't find it :s

    Thanks in advance!

    Jerre

  2. #2
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    Not clear,

    Are you searching for some complete application source code?

    If that is, this could help you.....
    freedom exists in the world of ideas

  3. #3
    Jerre is offline Member
    Join Date
    Jun 2008
    Posts
    3
    Rep Power
    0

    Default

    Well i've made a java project with intelliJ, but I can only run it if intellliJ is started.
    Basically I want to make an .exe or something from it.
    It doesn't uses a database or something.
    I hope this is more clear :)

    I've found somewhere that I need to convert my project to a .JAR file which I then can convert to an .exe.
    However when I create my .JAR file using IntelliJ and then try to run it, I get "Could not find main class, program will now exit", but I've selected my main class when creating the .JAR file :s
    In this main class I have this: (separate main class with no other functions)
    public class Start{

    public static void main(String[] args) {
    new myapplication();
    }
    }
    Last edited by Jerre; 06-07-2008 at 08:56 AM.

  4. #4
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    JAR file's behavior is the same as executable files.....
    You can run directly your application when Archived....

    However when I create my .JAR file using IntelliJ and then try to run it, I get "Could not find main class, program will now exit", but I've selected my main class when creating the .JAR file
    Maybe the JAR generator generates bad jar file... or its manifest file doesn't point/create the Main-Class: Start

    You may take a tutorial about how to create a jar file manually...

    I've found somewhere that I need to convert my project to a .JAR file which I then can convert to an .exe.
    Covert Java to Exe Why,When,When not and How....
    freedom exists in the world of ideas

  5. #5
    Jerre is offline Member
    Join Date
    Jun 2008
    Posts
    3
    Rep Power
    0

    Default

    Yes I found that link with google too ;)

    But I found it: I used eclipse to create the JAR file, thanks for the help

Similar Threads

  1. Replies: 0
    Last Post: 02-16-2008, 09:31 PM
  2. Replies: 0
    Last Post: 02-16-2008, 09:29 PM
  3. Make sound play in a java application
    By lenny in forum AWT / Swing
    Replies: 2
    Last Post: 08-13-2007, 11:45 AM
  4. How to make a web application as .exe file
    By madhusudhangovindu in forum Advanced Java
    Replies: 1
    Last Post: 08-02-2007, 03:58 PM
  5. Unknown publisher / Signing standalone tomcat.exe
    By millross in forum New To Java
    Replies: 1
    Last Post: 06-14-2007, 02:25 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
  •