Question:
I have a java project that I need to run. I have no idea how?
Ritzi
2013-02-28 06:01:13 UTC
I have all the files but I have no idea how to compile and run it. I also have Java installed in my system but I only have JRE installed. Do I need to install JDK? How do I connect the database in my local machine pertaining to the project?

Can anyone help me out here with the detailed work-flow (step by step) on how to run the project.

I will be grateful to whoever who could help.
Four answers:
?
2013-02-28 06:09:50 UTC
Install JDK first. Its essential to compile and run java programs on your machine. Then you need to install IDE for Java. I recommend Eclipse which is great IDE for Java. Here's link to download it:



http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/junosr1



It would be a zip file. Extract it and start using it, there ain't any installation procedure for Eclipse. Now locate your project and open it in Eclipse. You can compile and run it now. As for database part, I don't have much experience with Java database attachments etc. But if you (or someone else) have coded this project enabling it to be portable along with database, you would be able to use database right from there. I hope it'll help somewhat.
Shailendra kumar
2013-02-28 20:27:56 UTC
Step-1

First upan you have to installed JDK on your sytem and set the path from that drive where installed jdk to bin folder such as suppose that you installed java in c/program files/java/jdk1.7.0/bin on the command prompt.

Step2-when you will have your path set then first you will compile your program then run
?
2013-03-01 00:48:46 UTC
1. Start cmd. You will get something like this in the last line:

C:\Users\compaq>

2. If your project is not in C drive, type cd\. Then press Enter. You will get something like this in the last line:

C:\>

3. If your project is in D drive, type d:. Then press Enter. You will get something like this in the last line:

D:\>

4. It the path is not set, then go to My Computer-->C drive-->Program Files-->Java-->Select jdk--> bin.

After opening bin, copy the address from the address bar. Then type path in cmd and paste the address that you copied. You will get something like this in the last line:

D:\>path C:\Program Files\Java\jdk1.6.0_20\bin. Then press Enter. Go to step 6.

5. If the path is already set, go to step 6.

6. Type javac Projectname.java. If there are no errors, type java Name_of_main_class.



refer the below link



http://netbeans.org/kb/docs/java/project-setup.html
Stark
2013-03-01 10:08:15 UTC
Install Eclipse..From its website..


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...