Page 2 of 3 FirstFirst 123 LastLast
Results 26 to 50 of 54

Thread: Learning Java ~ What are the best choices of tools ?

  1. #26
    newprouser
    Guest

    Default

    Oh i just thought its similar to VB runtime.

  2. #27
    Silver Member
    Join Date
    Jun 2009
    Liked
    0 times
    Posts
    481

    Default

    Quote Originally Posted by newprouser View Post
    JRE is well known , I try my best not to use Java appz.

    Well the compiler doesn't require the runtime to run right ? It oly provides libraries in destination computer na.
    you've mixed things.

    compiler's job is to convert .java files into .class files(byte codes). So JRE doesn't come into picture here.

    JRE is required when you run a java application.
    Suppose I write a java application and after compiling I mail that to you, so that you could run it on your system. So for running my application you need JRE and nothing else.

  3. #28
    newprouser
    Guest

    Default

    what i understand from this is,

    you do coding and save it as *.java
    after compiling , you get a *.class file

    well then how are exe files produced under java. there are many software which depend on java but are actually in EXE format , eg limewire and so on.

  4. #29
    Silver Member
    Join Date
    Jun 2009
    Liked
    0 times
    Posts
    481

    Default

    Quote Originally Posted by newprouser View Post
    what i understand from this is,

    you do coding and save it as *.java
    after compiling , you get a *.class file

    well then how are exe files produced under java. there are many software which depend on java but are actually in EXE format , eg limewire and so on.
    yes yes yes yes yes... you are right.

    Now we come to .exe files.
    Converting a java application into executable is like robbing it's souls. exe files are platform dependent while java application are platform independent. So when you do convert a java application into executable, it becomes platform dependent. (exe runs on windows only. right?? correct me if i m wrong.)

  5. #30
    newprouser
    Guest

    Default

    yes you are ...

    unless you are on wine (some pun for ya)

  6. #31
    Jedi knight Luke Skywalker's Avatar
    Join Date
    Jul 2009
    Age
    23
    Liked
    0 times
    Posts
    2,175

    Default

    Quote Originally Posted by newprouser View Post
    Oh i just thought its similar to VB runtime.
    It is different to it. JRE is a must. For we runs a bytecode not executables. You are right nandini, it is like robbing soul of java applications.

  7. #32
    Silver Member
    Join Date
    Jun 2009
    Liked
    0 times
    Posts
    481

    Default

    Quote Originally Posted by newprouser View Post
    yes you are ...

    unless you are on wine (some pun for ya)
    yeah.

  8. #33
    saurav_k
    Guest

    Default

    @npu

    If you are just beginning with java ... Throughly go through "JAVA - Complete Reference by Herbert Schildt" ...

    I will post in details later ...

  9. #34
    Junior Member
    Join Date
    Feb 2008
    Liked
    0 times
    Posts
    47

    Default

    Guys , whats your opinion on the book : Java : The Complete Reference by Herbert Schildt... Am currently using it and am finding it quite good. Any other book i should be looking at ?

  10. #35
    Silver Member
    Join Date
    Jun 2009
    Liked
    0 times
    Posts
    481

    Default

    Although I haven't gone through this book but I've heard that Herbert Schildt is a a good writer.

    If you find that book good then it must be good indeed.

    I like Java by Khaled Moughal. Nice book!!!

  11. #36
    saurav_k
    Guest

    Default

    It is a very good book for JAVA beginners.

  12. #37
    newprouser
    Guest

    Default

    Quote Originally Posted by saurav_k View Post
    @npu

    If you are just beginning with java ... Throughly go through "JAVA - Complete Reference by Herbert Schildt" ...

    I will post in details later ...
    thanks , will look into that too

    -----


    btw setting this PATH thingy is confusing like hell, and javac is not running too if I do that. i still have to go bin directory and compile it myself.


    and how to run the bytecode aka class file ?

    i tried :

    java asdf.class

    and it didn't work.

  13. #38
    Platinum Member
    Join Date
    Sep 2008
    Liked
    1 times
    Posts
    3,171

    Default

    Quote Originally Posted by newprouser View Post
    thanks , will look into that too

    -----


    btw setting this PATH thingy is confusing like hell, and javac is not running too if I do that. i still have to go bin directory and compile it myself.


    and how to run the bytecode aka class file ?

    i tried :

    java asdf.class

    and it didn't work.

    Did you set the CLASSPATH?

    -F

  14. #39
    newprouser
    Guest

    Default

    I set the path to the bin folder using "path" command in DOS, if thats what you mean by classpath

  15. #40
    Platinum Member
    Join Date
    Sep 2008
    Liked
    1 times
    Posts
    3,171

    Default

    No, CLASSPATH is another environment variable which points to the
    directory where all your java class files and jar files are there.

    -F

    something like this:

    C:\>env | grep CLASS
    CLASSPATH=C:\XMLP562_WIN[1]\XMLP562_WIN\manual\lib\;C:\sample;

  16. #41
    Silver Member
    Join Date
    Jun 2009
    Liked
    0 times
    Posts
    481

    Default

    follow this...

    make one System variable named JAVA_HOME
    Set its value to the jdk home directory. like C:\Sun\SDK\jdk

    now make one more system variable named path
    set its value to the bin directory of your jdk. like C:\Sun\SDK\jdk\bin

    you're done now.

    Now open command prompt and type javac and hit enter.
    If you get a list of help commands,bingo,you did it.
    If not...bang your head thrice against the closest wall and repeat the pocedure till you get it right.

  17. #42
    Swifty
    Guest

    Default

    Quote Originally Posted by nandini View Post
    follow this...

    make one System variable named JAVA_HOME
    Set it value to the jdk home directory. like C:\Sun\SDK\jdk

    now make one more system variable named path
    set it value to the bin folder of your jdk. like C:\Sun\SDK\jdk\bin

    you're done now.

    Now open command prompt and type javac and hit enter.
    If you get a list of help commands,bingo,you did it.
    If not...bang your head thrice against the closest wall and repeat the pocedure till you get it right.
    Nice!
    are you know all info about Java?

    i learned it but i like C++ than java

  18. #43
    Silver Member
    Join Date
    Jun 2009
    Liked
    0 times
    Posts
    481

    Default

    Quote Originally Posted by Swifty View Post
    Nice!
    are you know all info about Java?

    i learned it but i like C++ than java
    These are the basic things. I am also new to java so know a little bit only.

    If you like C++ then you'd love java as well,unless you don't look down upon the persons who're not system programmaers.

  19. #44
    Swifty
    Guest

    Default

    Quote Originally Posted by nandini View Post
    These are the basic things. I am also new to java so know a little bit only.

    If you like C++ then you'd love java as well,unless you don't look down upon the persons who're not system programmaers.
    I learned Java As well as advance Java(n/w Programming not in details just overview) & etc.

  20. #45
    Jedi knight Luke Skywalker's Avatar
    Join Date
    Jul 2009
    Age
    23
    Liked
    0 times
    Posts
    2,175

    Default

    @ NPU.Open notepad & type this:

    set JAVA_HOME= C:\JDK1.6
    set CLASSPATH=.;%JAVA_HOME%\lib
    set path=%JAVA_HOME%\bin;%path%
    start

    Save it as a batch file i.e. with extension .bat like NPU.bat.
    Note : I have assumed in underlined line that you have install jdk under C:\JDK1.6 name. If you have installed it under any name replaced it with it. You will get a command prompt after executing this file. You will have to use this file again & again when you want to compile. So save it a desktop. It will open in milliseconds.

    This will solve your problem .
    I have suggested this solution as it is much better to create a batch file as you might not have permission to change global variables everywhere you are expected to compile a program. So this method is better than changing the environment variables.
    If there is any other problem pm me & I will reply here.

    Quote Originally Posted by nandini View Post
    These are the basic things. I am also new to java so know a little bit only.

    If you like C++ then you'd love java as well,unless you don't look down upon the persons who're not system programmaers.
    Learning C++ is complete wastage of time I too learned it. C is much better for use in system programming. Also Java & C are much better for embedded systems programming. You can do now anything with C which you can do with C++.

    (C++) - (troubles) =(Java)
    Last edited by Luke Skywalker; 07-31-09 at 10:44 PM. Reason: Automerged Doublepost
    History is on the move,my friends.Those who cannot keep up will be left behind, to watch from distance.And those who stand in its way will not watch at all.http://windows7sins.org/
    People are going to tell stories about me none of which change who I really am.

  21. #46
    Silver Member
    Join Date
    Dec 2008
    Liked
    0 times
    Posts
    370

    Default

    Quote Originally Posted by newprouser View Post
    1. Book:

    i'm currently using Java for Dummies, since i'm a complete newbie to java. Is it fine or is there any better.
    There are a lot of online resources/source code available. I will suggest one book for you "Thinking in Java" as it is very much interesting while learning Java.

    2. Specialisation :
    There are many versions of Java like SE,EE, Netbeans etc. Which one should I learn first ?
    SE is the standard edition (Core Java APT), used for writing any normal application like a desktop application.

    EE is the enterprise edition - it is there in the standard jdk. This is the API for EJB (enterprise java beans) to be deployed in application server like jboss, websphere, weblogic, tomcat, classfish,etc.

    Netbeans is an IDE from SUN (now opensource) not a java version.
    3. IDE

    Is it good to use IDE or should I play with cmd ? If yes for IDE, which one is best ?

    I see that there are Eclipse,Jcreator,Netbeans ,Jbuilder IDE, so confused.
    [/QUOTE]

    For beginners I suggest using simple editors like editplus, notepad++, etc (suppoers sytax highlighing). Jcreator is good IDE and fast too compared to others. You can create, manage everything like debug, compile, create jars, etc. Eclipse, netbeans are having lot of features beyond the normal debug,compile, etc. (like mobile application,silverlight support, plugin,EE application and deploying to application server,remote debugging, etc,...) which as a beginner may not require.

    I just started with notepad still I use kwrite as I am full time linux user (equivalent to notepad in windows) though one of the interface to our ERP is eclipse plugin interface. My colleagues use editplus, notepad++, jcreator, eclipse, netbeans.

    The advantage of using IDE for beginers is they all provide pohelp for methods, member varibles. constants,etc, while using simple editors you have refer java documentation every time.

  22. #47
    Junior Member
    Join Date
    Jul 2009
    Age
    24
    Liked
    0 times
    Posts
    13

    Default

    This post is nostalgic! Brought back my Java programming days (nothing special, just college days )

    ----

    As for the new form on programming is concerned, count my vote in

    @npu:
    I think most people have suggested good enough books. Herbert Schildt is a good author, you can try that book (Java: Complete Reference)
    As for online tutorials, Sun's website itself is comprehensive.

    Good luck!

  23. #48
    newprouser
    Guest

    Default

    Quote Originally Posted by farce View Post
    C:\>env | grep CLASS
    CLASSPATH=C:\XMLP562_WIN[1]\XMLP562_WIN\manual\lib\;C:\sample;
    sounds greek to me

    Quote Originally Posted by nandini View Post
    follow this...

    make one System variable named JAVA_HOME
    Set its value to the jdk home directory. like C:\Sun\SDK\jdk

    now make one more system variable named path
    set its value to the bin directory of your jdk. like C:\Sun\SDK\jdk\bin

    you're done now.

    Now open command prompt and type javac and hit enter.
    If you get a list of help commands,bingo,you did it.
    If not...bang your head thrice against the closest wall and repeat the pocedure till you get it right.
    Ummmm, whats a system variable and how do i create one.

    BTW i'm using XP.

    Quote Originally Posted by mithyavadini View Post
    I think most people have suggested good enough books. Herbert Schildt is a good author, you can try that book (Java: Complete Reference)
    As for online tutorials, Sun's website itself is comprehensive.

    Good luck!
    thanks !!

    @matrix

    rep+
    Attached Images Attached Images

  24. #49
    newprouser
    Guest

    Default

    @luke

    tried you method with no luck. posting screenshot.

    java.JPG

  25. #50
    Silver Member
    Join Date
    Jun 2009
    Liked
    0 times
    Posts
    481

    Default

    go to computer->properties->advanced->Environmental Variable

    There you can set system variable.

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. photo editing tools
    By zoooni in forum Computer technology
    Replies: 5
    Last Post: 05-15-10, 09:37 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
  •