Can I run C written in NetBeans on Ubuntu in the Windows NetBeans IDE? - netbeans

I have some C code written using the NetBeans editor in Ubuntu 10.04 LTS.
Would I be able to run this on a Windows 7 system without any problems, using the same Windows NetBeans IDE?

In short no. (... there are some work arounds)
On the Linux Side
Netbeans installed on Ubuntu, by default, will compile this using GCC, and compile it to run on Linux.
On the Windows Side
If you basically copied your Ubuntu-Netbeans project in Netbeans for Windows, Netbeans on windows will need to be pointed towards a tool chain. By default, Netbeans looks for the GNU tool chain.
I personally have not been able to get Netbeans to play with the latest Windows SDK packages, so the simple act compiling the same C code on two different platforms with the same IDE is a little tricky. You will see alot of people say to Install GCC on windows, use Cygwin, MinGW, ect.
Keep in mind, Netbeans has no affect on the final compiled product of your code, that is up to the compiler being used in the background.

Related

What is the compatible eclipse CDT version for GDB 7.5

I am using GDB 7.5 cross compiled for PowerPC platforms. I want to know what version of eclipse CDT should I use for remote debugging using that GDB.
I searched the eclipse documentation, I could not find any note on compatible GDB versions for eclipse releases.
I have tried using eclipse Neon, Oxygen and Luna. In each version, some or the other feature does not seem to work. For example, Neon is not able to recognize the file path when I am trying to put breakpoints, whereas in Luna, it is able to do it perfectly.
Also, I use GCC 4.6.2 over cygwin (windows 7) to compile the code. Can windows be the root of my problem, as I have read for some eclipse features that they are tested primarily on linux.
There was a problem in my target stub implementation of GDB RSP protocol.
Once the target side stub is written properly, eclipse Oxygen works best among the versions I have mentioned in question.

How do I know if a software is 64bit or 32bit (x64 or x32)

I wanted to install J2ME and configure it with Netbeans. I followed two different tutorials word by word but somehow mine would give me many errors. After so much searching I realized that the JDK, Netbeans and J2ME must all be of the same level ie. all to be of x32 or all to be of x64. Now, how do I know what level is each of them at?
How do I know if NetBeans is x32 or x64, as well as JDK and J2ME?
I am using JDK 1.8, Netbeans 8.2, J2ME 3.4
For Java, you can do java -version, and it'll tell you what version you have.
I did a quick look around for the other two but couldn't find anything immediately. However, if you search something like "check bit version for Netbeans/J2ME" then you might get it.
Another way to figure out would be based on your OS. Depending on how new/old it is, it might require certain bit version. You probably installed the correct one (or you should uninstall and re-install the correct one based on their respective installation guide), so you should know what bit version when you first installed.
For Netbeans and J2ME just open them, then open the Task Manager. On the list of Apps, the version of the software is shown as shown below.
About JDK, Open your C Drive and look for the installation folder of your JDK. If it is installed in the Program File folder then it is x64, if it is in the Program File(x86) then it is x32.

Complete Noob: Can't get PyDev working in Eclipse Oxygen with Mint KDE 18.2 OS

I am not a programmer, but want to learn and wanted to use Eclipse Oxygen to run PyDev, and I have tried tutorials and tried many things. I use Linux Mint KDE 18.2 and I did at least attempt to set up Java, but for some reason, the python options are not appearing in Eclipse in the Window->Preferences location. I'm lost to what to do and where to get help. I am also only 6 months in on using Linux.
Also, I can't seem to get marketplace onto eclipse.
My guess is that the java version you're using is too old (i.e.: not java 8) or you're installing PyDev as a regular user and Eclipse was installed as admin...
As a note, an easy way around would be just getting LiClipse (http://liclipse.com), which has PyDev builtin (it's Eclipse + PyDev + some other goodies -- although it's commercial, there's a trial period for you to experiment).

Setting up Eclipse for other programming languages

I have installed Eclipse (Helios) for the Java programming language, but I also want to use it for programming in C/C++, Python and Ruby. I've installed CDT and DLTK (for Python and Ruby).
I already had mingw-w64 (Windows platform) installed. How do I set up Eclipse so that it uses MinGW as the toolchain? It apparently detects MinGW as a toolchain, but when I create a project, two warnings already appear saying "error launching external scanner info generator". I'm assuming this is because it can't find the compiler program. Also, it doesn't detect any of the standard-library header files. Could these problems be because I'm using mingw-w64 rather than the standard MinGW?
I have Ruby working, but as for Python, it cannot find the interpreter nor the default system library. I have Python 2.7 already installed. I don't know how to tell Eclipse where to look for the files.
Note: I am on Windows 7 Professional 64-bit. I've heard of people on 64-bit versions of Vista having trouble getting mingw-w64 to work. I may be having the same problem. Ignoring Eclipse, when I try to compile a C file using gcc, it has trouble finding the libraries and includes.
Edit: If I set the path to /bin/ and /libexec/ via environmental variables, I don't get the initial errors when creating a project, but, what I want to know is, how could I set the paths via Eclipse? Also, even if I set the paths, the linker still can't find the libraries and includes. I went to Project > Properties > C/C++ Build > Settings and tried to set the libraries and includes that way, but it still couldn't find them (the libraries, at least)! Moreover, would I really have to do this for every project? This option isn't available in Window > Preferences.
As for the python part, I recommend using pydev: http://pydev.org/
It's the best eclipse plugin for python. From code completion, syntax highlighting, virtualenv support (http://pydev.blogspot.com/2010/04/pydev-and-virtualenv.html) and so on...
If you are into web development,
from javascript, php, html, python, ruby... you also might want to take a look at aptana.
http://www.aptana.com/
It's a eclipse based IDE with lots of goodies working out of thebox, like git and subversion plugins, pydev etc... aptana is (or was, I switched IDE) installable as a plugin in a regular eclipse)
Martin K. link looks good for mingw part.

Setting Up Netbeans with MINGW on Ubuntu 10.10

i am currently trying to develop an JNI(Native) component for a Java application, I would like to compile my native components into a Windows DLL, however don't have the time to reinstall windows.
is it was possible to set up MINGW with Netbeans so that i can use the IDE's functions to compile the DLL.
Thanks Lee.
This great netbeans tutorial explain how to do and manage crosscompilation of JNI libraries.
http://netbeans.org/community/magazine/html/03/c++/