Questions tagged as 'java'

1
answer

Why does logging use both logback-test.xml and logback.xml as the configuration file name?

By reading the logbook manual, in the configuration section , it says that it looks for the following configuration, in order: logback-test.xml logback.groovy logback.xml Why is the -test suffix? For me just having logback.xml...
asked by 11.01.2018 / 23:53
1
answer

How to pass parameters from one Fragment to another Fragment in the same FrameLayout?

I have a main Activity that has A frameLayout. FrameLayout starts with FragmentA. FragmentA has a button that calls FragmentB opening in the same frameLayout, replacing FragmentA. How to pass parameters from FragmentA to FragmentB in the same fr...
asked by 25.04.2018 / 15:03
1
answer

How to determine the access level of the elements of a class?

This is a competition issue from Secitec 2018 for the position of computer teacher. I have recourse with respect to this issue because there are no qualifiers, but access modifiers such as: private, protected and public. The reserved word "packa...
asked by 25.04.2018 / 00:26
1
answer

Change Icon JavaFx

I'm trying to change the icon but I'm not getting it. Code: package olamundojavafx; import com.sun.javafx.scene.SceneHelper; import javafx.application.Application; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.sc...
asked by 28.01.2018 / 19:29
1
answer

File structure and deployment of JSF applications with JBoss EAP in Debian 8

I would like to know how to configure JBoss EAP to deploy Java applications (JSF, Hibernate, PrimeFaces, Maven) in the /var/www/ folder. The structure of the /var/www folder is as follows: /var/www /php /java /...
asked by 27.01.2018 / 23:10
1
answer

Multiples Scheduled Tasks in WSO2

I'm trying to schedule two tasks in WSO2. I created the two xml files in the "tasks" folder in the ESB project but only one is being loaded at the time of deploy. I'm running on just one node. Are there any limitations to the amount of Tasks in...
asked by 19.12.2017 / 03:01
1
answer

How do you transform a Spring Boot project into a .jar file?

Personal I do not know how to turn a Spring Boot project into a .jar file My attempt was to get into the project with msdos and with the command mvn install to create the .jar file But there were several errors, there is no way to put it and...
asked by 12.12.2017 / 20:34
1
answer

My JLabel does not appear [closed]

I've used a couple of commands to make this Label appear, but I can not, in that object I'm using paint and ActionPerformed , but no drawing is overlapping this label and even then it does not appear, p> package scenes; import java.awt.A...
asked by 11.12.2017 / 19:31
1
answer

Error 404 apache Tomcat

I'm new to web services, however lately I've gotten to develop my own, however I can not even do a hello world due to an error that Tomcat is returning me, it just does not find the URL, can you help me? package Login; import javax.ws.rs.core...
asked by 28.02.2018 / 22:43
1
answer

Which string library can I use?

I'm refactoring a code that uses the eclipse plugin but I want to turn it into pure java. The idea is to turn the String into something with this style: Person@182f0db [ name=John Doe age=33 smoker=false ] The current code is using...
asked by 01.03.2018 / 17:44