Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to run JAVA code inside Campaign

Avatar

Avatar
Validate 1
Level 1
Raghavendra_Tot
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
Raghavendra_Tot
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Raghavendra_Tot
Level 1

17-01-2019

I want to run a small utility java jar inside the campaign workflow. I tried to use DOS Script , tried to set a path and classpath before running java -jar .

But this didn't run. Any documentation or sample code on this code will be helpful.

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Contributor
MVP
wodnicki
MVP

Likes

941 likes

Total Posts

1,061 posts

Correct Reply

499 solutions
Top badges earned
Contributor
Shape 1
Give Back 100
Give Back 50
Give Back 25
View profile

Avatar
Contributor
MVP
wodnicki
MVP

Likes

941 likes

Total Posts

1,061 posts

Correct Reply

499 solutions
Top badges earned
Contributor
Shape 1
Give Back 100
Give Back 50
Give Back 25
View profile
wodnicki
MVP

17-01-2019

Hi,

Make sure you set the environment for the java executable; in Windows, this is Path env under Advanced System Settings, or just set as part of the command.

It may be easier and more flexible to use js activity with execCommand(). Wrap with logInfo() get output streams.

Thanks,

-Jon

Answers (0)