Results 1 to 11 of 11
- 03-24-2009, 04:16 AM #1
Member
- Join Date
- Mar 2009
- Posts
- 5
- Rep Power
- 0
- 03-24-2009, 04:28 AM #2
Senior Member
- Join Date
- Mar 2009
- Posts
- 552
- Rep Power
- 5
if you are learning to develop Java you will need to download the Java developers kit from Sun. You can find it at Java SE Downloads - Sun Developer Network (SDN). You probably just want the Java SE development kit.
You may also wish to download an IDE to help you develop your Java programming skills and ease your debugging process. You can refer to the "What are you using to write your code?" poll to find one that suits you.
I strongly suggest that you find online tutorials. A good set of tutorials is "The Java Tutorials" by Sun.
Hope this helps, :)
Singing BoyoIf the above doesn't make sense to you, ignore it, but remember it - might be useful!
And if you just randomly taught yourself to program, well... you're just like me!
- 03-24-2009, 05:03 AM #3
Member
- Join Date
- Mar 2009
- Posts
- 5
- Rep Power
- 0
thank you sir.. i wan't to learn how to make jar files that's why i start my question regarding java..
- 03-24-2009, 06:29 AM #4
Senior Member
- Join Date
- Mar 2009
- Posts
- 552
- Rep Power
- 5
never made jar files myself, so can't help you there, but I'm sure you'll find someone who can.
If the above doesn't make sense to you, ignore it, but remember it - might be useful!
And if you just randomly taught yourself to program, well... you're just like me!
- 03-24-2009, 08:08 AM #5
Senior Member
- Join Date
- Mar 2009
- Posts
- 105
- Rep Power
- 0
If you're running Linux there is a 'jar' command that you can use to create jar archives.
Just use the command 'man jar' in the command line to check usage etc.
I don't know if this is present in windows as I've never tried it, but I suppose it, or another variant, could be.
Even if it doesn't exist most IDEs come with a jar export function that will export your programs and their 3rd party libraries as a jar archive for you so you don't have to worry about it.
- 03-24-2009, 08:51 AM #6
Member
- Join Date
- Mar 2009
- Posts
- 5
- Rep Power
- 0
so what must be the executable file to be used to design jar file?
- 03-24-2009, 09:59 AM #7
Senior Member
- Join Date
- Mar 2009
- Posts
- 105
- Rep Power
- 0
Unless I've misunderstood the question you're asking how to make a jar file executable?
When you create a jar file it creates a manifest file called MANIFEST.MF. The manifest specifies the path to the main class if you're going to use that jar as an executable.
You can create your own manifest file and tell the jar archive tool to use it instead of creating a default MANIFEST.MF file the archiving tool then incorporates that manifest into the archive. This helps when your classes are all over the place.
- 03-24-2009, 10:19 AM #8
Member
- Join Date
- Mar 2009
- Posts
- 5
- Rep Power
- 0
Sir what must be the first step to make a jar file? i'm using jcreator
- 03-24-2009, 10:44 AM #9
Member
- Join Date
- Mar 2009
- Posts
- 3
- Rep Power
- 0
Creation of JAR file
hi,
first u have to set java path and classpath.Then u can create JAR file through CommandPrompt
open the cmd and check whether JAR is working or not
if it is working then use this command
cmd:>jar cvf simple.jar C:\Log4J
here c:\Log4J is the folder containg some files, when u type this command it will create sample.jar file with files
- 03-25-2009, 03:09 AM #10
Member
- Join Date
- Mar 2009
- Posts
- 5
- Rep Power
- 0
- 03-27-2009, 12:50 PM #11
Senior Member
- Join Date
- Mar 2009
- Posts
- 105
- Rep Power
- 0
Surely your IDE (jcreator) has the ability to make jars for you?
I know Eclipse does. Pretty sure Netbeans does too.
Otherwise could you post the exact error that you're getting, and the command you used?
That jar command also seems to use the same options as it does in Linux, nice to know.Last edited by porchrat; 03-27-2009 at 12:54 PM.
Similar Threads
-
External DTD requirements
By jwilley44 in forum XMLReplies: 0Last Post: 03-06-2009, 09:25 PM -
VOIP Server Hardware Requirements
By asifsolkar in forum NetworkingReplies: 12Last Post: 05-21-2008, 04:23 AM -
Minimum system requirements
By coco in forum New To JavaReplies: 1Last Post: 07-31-2007, 08:19 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks