Questions tagged as 'java'

1
answer

JNI help with reading C binaries and writing in Java

I have to make a program that reads binary files of any kind from C and through JNI pass the read bytes to java. That part is already, what I need is to write a new file in Java and pass all the data that collects C. I put the code that I have,...
asked by 26.10.2016 / 00:28
4
answers

Disable the functions of the three buttons (Back, Home, change app) android [closed]

I am looking for some way to disable the functions of the navigation bar buttons so that my app can not be closed. Thank you very much.     
asked by 27.01.2017 / 21:46
1
answer

HIVE - Error: org.apache.hive.service.cli.HiveSQLException: Error while compiling statement

Very good. The first thing I have to say is that I am a first-time user of Hive, so my mistake may be a beginner's mistake. My problem is this: This is trying to create a table with five columns (game-clock, time, game-event, shot-clock, loca...
asked by 08.03.2017 / 17:23
1
answer

Problem when inserting data into a database

I have some data that I want to insert in my BD, but the problem is that they are not inserted. Table creation in BD: public class DB extends SQLiteOpenHelper{ String tabla ="CREATE TABLE Datos (Id INTEGER PRIMARY KEY AUTOINCREMENT...
asked by 08.03.2017 / 23:19
3
answers

StringBuilder - The Append method stops working at a certain point

I am working with a small project, graphipedia (It is used to import dumps from wikipedia or some other wiki), and through this I am importing a dump of wikiquotes. This project uses stax internally to parse the xml (that is, the dump) At som...
asked by 29.05.2016 / 20:29
1
answer

How to use for example this method public static boolean isConnectedWifi (Context context) in another class?

In a class I am validating the connection to the network in Android, and I would like to validate if the true value of that method in another class is executed by another method. Class 1 public static boolean isConnectedWifi(Context context...
asked by 22.06.2016 / 22:49
2
answers

Create query in a repository in spring

I have a repository and in its interface I want to create a function that requests a String and returns an object of type user, in mysql the syntax would be like this: SELECT C.NOMBRE FROM CLIENTE C, ALIAS A WHERE A.NOMBRE = 'bar' AND A.CLIENT...
asked by 02.03.2017 / 17:49
1
answer

Java executable

I have already converted my Java executable to .exe, but when I run the .exe I log in and I accept, I get the following error:    "This driver is not configured for authentication   integrated ". This is my connection to the sql server da...
asked by 07.03.2017 / 20:23
1
answer

Warning javac on Ubuntu

I'm trying to compile a .java and by doing: $ javac archivo.java The following warning appears: It is recommended that the compiler be upgraded I have the following versions: $ javac -version javac 1.7.0_80 $ java -version ja...
asked by 22.02.2016 / 17:57
1
answer

Read a file with Java Web Start (jnlp)

I have a java application that reads a config.db file, locally it works correctly but when executing it from jnlp it tells me that this file does not exist, in the same way and case they occur with the reports * .jasper config. properties etc....
asked by 29.03.2016 / 19:05