Run s1tbx from IntelliJ IDEA

Hi guys,

I’m trying to run the s1tbx from IntelliJ IDEA and I get the following error:
INFO: class org.esa.snap.nbexec.Launcher: setting system property: netbeans.patches.org.csa.rstb.rstb.op.polarimetric.tools.ui = D:\SNAP\s1tbx\rstb\rstb-op-polarimetric-tools-ui\target\classes
INFO: class org.esa.snap.nbexec.Launcher: 5 module patch(es) found for pattern D:\SNAP\s1tbx\rstb$\target\classes
java.lang.IllegalArgumentException: Malformed branding token: ${branding.token}
at org.openide.util.NbBundle.setBranding(NbBundle.java:138)
at org.netbeans.core.startup.CLIOptions.cli(CLIOptions.java:233)
at org.netbeans.core.startup.CLIOptions.cli(CLIOptions.java:98)
at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:234)
at org.netbeans.CLIHandler.initialize(CLIHandler.java:519)
at org.netbeans.CLIHandler.initialize(CLIHandler.java:384)
at org.netbeans.MainImpl.execute(MainImpl.java:193)
at org.netbeans.MainImpl.main(MainImpl.java:85)
at org.netbeans.Main.main(Main.java:83)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.esa.snap.nbexec.Launcher.runMain(Launcher.java:471)
at org.esa.snap.nbexec.Launcher.run(Launcher.java:300)
at org.esa.snap.nbexec.Launcher.main(Launcher.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

Also I can’t resolve the dependancy for SNAP Desktop NB Application with org.netbeans.cluster:platform:pom:RELEASE802.
I’ve tried to reimport all maven projects, download sources.

Do you have any suggestions?

Did you follow the instructions in the developer guide?
https://senbox.atlassian.net/wiki/display/SNAP/SNAP+development

Build everything from maven first and see if all the dependencies are ok.

Hi,
concerning the guide @lveci mentioned. I was unable to run SNAP from IntelliJ IDEA using a Linux based OS by following the guide. The guide tells you to use ; to separate multiple paths in --patch and --cluster, this works for Windows, but here you find the hint to use : to separate multiple paths (which… in the end… is totally clear when using Linux). However, I think it would be helpful to add this information to the guide, too.

Thanks for the hint @thho,
This is indeed missing in the guide. I’ve add a note for Unix users.