Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-07-2008, 01:57 AM
Member
 
Join Date: Jun 2008
Posts: 3
Jerre is on a distinguished road
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
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-07-2008, 05:15 AM
sukatoa's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 527
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
Not clear,

Are you searching for some complete application source code?

If that is, this could help you.....
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-07-2008, 10:17 AM
Member
 
Join Date: Jun 2008
Posts: 3
Jerre is on a distinguished road
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)
Quote:
public class Start{

public static void main(String[] args) {
new myapplication();
}
}

Last edited by Jerre : 06-07-2008 at 10:56 AM.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-07-2008, 05:05 PM
sukatoa's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 527
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
JAR file's behavior is the same as executable files.....
You can run directly your application when Archived....

Quote:
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...

Quote:
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....
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 06-08-2008, 11:58 AM
Member
 
Join Date: Jun 2008
Posts: 3
Jerre is on a distinguished road
Yes I found that link with google too

But I found it: I used eclipse to create the JAR file, thanks for the help
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Launching an application from another application dynamically Java Tip Java Tips 0 02-16-2008 11:31 PM
Launching an application from another application using thread Java Tip Java Tips 0 02-16-2008 11:29 PM
Make sound play in a java application lenny AWT / Swing 2 08-13-2007 01:45 PM
How to make a web application as .exe file madhusudhangovindu Advanced Java 1 08-02-2007 05:58 PM
Unknown publisher / Signing standalone tomcat.exe millross New To Java 1 06-14-2007 04:25 PM


All times are GMT +3. The time now is 12:47 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org