Questions tagged as 'netbeans'

1
answer

How to extract rows or columns from a string in Java?

I explain: I get a response string from a console of a switch. This is fine and it works. A command is executed that returns a table like this: SwitchPrueba#show port-security Secure Port MaxSecureAddr CurrentAddr SecurityViolation Secur...
asked by 07.03.2018 / 22:15
3
answers

Doubt over reference when instantiating an object

I have a question regarding the creation of objects, I will give 3 examples: List<> nuevaLista = new ArrayList<>(); ArrayList<> nuevaLista= new ArrayList<>(); List <> nuevaLista = new Linked...
asked by 04.08.2018 / 00:06
1
answer

How to calculate arrears in mysql

hi friends I am trying to calculate the arrears of the teachers ... making the query I get what I want but reviewing the data I get in some fields with null values. Here the consultation: SELECT th.codigopersonal, tp.nombres, tr.fecha, th.dia,...
asked by 20.02.2018 / 17:59
1
answer

Chat TCP java sockets

I'm trying to make a chat-type program. I have 2 clients and 1 server. My problem is that if I write messages from chat 1 to chat 2 I do not have problems but if I send messages from chat 2 to chat 1 nothing comes out, but if it is sent to the s...
asked by 18.01.2018 / 20:39
2
answers

How to extract data from a JSON from Java

Hi, I'm trying to use the google API Snapp to road, the problem is that it returns me a JSON and I do not know how to extract latitude and longitude since I want to store them in a database, I'm using java, I would like to the help this is the J...
asked by 31.12.2017 / 00:00
2
answers

Error connecting mysql base with java

I use the following code to connect to mysql public static void main(String[] args) { MapeadorServicio aux = new MapeadorServicio(); Auto aux1 = new Auto(0); Persistencia p = Persistencia.getInstancia(); p.guardar(aux); } public...
asked by 28.12.2017 / 00:24
1
answer

Java Compilation error

I am currently creating a web project with java in netbeans, at the moment of giving it to compile, it throws me the following error    ant -f C: \ Users \ User \ Documents \ NetBeansProjects \ Web Application -Dnb.internal.action.name = run...
asked by 07.12.2017 / 00:34
2
answers

Basic Scraping in Java with Jsoup

I have a simple form this way <!DOCTYPE html> <html> <head> <title>INICIO</title> </head> <body> <div align="center"> <legend>INGRESO</legend> <form action="evaluar.php" m...
asked by 18.11.2017 / 23:51
1
answer

Problem when linking two database tables with JPA?

Hello my problem is that I can not relate two tables that are one to many, simply by executing my code in netbeans the table without foreign shows the record well, but in which contains foreign key does not show simply limited to write where the...
asked by 10.11.2017 / 07:27
2
answers

Error with two persistence units: java.lang.RuntimeException: javax.annotation.processing.FilerException:

When compiling and executing in the IDE the application works well but when generating the jar it generates this error: An annotation processor threw an uncaught exception. Consult the following stack trace for details. java.lang.RuntimeExcept...
asked by 20.09.2017 / 03:25