Alder Potenz

+ Follow
since Jul 31, 2012
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Alder Potenz

Hi Junilu. Thanks you for your answer. This also means on compile time production and test classes are combined in their respective packages.

Junilu Lacar wrote:It has to do with the package declarations and the classpath settings when you run your tests.

By convention, the package structure that you create under src/test mirrors the package structure under src/main. You also declare your *Test classes to be in the same package as the class under test. This way, you can even reference members in your production code that have package-private (default) access.

When running tests, the test class output directory is added to the classpath in addition to the production class output directory. As a result, even though the two may be entirely separate physical directories in the file system, to the Java Runtime as long as the classes are declared to be in the same package, they will be loaded and treated as being "together" in the same package.

11 months ago
Hi. I am curious why classes in src/main are visible to the test classes under the src/test in a maven project.

Are they combined on compile time and test classes are just removed when packaging the application?

Thanks in advance.
11 months ago
Hi Jeanne/Henry,

Thanks for your answers. It is rare to use that in objects but comparing to null and traversing to list is a great example.

I can sleep soundly tonight

Hi Jeanne,

Thanks for your reply. Yes, commonly I encounter the .equals() method. But what is the common use of == method when it comes to objects. Is there a scenario or example why we should test if two object are equal?
This may sound very basic. I understand what equality means when tested with the == operator. But I am curious of scenarios, design and examples on why we should check if references are pointing to the same object using the == operator.
Just missed this post by a few days.

I am currently preparing for an OCJP 1.6 certification.

Good luck to all of us


Thanks for the help. What I did was include property files (properties is programmatically changing) inside the jar of the application.
Upon start up of the application the application will check if the files are in already in the user's directory. If not it will copy the property files in the users directory.

I use .getResourceAsStream() to extract the resources and put it in the users directory.

3 years ago
Thanks for your reply.

But how can I achieve this solution using JAWS?

For such application, I used to store such properties in user_home directory in a folder specific for my application.

Actually the configuration is saved in an xml file when the user change it in the configuration window of the application.

I want the user be able to use the last configuration setting he set to the application.
3 years ago
Hello all,

I developed an application that is accessing some property files. The condition was that the user should be able to modify the content or parameters of those property file.
How can I distribute the application using Java web start that also includes those property file in the client side?

3 years ago
Welcome! Barry!
3 years ago