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.

Page 2 of 2 FirstFirst 12
Results 26 to 31 of 31

Thread: can some one make me a runable jar file?

  1. #26
    Member
    Join Date
    Oct 2012
    Posts
    133
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Default Re: can some one make me a runable jar file?

    does this look right?
    Manifest.txt
    Main-Class: Main
    Class-Path: C:\Users\dave\My Software\workspace\2D GAME 0\src\test.jar

    what is class-path? is that the jar file path?
    bc it say
    error: could not find or load main class Main

  2. #27
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,165
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: can some one make me a runable jar file?

    Why is there a Class-Path: entry pointing to a jar file?

    Read the tutorial about jar files: Lesson: Packaging Programs in JAR Files (The Java™ Tutorials > Deployment)
    If you don't understand my answer, don't ignore it, ask a question.

  3. #28
    Member
    Join Date
    Oct 2012
    Posts
    133
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Default Re: can some one make me a runable jar file?

    i got rid of class-path and now it give me different error:
    error: Main method not found in class Main, please define the main method as:
             public static void main(String[]args)

    but i am using japplet. i though u dont need public static void main() in that






    also i tried Class-Path test.jar
    and still get error
    error: cant load main class....

  4. #29
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,165
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: can some one make me a runable jar file?

    but i am using japplet
    That is something VERY IMPORTANT that you should have said before we did all this.
    Applets are not executed with the java command. They are executed by a browser.

    Do some research on how to deploy applets.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #30
    Member
    Join Date
    Oct 2012
    Posts
    133
    Thanks
    16
    Thanked 0 Times in 0 Posts

    Default Re: can some one make me a runable jar file?

    wait so i cant make applet into jar files?

  6. #31
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,165
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: can some one make me a runable jar file?

    Do some research on how to deploy applets.

    Here's a good place to look: http://docs.oracle.com/javase/tutori...let/index.html
    If you don't understand my answer, don't ignore it, ask a question.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. run jar file inside a jar file?
    By ufrubnuckle in forum Java Theory & Questions
    Replies: 1
    Last Post: February 21st, 2013, 06:58 AM
  2. How do you make a console program a .jar in Eclipse?
    By Programmer142 in forum Java Theory & Questions
    Replies: 9
    Last Post: January 13th, 2012, 12:13 AM
  3. [SOLVED] jar file Built(clean and build) perfectly, but not running as jar
    By chronoz13 in forum What's Wrong With My Code?
    Replies: 18
    Last Post: July 11th, 2011, 11:41 AM
  4. [SOLVED] i cant make a java jar file which can search data from mysql
    By talha07 in forum JDBC & Databases
    Replies: 6
    Last Post: January 20th, 2011, 06:09 AM
  5. got all .java files ready. how to make them into jar?
    By sibbe in forum Java Theory & Questions
    Replies: 22
    Last Post: December 6th, 2010, 07:09 PM