Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Open .RAR or .CAB files in java

807591May 19 2008 — edited May 20 2008
Well i would like to open a .RAR file or a .CAB and just read the files in it.
then if i have a password i would like to give it in a text box and it should open my .RAR file in the background.

that is the basis.

i just want that my program is not in a .jar file but in a rar file...

so i have a files.rar and a run.exe
in the files.rar are the files that i must run from the run.exe
so i just klick on the run.exe and if i would have a game in the files.rar it should run a file that starts the game.

what i need from you:
i need the code that opens the .rar files and runs the .exe in it...
but the rar file has pa password...
public class RarOpener
{
private String password = "test";

public void opener()
{
//open rar with password = "test"
run();
}

public void run()
{
//run a specific .exe file in the rar file...
}
}
i hope you understand me. sorry for my bad english.
i don't know if its possible but u are the master...

thx
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 17 2008
Added on May 19 2008
10 comments
1,276 views