This is a discussion on Learning Java ~ What are the best choices of tools ? within the Windows forums, part of the Operating Systems category; follow this... make one System variable named JAVA_HOME Set its value to the jdk home directory. like C:\Sun\SDK\jdk now make ...
| |||||||
| | #41 |
| Gold Member Join Date: Jun 2009 Location: Pune
Posts: 487
Rep Power: 3 | 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. |
| | |
| | #42 | |
| Guest
Posts: n/a
| Quote:
are you know all info about Java? i learned it but i like C++ than java | |
| |
| | #43 | |
| Gold Member Join Date: Jun 2009 Location: Pune
Posts: 487
Rep Power: 3 | Quote:
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. | |
| | |
| | #44 |
| Guest
Posts: n/a
| I learned Java As well as advance Java(n/w Programming not in details just overview) & etc. |
| |
| | #45 | |
| Jedi knight Join Date: Jul 2009 Location: IBF Age: 21
Posts: 1,818
Rep Power: 5 | @ 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:
(C++) - (troubles) =(Java) Last edited by Luke Skywalker; 07-31-09 at 10:44 PM. Reason: Automerged Doublepost | |
| | |
| | #46 | |||
| Bronze Member Join Date: Dec 2008 Location: Kalyan West
Posts: 254
Rep Power: 1 | Quote:
Quote:
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. 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. | |||
| | |
| | #47 |
| Junior Member Join Date: Jul 2009 Location: Ahmedabad, India Age: 22
Posts: 13
Rep Power: 1 | This post is nostalgic! Brought back my Java programming 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! |
| | |
| | #48 | |||
| Guest
Posts: n/a
| Quote:
Quote:
BTW i'm using XP. Quote:
@matrix rep+ | |||
| |
| | #50 |
| Gold Member Join Date: Jun 2009 Location: Pune
Posts: 487
Rep Power: 3 | go to computer->properties->advanced->Environmental Variable There you can set system variable. |
| | |
| | #51 |
| Jedi knight Join Date: Jul 2009 Location: IBF Age: 21
Posts: 1,818
Rep Power: 5 | Wait for one day I am installing windows to solve this issue. Can't understand as path is showing bin in the path. |
| | |
| | #52 | |||
| Guest
Posts: n/a
| hey luke, sorry i forgot to update here, nandini's method is working fine. now both javac and java command are working from cmd. thanks for your help. meanwhile what is wrong in this code ? Quote:
NO problems in compiling , but in execution i get this error. Quote:
Quote:
| |||
| |
| | #53 |
| Jedi knight Join Date: Jul 2009 Location: IBF Age: 21
Posts: 1,818
Rep Power: 5 | Write main statement as public static void main (String[] args) So program is:- public class MyFirstApp { public static void main (String[] args ) { System.out.println("I rule "); System.out.println("the world."); } } PS: Then I am not going to install windows. Last edited by Luke Skywalker; 08-01-09 at 07:51 PM. Reason: Automerged Doublepost |
| | |
| | #54 |
| Guest
Posts: n/a
| thanks again, finally i got one program working |
| |
| Tags |
| choices, java, learning, tools |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Installling java | saurabh2446 | Nokia | 1 | 06-23-09 12:44 PM |
| Tata Sky Fun Learning Promotion | devrajofjaipur | Tata sky | 0 | 05-13-09 03:46 PM |
| Request For Java Script To Power On The Modem Ut300r2u | ravi07 | BSNL broadband | 8 | 04-09-08 02:19 AM |
| Job cuts in Microsoft Learning division | Admin | News and Views from the Business World | 0 | 06-25-06 05:57 PM |