Hi,

I have created a small appication to run a number of self extracting archives depending on the option selected.

I have the program working and all is going to plan.

At the moment my program calls the slef extracting zip by pointing to the location on the hard drive (see below) but I am planning on deploying this on a USB Mem Stick so the user can insert > run program > select required updates > DONE.

try{
                        String updateFilePath = "C:\\Test\\UpdateFileZip.exe /auto";
			p = r.exec(updateFilePath);
			//Wait for the file to be extracted before continuing 	
			p.waitFor();
						
		}
		catch(Exception e){
			System.out.println("error==="+e.getMessage());
			e.printStackTrace();
		}

Should I be including the zip archives as part of the JAR (if so how do I then call them from code) or should I just place them in the same folder as the JAR and lib and refer to them as indicated below. String updateFilePath = "UpdateFileZip.exe /auto"; On a side note the files are approx 700-800MB each and there are 5 of them, I am guessing that this would degrade the performance of the app if they were bundled with the JAR?

thanks
Dwayne

Closing this as placing the files in the same folder as the .jar works ok.


EG.

--MainProjectFolder
------->FolderContainingUpdateFiles
------------------>updateFile1.exe
------------------>updateFile2.exe
------------------>updateFile3.exe
------->lib
------->MainProgram.jar

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.