2

I tried to do this with this piece of code:

JFileChooser chooser = new JFileChooser();
int retval = JFileChooser.CANCEL_OPTION;
chooser.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY);
retval = chooser.showDialog(null, "Select");    

But it didn't work. Console just waited for input...

tytan
  • 305
  • 1
  • 3
  • 12

1 Answers1

1

You need to run it as java -jar exported.jar

jhurtado
  • 8,587
  • 1
  • 23
  • 34