Posts by Andre Hoffmann • 99 points
6 posts
-
0
votes1
answer360
viewsQ: Bring all table records with jpa and eclipselink
Guys, I have a question here at JPA. Today I have a method to search the Ufs by ID, as in the example below: public Uf consulta(Integer id) { EntityManager em = getEM(); Uf uf = new Uf(); try {…
-
0
votes1
answer937
viewsA: Running cmd commands or scripts from java does not work
I solved the problem. The solution found was to change the script to: tasklist | find /i "servico.exe" IF %ERRORLEVEL% == 0 ( taskkill /f /im "servico.exe" taskkill /f /im "servico2.exe" ping -n 2…
-
4
votes1
answer937
viewsQ: Running cmd commands or scripts from java does not work
I’m having trouble running some commands through java. Whether I run them directly from Netbeans or run the project directly from my machine works perfectly any of the following commands: String…
-
1
votes1
answer2246
viewsQ: Is there a way to change a default program by java, cmd or regedit?
I am developing a java system, but from it I should change the default program to open . pdf in the switch. In Windows 10 it opens by default in Edge, but from the system it should change to Adobe.…
-
1
votes1
answer354
viewsQ: How to save java -version return to cmd
I have a problem saving to . txt the return of the command "java -version" executed in cmd. I am running as follows: java -version >> "%temp%/resultado.txt" It creates the file but does not…
-
3
votes1
answer489
viewsQ: How to send several variables to another page and return in a div (Jquery)?
I’m trying to send data from a form to another page, and bring from it a chart in a div with id="return", which is below the form. The form has the code, data1, data2 and store, but it seems that…