Added: 3 years ago
From: 12SamP12
Views: 20,170
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (24)

Sign In or Sign Up now to post a comment!
  • this is dumb not everybody uses fucking eclipse to code their stuff

  • When i try to open it on another computer i get a error, this is only fot use by the creator.

  • Met wat kan je dat openen op je PC?

    Als ik het open met Java Platform SE binary gebeurt er niets,

    en als ik het open met Kemulator zegt die: "Can not find MIDlet class.

    Plz check jad or use -midlet param.

  • Tried this and It won't load my images.

  • ok this is my issue. I can create the jar file but i have texts attached to it. i dragged my text files into scr and just set the path to "file.txt" instead "C://FOLDER//program//scr" what ever. how can i get it to run on any computer without having to set a path where the text files are. just package it into the program

  • Awesome!!!! I've always wanted to know how to do this... luckily it looks super easy! Thanks!

  • Thanks it workedddddddddd liked!

  • Haha, zie ik toch ineens het woord bureaublad staan!

  • Thanks man! Works like a treat! There's just one problem.. I'm using the MySQL library, using a method 'Class.forName("com.mysql.jdbc­.Driver");' method. When running in Eclipse it works just fine, but it doesn't when I run it from a CMD using "java -jar test.jar".

    Any ideas how to fix this? Thanks!

  • Thanks Dear...

  • Thank you, it worked !

  • Thanks!!

  • Hi .. Thanks a lot... This was good.. But i want to know .. how i import a WSDL file i have and create .jar files related to the WSDL.

    Say a scenario. I have a WSDL file and i m giving to my friend. She wants to create jar file based on the WSDL i provided. How to do it.

  • Everything exists for me, except the field to select a main class.

  • mine isnt executable, i did exactly as you did but it still becomes a normal .jar file.

    When i double click on it my unzip program opens it. What did i do wrong?

  • You should go to the settings of your unzipprogram and search for file association. There you should uncheck ".jar".

    This video isn't made to explain how to make an executable. Java programs are ".jar" files.

  • @jobapi01 Actually... you need to right click and tell it to run with java, not with your unzip program. try that and it should work. if java doesn't appear in the drop down menu, you need to click 'choose default program' and search for the java app there.

    i know this comment was posted over a year ago, and that you personally have probably already figured this out by now. this is mainly for passers by in the future who are having the same issue.

  • thanx alot u've been a huge help :)

  • just what i was wondering how to do ! tnx ^^

  • THANKS

  • When I try to excecute the .jar, this show me a message, "Could not find the main class: Calculadora. Program will exit." I don't know what to do!!

  • Are you sure you did the step at 1:05 right?

  • I'm sure because is the only class I use. it has the main method.

    by the way, there are another way to do this, by means of using Administrator Command Prompt. You need an other kind of file named "manifest.mf", make this with Notepad, and set into the file:

    Manifest-Version: 1.0

    Main-Class: Calculadora

    Class-Path: .

    Now you are ready to continue with the command prompt.

  • @12SamP12 @12SamP12 yea same thing happened to me. It won't run because of there is no main class.

  • nice ill subscirbe

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more