batchfiles eclipse main application external tools - eclipse

I am working with Lejos and java Eclipse on Windows 7. As my machine is 64 bit it will not allow me run the standard Lejos driver as an Eclipse plugin I installed it as an external tool . I followed this super helpfull tutorial http://www.youtube.com/watch?v=hEFA0DdFhm8 However for my project I need to be able to regularly send instructions to my Nxt brick. is there anyway that I can call external tools from the main application while it is running ??Alternatively is it possible to call batch files in main programs or even make command line arguments while a program is running ??? I have read allot of forums on this and no where have I found the solution to my problem, if people have any Idea I would appreciate the help,
Thanks.

Right after allot of reading around there is and article on java world
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=1
that sums up beautifully what you should and shouldn't do .. hope this is helpfull for anyone coming after me ......

Related

NetBeans IDE: Resolve Missing Native Build Tools

I am trying to install Fortran in my Windows 10 laptop.
I followed step-by-step this tutorial.
On the last step I am promted to run the following piece of code:
program testfortran
implicit none
print*,'Hello world '
end program testfortran
However a Resolve Missing Native Build Tools window pops-up: it seems that the Make command field is empty.
To be more specific at the bottom of this window there is a message that Tolls marked with * are required. There are three such fields:
(1)C++ compiler to which is attributed the message C:\MinGW\bin\g++.exe
(2)Fortran compiler to which is attributed the message C:\MinGW\bin\gfortran.exe
(3) Make command which is empty (it comes with a red *)
What should I write inside the Make command field?
P.S. All I want is Fortran 90/95 installed on my Windows 10 laptop. I try to do this with step-by-step tutorials because installing software is not exactly what I am good at. So any alternatives would be welcome.
MinGW comes with the mingw32-make program (or it can be installed by mingw-get install mingw32-make). So you should use
C:\MinGW\bin\mingw32-make.exe

Installation of EclipseFP on Eclipse Luna (Mac OS X Yosemite)

I'm trying to get EclipseFP (Haskell support, but the original coder stopped maintaining it last month) working on my iMac but everything seems to fail constantly. I've been debugging this for hours now and like most other Haskell stuff there isn't much decent support out there regarding the installation of such tools. I haven't even written a single line of Haskell code yet (apart from some playing around in GHC/GHCI which surprisingly did work)!
I've tried so many things already, different libraries, different solutions, different versions etc. But it seems that everything that has to do with haskell support is just one big clutter of confusion for me and nothing seems to point me in an apparent direction which bothers me since I am an experienced programmer and dealing with command line interfaces, tools and dependencies isn't unknown to me on all sort of platforms for years now.
Even the most relevant topics on StackOverflow or other knowledgebases just won't cut it regarding this topic and I'm starting to feel like dropping the entire Haskell language and just use something which does play nice with the system without such troubles since it is already such a pain in the ass to get the most basic development tools to work, let alone the coding itself...
The things I got:
Mac OSX Yosmite
GHC
GHCI
Cabal (repository)
Eclipse Luna
I've installed EclipseFP using the install instructions which worked out all great. At this point I thought it would just all work without any problems as the plugin installs just fine...
Well, that was not the case of course. I've restarted Eclipse as it requested after installing new plugins. Here is where the trouble begun..
In the following steps I would have to open the Haskell Perspective in Eclipse. Well... guess what.. there was none! After strolling the web I found out that it might have compatibility issues with the old JDK 1.6 which was installed by default on MacOSX. No worries.. I've downloaded Java JDK 1.8, set it up in Eclipse, restarted it. And there the item "Haskell perpective" showed up in the list.
After clicking that, and thinking my troubles were over (and I could finally start coding!) nothing happend! I've searched around for a while and found the Eclipse error console which until this day gives me nothing more than:
An error occurred while automatically activating bundle net.sf.eclipsefp.haskell.ui (459).
org.eclipse.e4.core.di.InjectionException: java.lang.RuntimeException: org.eclipse.core.runtime.CoreException: Plug-in net.sf.eclipsefp.haskell.ui was unable to load class net.sf.eclipsefp.haskell.ui.HaskellPerspective.
Of course I have tried solving this issue and came across some dependencies which needed to be installed using cabal (BuildWrapper, Scion-Browser and some other essentials). After doing so I still have the same problem and I have no idea where to look for. The only information I can really find are topics which are more than 3/4 years old which share 0 relevance to my exact problem.
I could paste the Java stacktrace here as well which came with the error message, but it doesn't show much useful information anyway other than just basic crashing.
I hope someone can help me because I would really like to start coding now for a change instead of wasting hours on getting my basic development framework/IDE set up.
Long story short; I'd like to code some Haskell in Eclipse but the development tools just won't install and/or work properly without any notable errors or directions to look for.

