Using Verbose to Debug

Using the -verbose option during compilation and execution is very helpful&#151both for obtaining more information about the classes being loaded by the compiler and the interpreter and to find out the point of failures in your code.

This feature is most useful when you have multiple classes with the same name set in the class path, or when you are updating code at multiple locations; using this method, you can instantly spot if some wrong class is being loaded and executed and not the one you have edited. This helps in solving problems caused due to the CLASSPATH chaos. It also helps you in figuring out exactly which class files are being used to compile your java source file.

CLASSPATH chaos occurs when you have a directory or jar file in the CLASSPATH, which happens to be before the directoryin which you are editing source. So when you try to execute the class you have just edited&#151since some other directory or jar is their already in the CLASSPATH&#151the JVM will pick up that class and execute it. Without using the -verbose, it becomes difficult to figure out which class file exactly is the JVM executing.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

The Latest

Top 5 B2B SaaS Marketing Agencies for 2023

In recent years, the software-as-a-service (SaaS) sector has experienced exponential growth as more and more companies choose cloud-based solutions. Any SaaS company hoping to stay ahead of the curve in this quickly changing industry needs to invest in effective marketing. So selecting the best marketing agency can mean the difference

technology leadership

Why the World Needs More Technology Leadership

As a fact, technology has touched every single aspect of our lives. And there are some technology giants in today’s world which have been frequently opined to have a strong influence on recent overall technological influence. Moreover, those tech giants have popular technology leaders leading the companies toward achieving greatness.

iOS app development

The Future of iOS App Development: Trends to Watch

When it launched in 2008, the Apple App Store only had 500 apps available. By the first quarter of 2022, the store had about 2.18 million iOS-exclusive apps. Average monthly app releases for the platform reached 34,000 in the first half of 2022, indicating rapid growth in iOS app development.