Skip to main content

invoke main method like with parameters

2 replies [Last post]
peshkatari
Offline
Joined: 2008-04-17
Points: 0

i would like to start the application by passing some informations like in java:
java Test -what nothing
and than to collect the info
String param=args[0];
is there anything like that possible in JavaFX

Message was edited by: peshkatari

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
peshkatari
Offline
Joined: 2008-04-17
Points: 0

thanks, it worked :)

alexsch
Offline
Joined: 2007-07-12
Points: 0

Use [b]__ARGS__[/b] variabe:

[b]javafx Test -what nothing[/b]

var param = __ARGS__[0];