kosstr12
06-25-2008, 08:48 PM
How would I change all of my class files into one jar file?
|
||||
Making a .jar filekosstr12 06-25-2008, 08:48 PM How would I change all of my class files into one jar file? Millenia 06-25-2008, 09:28 PM What operating system are you on? Spookster 06-25-2008, 10:20 PM Just follow the instructions here: http://neptune.netcomp.monash.edu.au/JavaHelp/howto/jar.htm kosstr12 06-25-2008, 10:30 PM @Millenia:Windows XP @Spook: Ok, So in my command prompt I would just say: jar CF example.jar Example1.class Example2.class Example3.class Does that look right? Spookster 06-26-2008, 02:01 AM @Millenia:Windows XP @Spook: Ok, So in my command prompt I would just say: jar CF example.jar Example1.class Example2.class Example3.class Does that look right? Depends on what kind of jar file you are trying to create? What is it you are trying to accomplish with a jar file? kosstr12 06-26-2008, 06:17 PM Depends on what kind of jar file you are trying to create? What is it you are trying to accomplish with a jar file? I have a Runescape Private server client that run's offline, But it has like 50 class files. I need to get all of my classes compiled so I can embed the client on a website. Spookster 06-26-2008, 08:13 PM So you just want to archive them all in one file then? Just follow the instructions in the first part. http://neptune.netcomp.monash.edu.au/JavaHelp/howto/jar.htm#CompressFilesToAnArchive kosstr12 06-26-2008, 08:19 PM So you just want to archive them all in one file then? Just follow the instructions in the first part. http://neptune.netcomp.monash.edu.au/JavaHelp/howto/jar.htm#CompressFilesToAnArchive I did that, But It gave me the "Jar is not recognized as a command blah blah blah" If I uploaded all of the classes in a rar file, could someone transfer it for me? Spookster 06-27-2008, 12:32 AM Do you not have the JDK installed with the paths set up properly? I assumed you did since you are compiling java code. If you are getting an error saying jar is not a recognized command then you either don't have the JDK installed or you did not add the JRE bin directory to your system path. Add that bin directory to your system path and open a new command prompt. |
| |||
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum