Questions tagged as 'java'

0
answers

org.apache.axis2.databinding.ADBBean cast error [closed]

I'm trying to do a conversion from a system that is in java 6 which is working perfectly, but after switching to maven3 and java7 gave error on a part of the system I'm not realizing the problem. MinhaCLass_type1 ee = método.get() Both "MyCl...
asked by 14.06.2018 / 11:58
0
answers

Convert Encryption with public key JAVA to C #

I need to send an encrypted hash in C # but the API only gives me this possibility in java, how can I follow this logic and apply in C #? try { try { cipher = Cipher.getInstance("RSA/None/PKCS1Padding", "SC"); } cat...
asked by 14.06.2018 / 16:48
1
answer

Problem to link JFrame with main

I want to start using Jframe, I have a (very simple) petshop program that I can, include customer, include animal, do service, consult client and delete client. I wanted to make a menu for it using Jframe, but I have no idea how to link the two...
asked by 29.05.2018 / 05:53
0
answers

How to convert Object to byte [] and the inverse?

I need to upload a file over a udp connection to a college job. I created a package class that contains the header and part of the file to be submitted. I made the following method to convert the object to byte []: public static byte[] object...
asked by 26.05.2018 / 15:17
0
answers

Compare two hashmaps

Hello, I need to buy the values of 2 Hashmaps. I'm doing an Image Matcher using the same amount of colors using this code, but I'm not sure how I can compare them. public static double DoesMatch2(BufferedImage arg0, BufferedImage arg1){ Ha...
asked by 25.05.2018 / 21:38
0
answers

Java - Apache POI for Excel

I need to extract information from an Excel (xls) file in Biff4 format, and Apache POI, although great for reading Excel 97-2003 files, does not help much with these older versions. What other library can I use to read these older files?    ...
asked by 05.06.2018 / 21:06
0
answers

Jaas does not work with macat plugin from tomcat7

I'm using JAAS for the security of my webapp . I only declare a JDBCRealm of normal Tomcat, passing the bank credentials ... it follows context.xml with the declaration of Realm: context.xml <?xml version='1.0' en...
asked by 21.05.2018 / 20:44
0
answers

Convert PDF to Word without losing the styles

I wanted a code to convert a pdf document into word without losing the styles. I have this class that converts to word plus it does not maintain document styles. public class teste { public static void main(String[] args) throws IOException...
asked by 05.06.2018 / 13:40
1
answer

Data Structure, Double-chained List. Doubt about the constructor of the DoubleList class

   Note: Code taken from a Data Structure workbook.       Why not pass the number of nodes in the builder's Duplicated Directory (such as in Stack or Queue structures)? public class ListaDupla { private NoDupla prim; private NoDupla...
asked by 18.05.2018 / 01:02
0
answers

Update child without deleting record using JPA

I have an entity that has a list inside it. This list is of the same type as its entity. Ex: public class Aluno(){ List<Pessoa> responsaveis = CollectionsBuilder.createDefaultArrayList(); } When updating the student, removing a re...
asked by 26.06.2018 / 15:31