How to configure external tools for Javac in eclipse - compilation

I have a problem. I want to run a programm in java that is written in C++. For that purpose I have to create headerfiles and to compile. I watched several tutorials. They all just telling me to type in that and click on button and the file is created. But it is not. Nothing is working at all. When I have to set up configuration. Therefore I shall give several input like location of the exe file of javac, the working directory and so on. That is not a problem. The problems occure when I have to give the arguments. I get different error messages. And I don't find usable help to those. To me it is just not figure out what I shall give as arguments and all tutorials and helps doesn't change anything. Can anyone tell me in easy language what I have to give as arguments. For example. You have a file with the name fileToGive.abc . It is located at C:/file/fileToGive.abc . So you have to type in
$filepath{C:/file/}
or you have to type in
$path:{/file}
Thanks for your help.
Here I have to give the arguments

Related

how to download source jar file for org.gradle.kotlin.dsl

Is there any way to download gradle-kotlin-dsl-6.6.1.jar source file by idea or manually with a link?
I wanted to read the source code of the functions in this dependency, I couldn't find the source code also.
I reasoned that, since the plugin is working for me, the code must've been downloaded. What I've found is that (in Android Studio under Linux), if I ctrl-click on a keyword in (anything, I think, but in this case) a build.kts file it takes me to the definition.
Doing this, I can then hover my cursor on the tab name and it shows me where the file is. Mine is way down under /.gradle, but the point is it does tell me where.
So, while I haven't found the jar file itself, I'm thinking that each of the files found like this are part of it. Does that help enough, or at least a bit?

How to figure out missing dll's

I have a MATLAB mex file which does not work, giving me the "The specified module
could not be found." error. Now, I understand that probably the issue is that it tries to link\call\whatever dll's which are missing. I'd like to figure out which ones so that I can provide them.
Here it is explained how to use the Dependency Walker to generate a text file which supposedly has this information. I generated the file but it's a huge one and I am at a loss as to where exactly the information about the missing files is.
I am thus looking for advice on how to locate the missing files reports in the Dependency Walker output.
One way might be to run Process Monitor, filter (Ctrl+L) processes to matlab.exe, and inspect lines with 'file name not found' immediately after calling your mex.
I can suggest another way - but it is more complicated and involves attaching a debugger to matlab. Don't go there unless Process Monitor fails to address this.

How to export to shapefile. Shapelib129.dll is missing

I am trying to use SDO2SHP.exe in order to export some spatial data from Oracle for use later with shp2pgsql in order to import it to a postgresql database. I receive the error:
"The program can't start because shapelib129.dll is missing from your computer. Try reinstalling the program to fix this problem."
Has anyone come across this problem before? If so what is the solution. The obvious thing would be to download the dll from somewhere however I cannot seem to find it. There is not the option to install the program as it is simply an executable file.
P.S. If anyone could add a custom tag I would appreciate the sdo2shp tag being added. Apparently it hasnt been used before.
The file shapelib129.dll can be found in the following location:
\sdo2shp\Libs\SHAPELIB\Delphi\
This file must then be copied into the same directory as your SDO2Shp.exe executable file in order to allow it to work.

How to Debug Following Fortran Program

I am trying to compile the following software so that I can step through and debug it. I am only a novice programmer and I am trying to understand how this whole makefile business works with Fortran. I know that there is a ton of literature on makefiles but I just need to insert a simple debug flag and I think if someone provided me with the answer to this question that would be the best way for me to learn.
So the program I am trying to compile, TINKER, is actually made up of several packages, located at http://dasher.wustl.edu/tinkerwiki/index.php/Main_Page. I would like to compile and debug JUST ONE specific executable, "analyze". I contacted the developer and received the following reply but I am still stuck...
Since TINKER has lots of small source code files, what we do is
compile each of the small files to an object file using the "-c" flag.
Then we put all of these object code files (ie, the ".o" files) into
an object library. Finally, we link each of the TINKER top level
programs, such as "analyze", against the object library. There is a
Makefile supplied with TINKER that does this. We also supply
individual scripts called "compile.make", "library.make" and
"link.make" for various CPU/compiler combinations that can be run in
order to perform the steps I describe above. To build a "debuggable"
executable, you just need to include the appropriate debug flags
(usually "-g") as part of the compile and link stages.
I am currently running OSX 10.6.8. If someone could show me which folders I cd into, what commands I enter that would be so great!
Thanks!
My follow up question (once I can figure out how to answer the above via command line will concern how to import the same procedure but using the Photran IDE - http://wiki.eclipse.org/PTP/photran/documentation/photran5#Starting_a_Project_with_a_Hand-Written_Makefile)
The directions are at http://dasher.wustl.edu/tinkerwiki/index.php/Main_Page#Installing_TINKER_on_your_Computer
Maybe out of date? g77 is obsolete -- it would be better to use gfortran.
The key steps: "The first step in building TINKER using the script files is to run the appropriate compile.make script for your operating system and compiler version. Next you must use a library.make script to create an archive of object code modules. Finally, run a link.make script to produce the complete set of TINKER executables. The executables can be renamed and moved to wherever you like by editing and running the ‘‘rename’’ script."
So cd to the directory for the Mac -- based on "we also provide machine-specific directories with three separate shell scripts to compile the source, build an object library, and link binary executables." Then run the command scripts. Probably ./compile.make. Look around for the directories ... you can probably figure it out from the names. Or search for the file "compile.make".
Or find someone local to you who knows more about programming.

Automatically compile any Java class when the file is dropped in a directory

I look at a lot of small Java programs. It would be convenient if I could set up a directory (or directory structure) on my Mac where any time I add a .java file, javac automatically runs and attempts to compile that file. I've briefly looked into Automator actions, but found nothing that fits the bill. Then I got to thinking: on my PC, I would use the .Net FileSystemWatcher class and write the code myself. But before I try that on my Mac with Mono, I want to ask the community for other ideas. Any advice is appreciated. Thanks.
In JDK6 you can programmatically compile, so you could write your own program to do this, which may be slightly better than doing it in mono.
So you would just have a program that is always running, it looks for either any new files or a file that has been changed since the last check and then just compiles them, and you may want it to pass information to a dashboard window when there are errors, and perhaps some status info so you know it is working.
http://binkley.blogspot.com/2005/09/programmatically-compiling-java-in-jdk.html
If you have all the .java files available at the start, you could write a shell script to compile them all in one run -- in different directories if you need to.
If you explained why you would want this, maybe I/we could be more helpful.

Resources