Lukas Okocim

Greenhorn
+ Follow
since Jun 22, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Lukas Okocim

Hello
i write somethink like that:
<fmt:setLocale value="de_DE"/>
<fmt:formatDate pattern="MMMM.yyyy" value="${date}" />

but its not working its possible set language for fmt.
Now i have got month names in english but i need month name in german language
thanks for response
12 years ago
JSP
Hello
i hava task and i must using linux command zip (not java.library zip or other )
in my program user send parameter path to the directory and program must zip all files in this subdirectory

so i write this command in linux:


and its work very god

but i have problem write it in java i use
String command = "find /user/test -type f -exec zip '{}'.zip '{}' \\:"
Process p = Runtime.getRuntime.exec(command)

but i have got error because cannot use exec in exec so i thing to use second type of function exec(command[], env[]);

but i donto know how write this function :/

i wrote something like this:


but its not working so please help how can i write this command in exec ???

thanks for any response

12 years ago