@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'
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 7 months ago
@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
WichitSombat 7 months ago
I want the button to install me something how can i do that???
DungeonProductionz 7 months ago
@DungeonProductionz I don't understand what you mean. Icon for the installer? or Confirm button?
WichitSombat 7 months ago
Thank you sir! From Pakistan.
adnanahmed316 8 months ago
i wonder if the classes are included also, it seems like only the jar file are installed.
crscutas 8 months ago
@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 8 months ago
@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 8 months ago
@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 8 months ago
@WichitSombat man should have you ask you that instead, so that it would be a no brainer just follow your video :D
crscutas 8 months ago
@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.
crscutas 8 months ago
thanks, viewing now :)
crscutas 8 months ago