Setting up C++ JAVA on a Windows using netbeans, eclipse and MinGW-MSYS?
-
I am using Windows Vista 32bit I am finishing html, and css... I was flying through them so I picked up c++, java, and java script. I have to admit I am confused when it comes to setting up a programming environment for c++, java, and java script.. I downloaded notepad++, netbeans, Visuals studio express, eclipse, and mingw with MSYS. I am not sure if that having all of these is causing the problems/ part of one my problems. Problem 1: JAVA (A: I think i broke my compiler/IDE and or computer?) public class helloworld { public static void main( String args[]) { System.out.println("This ******* works!"); } } In netbeans I created the hello world java file, when I ran it in netbeans it worked so I changed the statement thinking I could customize the lesson, and fully understand what output text is, and what code was. The video I was watching was not clear on which file name to save it as.. So I named it helloworld.js, “”. java, and ””. jsp.; I then ran it in command prompt, and all 3 helloworld files gave me errors in command prompt, which leads me to more questions. (B: can .js .java .jsp or .cpp be ran from the command prompt?) **However the big problem is now even if I change the text and save it... I still get my "experiential text" even if I change it back to hello world, or anything in net beans it still says... "this**** works!". (C: also the /n does not break the line.) Problem 2: C++ (eclipse is not working, the hammer is grayed out, and I have 4 warnings) Warnings: 1: Description Resource Path Location Typ… Error launching external scanner info generator (g++ -E -P -v -dD C:/Users/Eric/workspace/.metadata/.plugi… Options] page in project properties C/C++ Problem 2: Description Resource Path Location Typ… Error launching external scanner info generator (gcc -E -P -v -dD C:/Users/Eric/workspace/.metadata/.plugi… Options] page in project properties C/C++ Problem 3: Description Resource Path Location Typ… Program 'g++' is not found in $PATH HelloWorld [Discovery Options] page in project properties C/C++ Problem\ 4: Description Resource Path Location Typ… Program 'gcc' is not found in $PATH HelloWorld [Discovery Options] page in project properties C/C++ Problem I downloaded notepad++, netbeans, Visuals studio express, eclipse, and mingw with MSYS. I changed the Path file the end like the video suggests, after doing research I saw they suggested putting two paths at the beginning. At the beginning it reads: C:\MinGW\bin;C:\MinGW\msys\1.0\bin; At the end it reads: ; C:\MinGW\bin\ **How do I get the eclipse to work, and remove these errors?
-
Answer:
I don't know much about eclipse, but the code you showed first needs to be saved in a .java file. B. those files can't be run from the command prompt. js is a javascript file, which usually runs from a webpage. jsp is a JavaServer page, which runs on a web server. java is a Java file which needs to be compiled to a .class file which can be run with the Java interpreter. cpp is a C++ file that can be compiled to an .exe file which will run from the command prompt. \n is a line break, not /n.
Eric Rapinchuk at Yahoo! Answers Visit the source
Related Q & A:
- What is a Windows 8 'Child Session?Best solution by Stack Overflow
- How to do HttpWebRequests from a Windows Phone 7?Best solution by stackoverflow.com
- How do you convert a windows movie maker file to a regular video file?Best solution by Yahoo! Answers
- How to make a font using a png image?Best solution by Super User
- How do you put a picture inside a picture frame of a picture using photoshop?Best solution by youtube.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.