Emergency : HELP me to convert this .class files into an executable or .jar file?

A class file is java bytecode from the Java compiler. It needs a Java runtime envornement (JRE) to run. The only reason to create an exe is to include the proper version of the JRE for your compiled class files.

The Jar file is a zip archive of all the class files you need and a manifest file so it can be opened and run directly by the JRE. Converting a . Class to a .

Jar is done using the jar. Exe file. A jar file is a java archive - its a zip file actually.

If you want to make an executable jar file you need to add a manifest which (when unpacked) indicates what to run. Usage: jar {ctxu} vfm0M jar-file manifest-file -C dir files ... Options: -c create new archive -t list table of contents for archive -x extract named (or all) files from archive -u update existing archive -v generate verbose output on standard output -f specify archive file name -m include manifest information from specified manifest file -0 store only; use no ZIP compression -M do not create a manifest file for the entries -i generate index information for the specified jar files -C change to the specified directory and include the following file If any file is a directory then it is processed recursively. The manifest file name and the archive file name needs to be specified in the same order the 'm' and 'f' flags are specified.

For example - to put two class files into a jar file (Java archive) called result. Jar: jar cvf result. Jar one.

Class two. Class For example - to make an executable jar file where one. Class has the main() method defined in it 1.

Create a blank text file called (say) main. Txt 2. On the first line of main.

Txt - type: Main-class: one 3. Make sure to add one blank line at the end 4. Save main. Txt into the same directory the class files are in 5.

Type: jar -cvmf result. Jar main. Txt one.

Class two. Class (Assuming you need a second class file because one. Class calls something in two.

Class) Making an exe is quite difficult. Follow second link below. The JWS is the mechanism for running jar files from a url link.

To get the class file from the web page. Goto view source and look through it. The class file you want is located here: http://micro.magnet.fsu.edu/electromag/java/capacitor/classes/Capacitor.class The page indicates you need to contact them for permission to use.

Luckily the page seems current and has contact info. I don't know what a presentation file is but if you make the jar file as above then double clicking on it will launch it if the correct JRE is on that machine.In your presentation setup - I suggest you install the latest JRE that the classes run in. Else you need to follow the more difficult path of making your own exe.

A lot easier--have you tried downloadable programs these: brothersoft.com/downloads/convert-class-... regexlab.com/en/jar2exe/ filebuzz.com/findsoftware/Convert_Jar_Fi... software.informer.com/getfree-online-con... Disclaimer: I know nothing anout these, I just found them here: tinyurl.com/2uk5qzv Save a copy of your original and do it with the copy.

HI Following link is showing you how to use jar file to convert . Class file to. Exe excelsior-usa.com/articles/ja… 1.

Visit towerj.com . Java Compiler ( from TowerJ ) takes your class files and creates an exe. 2.

You can use jexegen. Exe from Microsoft's SDK-Java.2.0. Syntax is as follows: jexegen /OUT:your_exe_file_name /MAIN:your_main_class_name your_main_class_file_name.

Class and all associated classes 3. Visual Cafe provides a compiler to create an executable. 4.

You can try InstallAnywhere software. 5. A free compiler (gh Performance Compiler for Java) is downloadable from the IBM AlphaWorks site.

Please visit http://www.alphaWorks.ibm.com.

I don't know Java, though I have a little bit of interest in other JVM languages. I can't help you in detail, and I suspect from the exchanges so far you are biting off more than you can chew here! You probably need to know a lot of concepts to even get to first base with being able to compile and run from source, and it can take hours or more of tweaking obscure stuff.(That's why developers consider getting a " World" program to work enough of a challenge when getting started with a new language!) But, this looks like a good resource on the general topic, and may help you... excelsior-usa.com/articles/java-to-exe.html There is also apparently an answer here... but you need to register to see it, so I haven't looked myself... experts-exchange.com/Programming/Languag... Also it may be worth downloading an IDE and seeing if it can do most of the job for you.

I have Netbeans, but as I say, I haven't used it for Java. However it looks likes it could be quite helpful for packaging up apps in different ways... netbeans.org/kb/articles/javase-deploy.html Good luck!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions