Posts by cleberz • 199 points
5 posts
-
0
votes1
answer50
viewsA: Open an . exe file inside a . jar file
If I understand correctly what you asked, do you want to run a jar that runs an executable? If so, you can use the Runtime.exec() method. For example, Runtime.getRuntime().exec("ping…
-
5
votes2
answers895
viewsA: Junit unit test for default system routines
The idea of the assertions is to verify if the behavior produced by the method or class equals the expected. First, System.out.println, as Maniero commented above, it is not necessary, because the…
-
0
votes2
answers1058
viewsA: How to generate log files with data log4j
For documentation, you must use a RollingFileAppender like you did, using the property FilePattern in conjunction with File: log4j.appender.fileOut.FilePattern=d://logTeste-%d{dd-MM-yyyy}.log…
-
2
votes1
answer244
viewsA: Error opening jar on command line
Adding to the @user2964140 response, and assuming the library is in c: as you said, the command to execute should be: java -cp .;c:\suabiblioteca.jar -jar test.jar This response assumes that your…
-
2
votes2
answers314
viewsA: Error related to binary tree removal and child relocation (java.lang.Nullpointerexception)
The problem specifically of Nullpointerexception on that line is occurring because its method remove() is passing a null value in the parameter dest function new in the() : ... if(root.valor ==…