Added: 9 months ago
From: WichitSombat
Views: 1,495
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (12)

Sign In or Sign Up now to post a comment!
  • If you know minecraft i want to make a mod installer. And i cant do it because i need a button that put .class files into a .jar

  • @DungeonProductionz I don't know anything about minecraft. But to put .class to .jar, I can think of the following options (just pointers, sorry).

    1. use jar.exe uf the.jar the/path/to/ABC.class

    2. programmatically manipulating jar file with java.util.jar package

  • I want the button to install me something how can i do that???

  • @DungeonProductionz I don't understand what you mean. Icon for the installer? or Confirm button?

  • Thank you sir! From Pakistan.

  • i wonder if the classes are included also, it seems like only the jar file are installed.

  • @crscutas it includes all .class files. they are packed in the jar file. The source code, all file .java, need to be packed separately. I would zip the src/ folder and create a new Pack in PackJacket. Depends on what you'd like to give away.

  • @WichitSombat hmm i thought they are packed in the build folder. the src folder is just for development. so i want to include all the folders except for the src.

  • @crscutas in that case you would need to add all files in the build directory. then you need to write a script to startup your program. suppose your script is 'simpleapp.bat'. in this file you'd put something like 'java.exe -cp programdir org.simpleapp.SimppleApp' , then instead of creating shortcut to SimpleApp.jar, you create shortcut to simpleapp.bat instead. by the way, winrar can show you the content of the file 'SimpleApp.jar'

  • @WichitSombat man should have you ask you that instead, so that it would be a no brainer just follow your video :D

  • @WichitSombat now that i think about it should have been like that :D since not many people will make projects that has only one class.

  • thanks, viewing now :)

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