Questions tagged as 'java'

1
answer

JAVA Query with ACCESS - Slowdown

I need access to the database ACCESS, the query is accessing correctly, but I noticed that to have the information return, JAVA first reads and all tables and all data, is it? does not have a way of doing the query only what is requested? DAO...
asked by 15.02.2016 / 14:33
1
answer

Why when I start Activity does the app close?

I have in my onClick method the button to open the Activity within the PagerCronActivityActivity, as follows. Bundle args = new Bundle(); Intent i = new Intent(CadastroProntuarioActivity.this, ProntuarioActivity.class); args.putString("nomeCo...
asked by 01.02.2016 / 16:42
1
answer

How to use an arithmetic signal to separate one value from the other in a Mathematical String? [closed]

I'm developing a calculator which, at the end of the code, executes a function called mostrarResultado() , this function gets the String of campoTexto of the screen, Ex :( "2 + 3"), and I want any either the operator (which is store...
asked by 01.02.2016 / 22:00
2
answers

How to translate the MySql query that has a sum for Hibernate?

I need to translate the following MySql query to Hibernate: select sum(TOTAL_MERCADORIA_BRL) from PROCESSO group by PERIODO like 'DEZ-15'; What would be the best way to do this query, but using Hibernate?     
asked by 16.12.2015 / 16:41
1
answer

Could not find or load main class file.java

Hi, I've been trying to make a code run in a new environment, but I'm not having success. Whenever I open cmd and run java arquivo.java , I get the Não foi possível localizar nem carregar a classe principal arquivo.java error....
asked by 15.12.2015 / 23:21
2
answers

JSP how to include a select inside a checkbox

I'm developing a web application with java spring mvc , and I need to list items in a dynamic checkboxList and include a select option on each item. Something that in html would be similar to the code below: <ul> <li>...
asked by 10.04.2016 / 17:10
1
answer

How to store images in an Android vector?

I have images inside drawable and to access it, R.drawable.myimage is sufficient. How do I store these images in vetor ?     
asked by 21.02.2016 / 16:54
2
answers

How to perform a SUM in Hibernate

I'm trying to do a select via HQL but Java can not identify SUM by generating the following error: java.lang.NullPointerException at org.hibernate.dialect.function.StandardAnsiSqlAggregationFunctions$SumFunction.determineJdbcTypeCode(StandardA...
asked by 19.02.2016 / 23:02
2
answers

Need for SQLite [closed]

I want to clarify the following question: I have a Android project that uses a webservice , but I did all the data access part in Android and my webservice will be done in Java . After I finished all the class...
asked by 13.12.2016 / 13:58
1
answer

Shortcut to stop tomcat in Eclipse [closed]

Does anyone know a shortcut to stop tomcat in Eclipse? I've been searching and found nothing useful.     
asked by 16.12.2016 / 16:43