Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
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 08-04-2007, 10:10 PM
Member
 
Join Date: Jul 2007
Posts: 40
baltimore is on a distinguished road
Program don't work
Hi, I've looked around for a sample program and i found one which is supposed to print "I'm a sample program" on the screen. however when i launch the .jar it says that there is no main class definition, now i would add one myself but I'm new to java and have no clue what that is or where to add one, could someone help me with this? the code is below
Code:
//A Very Simple Example class ExampleProgram { public static void main(String[] args){ System.out.println("I'm a Simple Program"); } }
Thanks
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-04-2007, 10:51 PM
Senior Member
 
Join Date: Jul 2007
Posts: 1,124
hardwired is on a distinguished road
Setting an Application's Entry Point
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
Will this applet ever work? willemjav Java Applets 4 04-20-2008 06:40 PM
How to execute an External Program through Java program Java Tip java.io 0 04-04-2008 03:40 PM
how would i get this to work...? deeadeed New To Java 6 12-06-2007 03:58 AM
How to execute an External Program through Java program JavaBean Java Tips 0 10-04-2007 10:33 PM
what do I have to install to work with JSP boy22 JavaServer Pages (JSP) and JSTL 1 08-05-2007 05:08 AM


All times are GMT +3. The time now is 06:17 AM.


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