Questions tagged as 'java'

0
answers

Compress File Android Studio

I'm trying to compress my File which in case it's an image but it keeps going with sizes over 4MB someone would know to help me. Here is the code below: @Override protected void onActivityResult(int requestCode, int resultCode, Intent data)...
asked by 12.12.2018 / 00:33
0
answers

Weblogic using Eclipse-Link instead of Hibernate

I'm developing a migration project from Jboss to Weblogic and my application in Jboss runs perfectly, however in Weblogic I get the following error:    Exception [EclipseLink-7298] (Eclipse Persistence Services - 2...
asked by 07.12.2018 / 21:04
0
answers

passing media player to AsyncTask

So following the tutorial below, link I arrived at the following% w / w Player that extends Class : package carcleo.com.radiosingular.classes; import android.media.MediaPlayer; import android.os.AsyncTask; import android.util....
asked by 22.12.2018 / 14:18
0
answers

Sequence of errors when building in Android Studio

Hello, Friends, I'm starting to study the Java language Android and Studio Android, I'm having problems with a project that I downloaded from the Web, but I already followed some tutorials mentioning the errors, where they asked to include the Go...
asked by 22.12.2018 / 17:24
0
answers

java.sql.SQLFeatureNotSupportedException error attempting to retrieve data from a table

I'm having this difficulty retrieving data from a table. The recovery code I'm doing on my own because I do not find any examples to try to follow, but I've been breaking my head for a long time and I can not seem to get out of the way. Does any...
asked by 15.12.2018 / 23:42
0
answers

Attribute rendered is not working in p: dialog

I need to render a form that is inside a panel in p: dialog and after I save the data, I want to hide it and render a p: fileUpload in p: dialog. But I can not do this, I do not know what's wrong. The methods I call do not simply do not change t...
asked by 16.12.2018 / 13:06
2
answers

Get table HTML data by JSP [closed]

I search the data in the database and put a table in my JSP. The information is from several flights of an airline company. The goal is to choose one air ticket among all those loaded. I want to put a link "buy" on each line and, when cl...
asked by 06.12.2018 / 02:35
1
answer

Syntax error on token "else", delete this token [closed]

if(comando == "w"); { System.out.println("Você foi para o norte."); System.out.println("Um inimigo surgiu!!! Oque deseja fazer? (a = atacar e f = fugir)"); comando = in.nextLine(); if(comando == "a"); { if(rand.nextInt(100...
asked by 06.12.2018 / 02:23
2
answers

Send List + Parameter for Controller

I'm trying to send a list and a parameter to my controller. My controller looks like this: @RequestMapping("/lista-receitas") @ResponseBody public String recebeLista(@RequestBody List<Receita> receitas, @RequestParam("nome") String nome)...
asked by 17.12.2018 / 13:45
1
answer

Error creating project in maven

I'm trying to create a project using maven with the following command: mvn archetype:generate \ -DarchetypeGroupId=org.apache.maven.archetypes \ -DarchetypeArtifactId=maven-archetype-quickstart \ -Dversion=1.0-SNAPSHOT \ -DgroupId=com....
asked by 17.12.2018 / 13:25