Executible Jar File on one computer, JAR File on a second - executable-jar

I seem to be having trouble with a JAR file losing its ability to be executable.
The executable JAR file is located on a server, from my PC in the office, the JAR reads its type as an "Executable Jar File", however on a clients laptop, the file type reads as "JAR File".
Am I missing a setting somewhere that will correct this mistake?
Both my PC and the clients are running the latest version of JRE.
I'm at my whits end as I've been stuck on this problem for about 3 days.
Could anyone help me out?

Related

Resource File is not created from Visual Studio

I'm currently writing AddOns for ArchiCAD.
Since .sln projects work with absolute paths, we wanted to try to have the same folder structure on every PC so we can share our projects with each other.
Example: Project for Room Numbering AddOn
I created a project under C:\workspace\ArchiCAD\AddOns\RoomNumbering
and the total path for every file is now C:\workspace\ArchiCAD\AddOns\RoomNumbering\...
and now everyone should be able to copy the folder structure and place the complete project folder in it and work with it.
I did this and tried to build the project on a different Computer.
When I open in vsc it finds all the files and external dependencies, but when I want to built the Project it hits me with an error:
FATAL ERROR LNK1811: cannot open input file "C:\workspace\ArchiCAD\AddOns\RoomNumbering\Build\ResourceObjects\RoomNumbering.res"
But this is a file that is supposed to be created during the built.
This is how it looks on my own Computer pre and after built.
The folder in question pre built:
The folder in question after built:
On my own Computer it creates the .res file, on other computers it does nothing (no new files get created after building).
I tried to build the Project first and then share it, so the .res file already exists. While this works, this isn't the desired way, since it still throws errors.
If it is relevant:
The projects get created by downloading the ArchiCAD AddOn Template (https://github.com/GRAPHISOFT/archicad-addon-cmake) and built it with CMake.
Does anyone know why vsc behaves that way or what I am doing wrong?
Thanks for any help and Kind Regards
Dayiz

vtk runnable jar file

I have created an application using VTK java wrapper and java swing in Eclipse IDE. Now, I want to make a runnable jar file of the application so that I can run it on the different computer on which VTK is not installed.
I have created a jar file and have included vtk.jar while creating it. Also I have created a folder in which I am placing the jar file and debug folder (from VTK-bin/bin) which includes all the required dlls. When I am trying to run this jar file on the other computer, it gives unsatisfiedlinkerror.
What is the correct procedure to create a runnable jar file for VTK application?
The issue regarding executable jar file of VTK application is resolved. I compiled VTK in release mode instead of debug mode. For distribution purpose, debug is not used because of its additional dependencies. Also, I included jre/bin in path environmetal variable of target machine, which I had forgotten to do earlier.
Now, I am able to run jar file on the machine in which VTK is not installed.

Cannot run a jar file

I am trying to open a jar file I downloaded from here which is supposed to be an application that tests a sensorML code I wrote. I am expecting an application with an interface where I| would put my code and get some kind of output... I am unable to open the jar file. I tried the command window, I get could not find or load main class. I tried opening it with eclipse, I get some kind of library with a lot of errors. There is no documentation about this library or application so I am kind of lost on what to expect and how to get it... Anyone can help me open this file in a correct way?
Thanks
The only jar available near the URL you like isn't an executable jar. It is a library to write programs. To open it you can rename it as .zip and uncompress it.
You can also download the .tar.gz version of this library so you can get the full source with all comments.

cygwin1 dll when opening exe

I created a program using C++ with netbeans on my computer. I would like the exe file to open somewhere else. It opens all fine on my computer, but i tested it on a computer in school without netbeans or cygwin. After doing research, i attempted to put a cygwin1.dll file in the same directory as my exe but that just breaks the exe even on my computer.
What is the best way to do this, from another computer? Here are some options i have so far:
1. Install cygwin.dll file on System 32
2. change variable path (Not sure what the path is, but i will find out)
Some options i want to avoid:
1. Installing netbeans or cygwin
Extra notes:
only issue i have is opening the compiled .exe file from another computer
all computers will be using windows
Links i have looked at
http://www.dll-files.com/dllindex/dll-files.shtml?cygwin1
http://pcsupport.about.com/od/findbyerrormessage/a/cygwin1-dll-not-found-missing-error.htm
Unfortunately the executable will search for cygwin.dll by name so renaming it will not work. Also, putting stuff in System32 is a bad idea mainly for security reasons (you don't want to update the school's IT department) and it's possible to mess the machine up by playing around in that folder. Changing the path is ok but, again, the permanence of the change means you should shy away from it.
If I were you, I'd create a .bat file, say myapp.bat which has the lines
set PATH=%PATH%;<location>
<myapp>
where <location> is the location of cygwin.dll and <myapp> is the full path to your executable (including the file name).
You could then double click on this batch file. The first line in this file updates the path by appending the location of the dll but only in a way pertinent to that particular session. Make sense?

Recovering Eclipse source files from .metadata folder

I'm trying to recover some .cpp source files from Eclipse projects I made over a year ago. At the time I was using Ubuntu and I would just save all my projects to the same workspace folder.
When I went to reformat my computer a long time ago I copied my workspace folder to an external hard drive. So, recently I went to look through my old projects for a source file I need and the only thing inside my workspace folder is a hidden ".metadata" folder.
Looking though that there's a .lock file, .log file and a .plugins folder. Inside the .plugins folder is two more folders, org.eclipse.cdt.core and org.eclipse.cdt.make.core. I can see my projects inside those folders but they have .pdom and .sc extensions and I'm not sure what that is.
Can anyone give me some advice as to wether or not its possible to recover the source files (.cpp files) from the data I have? I'm now using Mac OSX but I installed Ubuntu on a VM and downloaded eclipse but had no success recovering anything. Any would be greatly appreciated!
It sounds like your source files must have been outside the workspace folder after all. In such cases, all the workspace folder would have is metadata to organize them as a project.
If the sources were inside the workspace, you wouldnt have needed to go through the .metadata folder.