Link to home
Start Free TrialLog in
Avatar of trebortoe
trebortoe

asked on

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
Avatar of almilyo
almilyo

Is there a configuration file for the program that is calling java?
Avatar of trebortoe

ASKER

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.
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.
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
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.
ASKER CERTIFIED SOLUTION
Avatar of PascalHeraud
PascalHeraud

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Could you answer if it was the solution for you ?