cougar18 Posted December 12, 2011 Report Share Posted December 12, 2011 does anyone program with java and C/C++ using eclipse?I found out that eclipse has two different versions, one for java and one for C/C++ and i was wondering if it was possible to merge the two into one super programming program if you will. Link to comment Share on other sites More sharing options...
lemmingllama Posted December 12, 2011 Report Share Posted December 12, 2011 This isnt really possible since then you would have to combine the two languages. Programming in two different languages would never work. So unless you had to select what language you would work with prior to the actual programming, then it wouldnt work Link to comment Share on other sites More sharing options...
Dae314 Posted December 12, 2011 Report Share Posted December 12, 2011 You can have C++ call programs written in Java and visa-versa, but you can't use both at the same time. However, if you were thinking of combining programming support for the editor there's an easier way: Netbeans. That IDE will support doing Java and C++ editing with a single IDE for you. I'm sure Eclipse can do something similar if you look up how to do it though...If you really want an all-encompassing IDE that will support every single language out there, go to notepad (or another text editor like notepad++). Write your program there and call the compiler for it via command line Link to comment Share on other sites More sharing options...
anmrk Posted December 12, 2011 Report Share Posted December 12, 2011 You can use JNI that enables Java Code to call C or C++ code Link to comment Share on other sites More sharing options...
cougar18 Posted December 13, 2011 Author Report Share Posted December 13, 2011 i have tried (not too hard because i'm pretty new at this still) but i cant seem to merge the 2 programs. I know eclipse has a tab at the top right of the screen in the java version that switches from java to debugger. I just wondered if the tab could be added for C/C++.I'm taking computer engineering courses at the local university and eclipse is the program that they use for laboratories. That's why i would prefer to stay eclipse exclusive but i'll look into netbeans. Maybe i can program with it and just copy and paste my code to eclipse when i need it marked lol. Link to comment Share on other sites More sharing options...
Dae314 Posted December 13, 2011 Report Share Posted December 13, 2011 i have tried (not too hard because i'm pretty new at this still) but i cant seem to merge the 2 programs. I know eclipse has a tab at the top right of the screen in the java version that switches from java to debugger. I just wondered if the tab could be added for C/C++.I'm taking computer engineering courses at the local university and eclipse is the program that they use for laboratories. That's why i would prefer to stay eclipse exclusive but i'll look into netbeans. Maybe i can program with it and just copy and paste my code to eclipse when i need it marked lol.When you edit programs in an IDE, the source file is saved in whatever save location you have specified. All you need to do is copy that file (or group of files for a project) on to a flash drive and open it with whatever IDE you want to use (may need to create a new project). That's the general case though, I've never used eclipse so I don't know how they have things set up, but I don't see a reason why any IDE would need to save source code in some proprietary format.There are actually some cases where programs won't transfer over easily, and that's when you use libraries that are unique to the IDE. An example of this would be if you were trying to move a GUI program from QTCreator into another IDE. It won't work if you are relying on objects from the QT GUI creator to do things since another IDE doesn't have those objects. You'd need to bring the library with you some how.Still, I understand your situation, and I wish you the best of luck in finding a solution. I don't have experience with Eclipse so I can't help you if you wish to continue that path~. Link to comment Share on other sites More sharing options...
cougar18 Posted December 13, 2011 Author Report Share Posted December 13, 2011 alright. thank you though.Another question.I am making a java applet of 3x3 squares that turn color from blue to red every second. but every time they change color there is a slight flash of white where the whole applet turns white.What is going on? Is there a way to fix it? Link to comment Share on other sites More sharing options...
ameanberg Posted December 13, 2011 Report Share Posted December 13, 2011 alright. thank you though.Another question.I am making a java applet of 3x3 squares that turn color from blue to red every second. but every time they change color there is a slight flash of white where the whole applet turns white.What is going on? Is there a way to fix it? Link to comment Share on other sites More sharing options...
cougar18 Posted December 14, 2011 Author Report Share Posted December 14, 2011 that makes sense. I will have to redo parts of my program to make it more efficient then.Thank you. Even my instructor could not answer that delay issue. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now