I need to call a bash script in java class . Before calling the bash script , few variables need to be exported. So when bash script is executed. It's should get the required exported values.
class Javapgm {
public static void main(String [] args){
//export VAR=10
//Call bash script script.bash so that it can use this VAR
}
}