deleting 32 bit SWT and deploying 64 bit one

I have read almost all documents pertaining to this topic and i haven't found the precise and correct answer.
I followed this link
The exact problem i facing is that i have followed this document and installed a 32 bit SWT. Now when i ran my program i came to know that i should have used 64 bit SWT with 64 bit JVM from here. I downloaded a 64bit version following the link in one of the answer. but when i tried and repeated the process of importing it says i already have a project. Now i am not able to put that 64bit SWT in my project.
Can anyone help me out with this.
Please keep in my mind i am new to JAVA and this is the first time i am using Eclipse RCP.
I found the answer here
Actually i went to the workspace location manually deleted the project and voila i was able to import again. and the program ran. Thanks for your suggestions

A Java Development Kit must be available in order to run Eclipse

I was able to run Eclipse until I tried to install another compiler, suggested by a online tutorial for C++. Now I'm getting the 'No virtual machine was found error'. I know I'm suppose to match the versions of the programs but I can't seem to figure it out. I thought I had downloaded 64 bit version of each program in Eclipse and JDK but I don't know how to verify it. I go to each file and try to get the info but I must be looking in the wrong places. I have copied the file location of JDK and pasted it in the Advanced System Settings in Environment Variables. In the Systems Variables for User on the variable line I typed "path", on the value line I pasted the location: C:\Program Files\Java\jdk1.8.0_05\bin. I have even uninstalled both programs several times and reinstalled them. I've been at it for several hours now with no success. Any suggestions, anybody. Thank you.

Attaching GDB to Eclipse to debug JNI C++ code

I'm having problems debugging a JNI application. I've read several threads in StackOverflow, like this one, this one or this one. I've also tried to start gdb in a separated shell and attach it to the running java process. In both cases, the problem is the same: GDB can't find the sources to debug. Things tried
Add "dir" line to gdbinit, pointing to C++ sources folder
Adding the C++ sources folder to the GDB debbuging configuration in Eclipse, in the "Sources" tab.
Adding set environment LD_LIBRARY_PATH=/path/to/library.so, being library.so the library file built from C++ source files
Attach ddd to the java process, but then I get an error because pthread_join.c is not found in the working directory. I don't have this file in my hard disk. I don't know what is this about.
Nothing worked. I've spent several days on this. I know my bug is in the C++ code called by the JNI wrapper, but I can't debug it. Any hints? If helps, I'm running Eclipse Juno in Debian 7 under a Parallels VM on Mac OS.
Many thanks in advance,
You need to have debug information in your native library. You should pass -g to your compiler and linker to have this information in the executable. You may also want to add -O0.
As an alternative to attaching to the Java process, you can create a C++ app and debug it directly. You just need to link in the functions you want to test. In the main function, create the VM, register the functions with RegisterNatives, and kick off a Java test class the uses them.
Hopefully, the debugger has no problem finding the sources since it is just part of the normal compile/link/debug loop of a C++ app.
I would suggest to start with the latest ADT bundle. You can even download the Mac version, so you will not even need Parallels (see a detailed instructions). Then, choose Debug Android Native Application in launch menu.