How to convert executable jar to text file.? - mobile

I have a executable jar file and i want to see code behind it.
Is this possible?
If yes then tell me the way.
If no then tell me what can i do?
I have download this jar from <http://www.4shared.com/file/FKZjrzCu/FB_Chat.html>
Thank you.

Download Java decompiler from http://java.decompiler.free.fr/?q=jdgui
Open the executable jar file using winrar or winzip.
Place the .class files into Java decompiler application to view the code.

Related

Exe created by Exe4j with external libs dependation

We are trying to wrap our jar file with exe4j to exe file. Our jar depends on several jar libraries stored in libs folder.
We don't want to distribute jar file, only exe and jar libraries in libs folder.
For execution of application we are using own JRE.
Here is the file structure of application:
/java
/libs
application.exe
In the project type, we are using "Jar in exe mode" option.
Exe is generated but its execution failed. In errors.log I can see, that
java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
If I add slf4j.jar to classpath, generated exe is bigger and there is another NoClassDefFoundError in error.log file.
If I try "Regular mode" and specify folder with external libs - application is working well. But to specify folder is not accessible for "Jar in exe mode".
Is there any way, to have exe which wraps jar file, and uses jar libraries which are stored in external libs folder, without manual specify them and pack them to the exe?
We don't want to distribute jar file, only exe and jar libraries in libs folder.
The JAR file in the generated executable is not protected in any way, because it will be extracted to the %TEMP% directory when the executable is started. This is why you can just use the regular mode and put the JAR file in the lib directory.
To protect the JAR file, use an obfuscator like proguard.

Codelite will not download correctly?

I am trying to download Codelite on Windows 10 but only downloads as a "7z" file and will not open. I literally have no idea what I'm doing. Thanks!
7z is an archive file format (like zip or rar). For windows you can use for example 7-Zip to unpack it.

How to ship .dll files with the .exe file

I have an application that depends on some .dll files.
I know if I just make them in the same folder as the .exe file, it would work, but I don't want to leave 30 .dll files with my .exe file. Is there a way I can put them in a folder with my .exe file ?
Or even better, is it possible to compile them and link them with the .exe file to have a standalone file? And no I don't have the static version of these dynamic libraries.
(p.s. the application is written with c, compiled with gcc, mingw win64, and the .dll are from gtk3 libs)
Thank you for reading my question
You have a number of options.
A) get hold of the library files, .lib on windows and statically link with these libraries.
B) It is a bit of a hack but you can attach resources into a Windows executable. This is usually used for strings, icons, that sort of thing, but you could even attach in a binary file. But if you do this you would probably need to generate the dll binaries at program startup and save to eg same folder as your executable. So no point in doing this really, simply distribute in the same folder as your exe. What is the problem doing that? (lookup LoadResource, FindResource, MAKEINTRESOURCE, etc)
C) If you don't want to put the dlls is the same path as your exe you will need to store them in a folder in your system's path env variable. Eg you could copy them to C:\Windows - but due to security that will be harder. You could create your own dll_path and add this path to the env variable as part of the installation of your program.
D) One other variation on C) is that you copy to for example a subdirectory of you exe location, called eg dll_files. Then you use a startup script to launch your program like this:
#echo off
set PATH=%PATH%;<path to dll files>
myprogram.exe
Let's make is simple
download winrar from www.rarlab.com/download.htm A) create standalone winrar executable pack your file in archive and execute your main program.
no idea how to create standalone installer guide for you
http://www.groovypost.com/howto/howto/how-to-make-your-own-offline-installers-using-winrar/

Distributing jar files properly

So I compiled my project as a .jar in NetBeans. The jar file runs flawlessly when running on any machine with NetBeans installed, but refuses to run on a NetBeans-free machine. I'm writing this software to distribute to people that probably aren't Java programmers so this is an issue. I read that I might need to convert it to an exe file? If so how do I make one? And if thats not the solution what is?I just couldn't find something that explained this well enough, so I thought I should post it here. Thanks!
How are you trying to run the application?
To run a jar you need to type "java -jar [myfilename.jar]". You can, of cozurse, make a .bat file to do this for the user.

How to Open decompiled apk file with eclipse?

I have decompiled apk file using apktool. It creates res folder, smali folder, AndroidManifest.xml and apktool.yml. I am not an expert with the smali files that is why I decompiled the classes.dex from the apk file using dex2jar then used jd-gui to get the java source code. Now, I don't how to load them in Eclipse.
Decompiled code is not equals source code. You can only view code in eclipse File - Open.
You can't compile that code again.

Resources