Turning off Java Debug

I am running a program that is caling java and the following output is being generated:
I have been told that I need to turn java debug off to make the message go away.
How do I do that


DEBUG: JavaMail version 1.3
DEBUG: java.io.FileNotFoundException: c:\JDK\jre\lib\javamail.providers (The sys
tem cannot find the file specified)
DEBUG: URL jar:file:/d:/landmark/env/java/impl/smtp.jar!/META-INF/javamail.provi
ders
DEBUG: successfully loaded resource: jar:file:/d:/landmark/env/java/impl/smtp.ja
r!/META-INF/javamail.providers
DEBUG: not loading resource: /META-INF/javamail.default.providers
DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPTransport=javax.ma
il.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc
]}
DEBUG: Providers Listed By Protocol: {smtp=javax.mail.Provider[TRANSPORT,smtp,co
m.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
DEBUG: not loading resource: /META-INF/javamail.default.address.map
DEBUG: URL jar:file:/d:/landmark/env/java/impl/smtp.jar!/META-INF/javamail.addre
ss.map
DEBUG: successfully loaded resource: jar:file:/d:/landmark/env/java/impl/smtp.ja
r!/META-INF/javamail.address.map
DEBUG: java.io.FileNotFoundException
trebortoeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

almilyoCommented:
Is there a configuration file for the program that is calling java?
0
trebortoeAuthor Commented:
I am trying to find this out, but I don't think so.  The main tech for this software says that they do not get this error when they do installs at other locations.  He is not aware of a config file in their software to turn this off.
0
sunray_2003Commented:
Can you tell us more about your program. Is it a stand alone Java class or a jar file. When you say it calls Java - How do you call it. Do you have the your Java in the classpath of your program. A little more insight on your setup will help.
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

trebortoeAuthor Commented:
program is called as follows:

%LAW_JAVA_BIN%\java.exe -Xmx512m -DJBOSS_HOME=%JBOSS_HOME% -DJBOSS_SERVER=%JBOSS_SERVER% -DJ2EE_SERVER=%J2EE_SERVER% -DWAS_HOME=%WAS_HOME% -jar %LAENVDIR%\java\bin\secadm.jar %*

where:
%LAW_JAVA_HOME%=c:\JDK
%JBOSS_HOME%, %JBOSS_SERVER%, %J2EE_SERVER% are not set
%WAS_HOME% = c:\IBM\WebSphere\AppServer
%LAENVDIR% = d:\landmark\env
0
sunray_2003Commented:
Your jar file secadm.jar should have a manifest.mf file. This file will have the name of the class that is being called initially. You can look in the source of that file to see what information is logged and the mechanism by which it is logged.
Most probably any logger will have a property file or an xml file for its configuration. So you can unzip the secadm.jar and search for *.properties or *.xml files. In those files the logger level might me set to debug and you can change it to Info or Warning.
0
PascalHeraudCommented:
It seems you're using the "mail.debug" property of the JavaMail API causing to logs in DEBUG.
You may have something like  :
props.put("mail.debug", "true");

, into your Java code or maybe it reads it from a configuration file as stated here : http://java.sun.com/products/javamail/javadocs/overview-summary.html

You may also have a call to the method "setDebug(boolean debug) " on the javamail "Session" object :
http://java.sun.com/products/javamail/javadocs/javax/mail/Session.html

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PascalHeraudCommented:
Could you answer if it was the solution for you ?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.