Results 1 to 11 of 11
  1. #1
    konn is offline Member
    Join Date
    Mar 2009
    Posts
    5
    Rep Power
    0

    Question New to Java.. What are the requirements?

    Hi there,

    I am new to java programming language. I want to learn the basic of it.. What are the things to be considered before starting? What are the programs? compilers or what that need to be installed in my computer?:confused:

  2. #2
    Singing Boyo is offline Senior Member
    Join Date
    Mar 2009
    Posts
    552
    Rep Power
    6

    Default

    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 Boyo
    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!

  3. #3
    konn is offline Member
    Join Date
    Mar 2009
    Posts
    5
    Rep Power
    0

    Default

    thank you sir.. i wan't to learn how to make jar files that's why i start my question regarding java..

  4. #4
    Singing Boyo is offline Senior Member
    Join Date
    Mar 2009
    Posts
    552
    Rep Power
    6

    Default

    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!

  5. #5
    porchrat is offline Senior Member
    Join Date
    Mar 2009
    Posts
    105
    Rep Power
    0

    Default

    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.

  6. #6
    konn is offline Member
    Join Date
    Mar 2009
    Posts
    5
    Rep Power
    0

    Default

    so what must be the executable file to be used to design jar file?

  7. #7
    porchrat is offline Senior Member
    Join Date
    Mar 2009
    Posts
    105
    Rep Power
    0

    Default

    Quote Originally Posted by konn View Post
    so what must be the executable file to be used to design jar file?

    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.

  8. #8
    konn is offline Member
    Join Date
    Mar 2009
    Posts
    5
    Rep Power
    0

    Default

    Sir what must be the first step to make a jar file? i'm using jcreator

  9. #9
    padmachandra is offline Member
    Join Date
    Mar 2009
    Posts
    3
    Rep Power
    0

    Default 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

  10. #10
    konn is offline Member
    Join Date
    Mar 2009
    Posts
    5
    Rep Power
    0

    Default

    Quote Originally Posted by padmachandra View Post
    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
    i tried it on command protmpt, the command was not recognized.. what must be the problem? even the c:\Log4j

  11. #11
    porchrat is offline Senior Member
    Join Date
    Mar 2009
    Posts
    105
    Rep Power
    0

    Default

    Quote Originally Posted by konn View Post
    i tried it on command protmpt, the command was not recognized.. what must be the problem? even the c:\Log4j
    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 01:54 PM.

Similar Threads

  1. External DTD requirements
    By jwilley44 in forum XML
    Replies: 0
    Last Post: 03-06-2009, 10:25 PM
  2. VOIP Server Hardware Requirements
    By asifsolkar in forum Networking
    Replies: 12
    Last Post: 05-21-2008, 05:23 AM
  3. Minimum system requirements
    By coco in forum New To Java
    Replies: 1
    Last Post: 07-31-2007, 09:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •