# Java

**URL:** https://forum.universal-robots.com/c/urcap-development/java/8.md?page=1

[Latest](https://forum.universal-robots.com/latest.md) · [Categories](https://forum.universal-robots.com/categories.md) · [Tags](https://forum.universal-robots.com/tags.md)

**Page:** 2

---

## [El robot me responde socket test pero en mi plc no](https://forum.universal-robots.com/t/el-robot-me-responde-socket-test-pero-en-mi-plc-no/29399)

<div class="topic-metadata">

**Author:** [@anon41633792](https://forum.universal-robots.com/u/anon41633792)\
**Replies:** 0\
**Last updated:** [July 5, 2023, 11:50am UTC](https://forum.universal-robots.com/t/el-robot-me-responde-socket-test-pero-en-mi-plc-no/29399 "2023-07-05T11:50:48Z")

</div>

Buenos dias,mi UR me respode correctamente al comando unlock protective stop con el socket test por dahsboard pero atraves de mi plc schneider no atiende al comando ‘Unlock Protective Stop$N’ los comando de energizar y…

---

## [Edit integer and float outputs from the toolbar](https://forum.universal-robots.com/t/edit-integer-and-float-outputs-from-the-toolbar/29377)

<div class="topic-metadata">

**Author:** [@anon99678286](https://forum.universal-robots.com/u/anon99678286)\
**Replies:** 0\
**Last updated:** [July 4, 2023, 8:45am UTC](https://forum.universal-robots.com/t/edit-integer-and-float-outputs-from-the-toolbar/29377 "2023-07-04T08:45:34Z")

</div>

Hello everybody, I found this URCap example in Java that creates a toolbar that displays Boolean, integer, and float input and output values in the polyscope. I would like to implement this code so that when I click on t…

---

## [Problem with Log4j in Docker image 'universalrobots/ursim\_e-series'](https://forum.universal-robots.com/t/problem-with-log4j-in-docker-image-universalrobots-ursim-e-series/29312)

<div class="topic-metadata">

**Author:** [@lwh](https://forum.universal-robots.com/u/lwh)\
**Replies:** 0\
**Last updated:** [June 30, 2023, 1:18pm UTC](https://forum.universal-robots.com/t/problem-with-log4j-in-docker-image-universalrobots-ursim-e-series/29312 "2023-06-30T13:18:13Z")

</div>

When I run the simulator docker image (https://hub.docker.com/r/universalrobots/ursim\_e-series) it reports missing Log4j files: ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to…

---

## [Add JComboBox with planes that got teached manually](https://forum.universal-robots.com/t/add-jcombobox-with-planes-that-got-teached-manually/29171)

<div class="topic-metadata">

**Author:** [@anon50669273](https://forum.universal-robots.com/u/anon50669273)\
**Replies:** 0\
**Last updated:** [June 23, 2023, 12:14pm UTC](https://forum.universal-robots.com/t/add-jcombobox-with-planes-that-got-teached-manually/29171 "2023-06-23T12:14:40Z")

</div>

Hi together, I am trying to implement a JComboBox into my UR Cap. The combobox should list all planes, that got teached manually. What is the way to go to get access to the information of the planes? How do I implement…

---

## [How to create a Feature Pose outside the public void onOk(PositionParameters positionparameters)](https://forum.universal-robots.com/t/how-to-create-a-feature-pose-outside-the-public-void-onok-positionparameters-positionparameters/29139)

<div class="topic-metadata">

**Author:** [@anon20273742](https://forum.universal-robots.com/u/anon20273742)\
**Replies:** 1\
**Last updated:** [June 22, 2023, 6:09pm UTC](https://forum.universal-robots.com/t/how-to-create-a-feature-pose-outside-the-public-void-onok-positionparameters-positionparameters/29139 "2023-06-22T18:09:28Z")

</div>

I’m using as example createfeatureswing to create feature. void createFeature() { userInterfaceAPI.getUserInteraction().getUserDefinedRobotPosition(new RobotPositionCallback2() { @Override public void onOk(PositionPa…

---

## [How to convert a Java file to URCap](https://forum.universal-robots.com/t/how-to-convert-a-java-file-to-urcap/29114)

<div class="topic-metadata">

**Author:** [@anon99678286](https://forum.universal-robots.com/u/anon99678286)\
**Replies:** 1\
**Last updated:** [June 21, 2023, 2:36pm UTC](https://forum.universal-robots.com/t/how-to-convert-a-java-file-to-urcap/29114 "2023-06-21T14:36:36Z")

</div>

We have a java project done in Eclipse and we would like to turn it into a URCap file to put in Polyscope. We don’t know how to do this and the documentation online is not very helpful. Does anyone have any advice?

---

## [How java works with URCap](https://forum.universal-robots.com/t/how-java-works-with-urcap/29075)

<div class="topic-metadata">

**Author:** [@anon99678286](https://forum.universal-robots.com/u/anon99678286)\
**Replies:** 1\
**Last updated:** [June 19, 2023, 3:12pm UTC](https://forum.universal-robots.com/t/how-java-works-with-urcap/29075 "2023-06-19T15:12:23Z")

</div>

how does the SDK work and how does the implementation work with Java using Eclipse to run the Java file in the robot?

---

## [How to Create a combobox in the InstallationNode](https://forum.universal-robots.com/t/how-to-create-a-combobox-in-the-installationnode/28921)

<div class="topic-metadata">

**Author:** [@anon20273742](https://forum.universal-robots.com/u/anon20273742)\
**Replies:** 1\
**Last updated:** [June 9, 2023, 6:11pm UTC](https://forum.universal-robots.com/t/how-to-create-a-combobox-in-the-installationnode/28921 "2023-06-09T18:11:18Z")

</div>

Hi, I have just started working on the development of URCap and I am finding difficult to create a JComboBox in the GUI of Installation node. I’ve tried to use the drop-down list example of lightup urcap and I found out…

---

## [Toolbar eine Profinet Variable](https://forum.universal-robots.com/t/toolbar-eine-profinet-variable/15304)

<div class="topic-metadata">

**Author:** [@anon1326619](https://forum.universal-robots.com/u/anon1326619)\
**Replies:** 1\
**Last updated:** [May 4, 2023, 1:51pm UTC](https://forum.universal-robots.com/t/toolbar-eine-profinet-variable/15304 "2023-05-04T13:51:24Z")

</div>

Hallo, Wie kann man ins Toolbar eine Profinet-Variable zeigen lassen? Viele Grüße Nikolaj

---

## [Clarification on UI Tab Grids](https://forum.universal-robots.com/t/clarification-on-ui-tab-grids/25770)

<div class="topic-metadata">

**Author:** [@anon21446498](https://forum.universal-robots.com/u/anon21446498)\
**Replies:** 1\
**Last updated:** [April 26, 2023, 3:52pm UTC](https://forum.universal-robots.com/t/clarification-on-ui-tab-grids/25770 "2023-04-26T15:52:01Z")

</div>

I’m trying to stay compliant with the E-Series Style Guide v.1.0, and I noticed there is a section describing “UI Grids” for the Installation Tab, Program Tab, and Toolbar areas. Each with a picture like the following: …

---

## [Reduce program node head space](https://forum.universal-robots.com/t/reduce-program-node-head-space/28100)

<div class="topic-metadata">

**Author:** [@jonas.winter](https://forum.universal-robots.com/u/jonas.winter)\
**Replies:** 2\
**Last updated:** [April 25, 2023, 8:53am UTC](https://forum.universal-robots.com/t/reduce-program-node-head-space/28100 "2023-04-25T08:53:21Z")

</div>

Hi, we are trying to implement our program node UI (swing). Some questions came up: Is it possible to reduce the gap between the automatically inserted title and our content (see image)? Is it possible to reduce the …

---

## [Developping a URCap outside of VirtualBox](https://forum.universal-robots.com/t/developping-a-urcap-outside-of-virtualbox/27123)

<div class="topic-metadata">

**Author:** [@sam.verity-hilton](https://forum.universal-robots.com/u/sam.verity-hilton)\
**Replies:** 3\
**Last updated:** [April 23, 2023, 8:57pm UTC](https://forum.universal-robots.com/t/developping-a-urcap-outside-of-virtualbox/27123 "2023-04-23T20:57:28Z")

</div>

Hi Forum Users, I’m looking to try and separate my URCap development from a virtual box, having spent a bit of time playing with a docker container based URSim, it seems silly to have to use a virtual machine for develo…

---

## [Java daemon will not start](https://forum.universal-robots.com/t/java-daemon-will-not-start/3832)

<div class="topic-metadata">

**Author:** [@anon82878149](https://forum.universal-robots.com/u/anon82878149)\
**Replies:** 6\
**Last updated:** [April 17, 2023, 7:29am UTC](https://forum.universal-robots.com/t/java-daemon-will-not-start/3832 "2023-04-17T07:29:16Z")

</div>

Iv’e created a java daemon and added to the MyDaemon example. It will run fine when launched manually outside the URCap project however, it does not want to start when path added to the getExecutable() function. Anythi…

---

## [Two JComboBoxes made from a class create stackoverflow](https://forum.universal-robots.com/t/two-jcomboboxes-made-from-a-class-create-stackoverflow/27928)

<div class="topic-metadata">

**Author:** [@anon60934898](https://forum.universal-robots.com/u/anon60934898)\
**Replies:** 2\
**Last updated:** [April 13, 2023, 11:44am UTC](https://forum.universal-robots.com/t/two-jcomboboxes-made-from-a-class-create-stackoverflow/27928 "2023-04-13T11:44:03Z")

</div>

Hello, This is my first post so please let me know if I should change te qustion. use for URcap: I am working on making a URcap that allows for easier installation and ease of programing for opening and closing a grip…

---

## [Robot Commands through URCap](https://forum.universal-robots.com/t/robot-commands-through-urcap/26855)

<div class="topic-metadata">

**Author:** [@anon95296053](https://forum.universal-robots.com/u/anon95296053)\
**Replies:** 4\
**Last updated:** [February 19, 2023, 6:56am UTC](https://forum.universal-robots.com/t/robot-commands-through-urcap/26855 "2023-02-19T06:56:33Z")

</div>

Hi everybody! I’ve made a URCap inside program node, that has 5 buttons in its view. 1.Get actual TCP position - which I managed to retrieve from the real time reader (with the help of Mr. Jacob Bom Madsen and his URCa…

---

## [Program is not finished. Complete the yellow program-nodes in order to run the program](https://forum.universal-robots.com/t/program-is-not-finished-complete-the-yellow-program-nodes-in-order-to-run-the-program/22355)

<div class="topic-metadata">

**Author:** [@anon30216221](https://forum.universal-robots.com/u/anon30216221)\
**Replies:** 6\
**Last updated:** [January 19, 2023, 6:05pm UTC](https://forum.universal-robots.com/t/program-is-not-finished-complete-the-yellow-program-nodes-in-order-to-run-the-program/22355 "2023-01-19T18:05:32Z")

</div>

Hi all, I am currently making a URCap and am reaching the last stages of development. I am currently trying to test the URCap program node I made but when I insert one into the program tree I am met with this error when…

---

## [URCap Sample: Infotoolbar](https://forum.universal-robots.com/t/urcap-sample-infotoolbar/26196)

<div class="topic-metadata">

**Author:** [@dasa](https://forum.universal-robots.com/u/dasa)\
**Replies:** 0\
**Last updated:** [January 16, 2023, 12:01pm UTC](https://forum.universal-robots.com/t/urcap-sample-infotoolbar/26196 "2023-01-16T12:01:44Z")

</div>

InfoToolbar Description of functionality: Just install it and get a Toolbar with useful information. Time Date CPU load MEM load Requirements: SDK 1.12+

---

## [Changing the background color of a button](https://forum.universal-robots.com/t/changing-the-background-color-of-a-button/25994)

<div class="topic-metadata">

**Author:** [@anon31773672](https://forum.universal-robots.com/u/anon31773672)\
**Replies:** 1\
**Last updated:** [January 6, 2023, 10:20pm UTC](https://forum.universal-robots.com/t/changing-the-background-color-of-a-button/25994 "2023-01-06T22:20:50Z")

</div>

How to change the background color of a button when a button is pressed? In my case, when a button is pressed, I will toggle a boolean variable and depending upon the bool variable the background color needs to be chang…

---

## [How to refresh swing program node UI?](https://forum.universal-robots.com/t/how-to-refresh-swing-program-node-ui/25932)

<div class="topic-metadata">

**Author:** [@anon33600767](https://forum.universal-robots.com/u/anon33600767)\
**Replies:** 1\
**Last updated:** [January 3, 2023, 6:39pm UTC](https://forum.universal-robots.com/t/how-to-refresh-swing-program-node-ui/25932 "2023-01-03T18:39:08Z")

</div>

I am trying to redraw the UI of a program node based on user inputs (button click) and not sure how to invoke SwingProgramNodeView.buildUI() Is this doable? Thanks in advance

---

## [How do I add a move node (child) to an IfNode? (when creating a Template from Java)](https://forum.universal-robots.com/t/how-do-i-add-a-move-node-child-to-an-ifnode-when-creating-a-template-from-java/25902)

<div class="topic-metadata">

**Author:** [@benny.stromberg](https://forum.universal-robots.com/u/benny.stromberg)\
**Replies:** 1\
**Last updated:** [January 2, 2023, 3:30pm UTC](https://forum.universal-robots.com/t/how-do-i-add-a-move-node-child-to-an-ifnode-when-creating-a-template-from-java/25902 "2023-01-02T15:30:51Z")

</div>

I create a Template in my URcap to simplify for the user. In this template I want to use an IfNode. Creating the IfNode is no problem, however I cannot find information in the 1.8.0 Api on how to add a node in the If. …

---

## [Rotation around tool z axis without X and Y TCP movements](https://forum.universal-robots.com/t/rotation-around-tool-z-axis-without-x-and-y-tcp-movements/25436)

<div class="topic-metadata">

**Author:** [@florian.gaillard](https://forum.universal-robots.com/u/florian.gaillard)\
**Replies:** 5\
**Last updated:** [December 23, 2022, 9:47am UTC](https://forum.universal-robots.com/t/rotation-around-tool-z-axis-without-x-and-y-tcp-movements/25436 "2022-12-23T09:47:22Z")

</div>

Hello, I’m trying to make to cobot rotate 90° around TCP using URScript. So far, I tried: movej(pose\_trans(get\_actual\_tcp\_pose(), p\[0,0,0,0,0,1.57\])) movej(pose\_trans(get\_forward\_kin(), p\[0,0,0,0,0,1.57\])) The f…

---

## [Adding preconfigured relative waypoint child node](https://forum.universal-robots.com/t/adding-preconfigured-relative-waypoint-child-node/25808)

<div class="topic-metadata">

**Author:** [@duncan.lancaster](https://forum.universal-robots.com/u/duncan.lancaster)\
**Replies:** 0\
**Last updated:** [December 21, 2022, 1:51pm UTC](https://forum.universal-robots.com/t/adding-preconfigured-relative-waypoint-child-node/25808 "2022-12-21T13:51:30Z")

</div>

I want to define a set of relative motions by creating a moveP node and a series of waypoint child nodes but I cannot find a relative position waypoint node config and/or mention of anything similar in the API documentat…

---

## [Can't receive socket data when renaming socket](https://forum.universal-robots.com/t/cant-receive-socket-data-when-renaming-socket/25435)

<div class="topic-metadata">

**Author:** [@florian.gaillard](https://forum.universal-robots.com/u/florian.gaillard)\
**Replies:** 0\
**Last updated:** [December 2, 2022, 4:36pm UTC](https://forum.universal-robots.com/t/cant-receive-socket-data-when-renaming-socket/25435 "2022-12-02T16:36:14Z")

</div>

Hello, I’m working on an URCAP which communicates with 2 different sockets. When opening the sockets, I added in parameter the socket names that I wanted socket\_open("192.168.127.254",9001,socket\_name="socket\_ucr") A…

---

## [Toolbar hand - mode](https://forum.universal-robots.com/t/toolbar-hand-mode/21197)

<div class="topic-metadata">

**Author:** [@SynchMaster](https://forum.universal-robots.com/u/SynchMaster)\
**Replies:** 3\
**Last updated:** [November 18, 2022, 1:16pm UTC](https://forum.universal-robots.com/t/toolbar-hand-mode/21197 "2022-11-18T13:16:14Z")

</div>

Hello, I want to drive a seperate axis in hand mode with the toolbar from my URCap. I already created two buttons in the toolbar which can communicate with the installation node from the URCap. But now I dont know, how …

---

## [How Import Jar File to URCAP Dependency](https://forum.universal-robots.com/t/how-import-jar-file-to-urcap-dependency/24507)

<div class="topic-metadata">

**Author:** [@mekosrl](https://forum.universal-robots.com/u/mekosrl)\
**Replies:** 6\
**Last updated:** [October 26, 2022, 7:15am UTC](https://forum.universal-robots.com/t/how-import-jar-file-to-urcap-dependency/24507 "2022-10-26T07:15:32Z")

</div>

Hi all, I’m reading about import jar files in URCAP Projects, but how is it possible? Anyone has an example to show? My scope is to import jdbc.jar and use it’s functions with toolbar node. Thanks

---

## [Using mysql in an URcap](https://forum.universal-robots.com/t/using-mysql-in-an-urcap/6256)

<div class="topic-metadata">

**Author:** [@anon44688573](https://forum.universal-robots.com/u/anon44688573)\
**Replies:** 15\
**Last updated:** [October 20, 2022, 10:43am UTC](https://forum.universal-robots.com/t/using-mysql-in-an-urcap/6256 "2022-10-20T10:43:52Z")

</div>

Hello comunity, has anyone ever programmed a URcap that is communicating directly to a MySQL database ? I mean specifcally the jdbc.driver from mysql package. I have been seraching the internet space, but so far haven …

---

## [Hide installation view](https://forum.universal-robots.com/t/hide-installation-view/23036)

<div class="topic-metadata">

**Author:** [@francis](https://forum.universal-robots.com/u/francis)\
**Replies:** 5\
**Last updated:** [September 25, 2022, 11:54pm UTC](https://forum.universal-robots.com/t/hide-installation-view/23036 "2022-09-25T23:54:39Z")

</div>

I have an installation contribution + view + service for a functionality but I only use the contribution class and I want to hide the view part under installation tab\>URCaps. I think it’s the same as the question below. …

---

## [How to implement insertChildAfter or insertChildBefore](https://forum.universal-robots.com/t/how-to-implement-insertchildafter-or-insertchildbefore/3124)

<div class="topic-metadata">

**Author:** [@anon12495347](https://forum.universal-robots.com/u/anon12495347)\
**Replies:** 9\
**Last updated:** [September 22, 2022, 4:33am UTC](https://forum.universal-robots.com/t/how-to-implement-insertchildafter-or-insertchildbefore/3124 "2022-09-22T04:33:15Z")

</div>

I like to add a treenode just below the current URCAP program node. At the same tree level. Not as a child below. Syntax: To execute the java API function insertChildAfter, the current treenode (to use as 'add just …

---

## [Scriptsender & Scriptcommand classes suddenly stopped working](https://forum.universal-robots.com/t/scriptsender-scriptcommand-classes-suddenly-stopped-working/22840)

<div class="topic-metadata">

**Author:** [@anon30216221](https://forum.universal-robots.com/u/anon30216221)\
**Replies:** 0\
**Last updated:** [July 22, 2022, 8:13am UTC](https://forum.universal-robots.com/t/scriptsender-scriptcommand-classes-suddenly-stopped-working/22840 "2022-07-22T08:13:32Z")

</div>

Hi all, I made a method in the InstallationContribution that fetches the custom PMC functions a user implements and adds them as functions in the functionmodel and the urscript. I tested it and it worked good. After thi…

---

## [Error starting bundle](https://forum.universal-robots.com/t/error-starting-bundle/22831)

<div class="topic-metadata">

**Author:** [@anon43457052](https://forum.universal-robots.com/u/anon43457052)\
**Replies:** 0\
**Last updated:** [July 21, 2022, 10:06pm UTC](https://forum.universal-robots.com/t/error-starting-bundle/22831 "2022-07-21T22:06:40Z")

</div>

Hi there, I’m having issues building my CAP. My POM file and Activator are happy but i keep getting a “Error Starting Bundle.” I have a feeling this has to do with Maven, but I can’t see to figure out if I’m missing a …

[Previous page](https://forum.universal-robots.com/c/urcap-development/java/8.md)

[Next page](https://forum.universal-robots.com/c/urcap-development/java/8.md?page=2)
