|
|
How to avoid the message "Unknown source"?
Before I used the option -classic with java but it is not supported anymore.
I would like to know the line where is the problem in my program.
Thanks in advance for your answer.
Richard
|
|
0
|
|
|
|
Reply
|
grin (12)
|
12/10/2005 5:16:40 PM |
|
Use -Djava.compiler=NONE
This will disable the JIT, which is the evildoer that discards
file/linenumber information.
- Thomas
Richard wrote:
> Before I used the option -classic with java but it is not supported anymore.
>
> I would like to know the line where is the problem in my program.
>
> Thanks in advance for your answer.
>
> Richard
|
|
0
|
|
|
|
Reply
|
thomas_okken (19)
|
12/10/2005 6:04:22 PM
|
|
Hello Thomas,
Nothing is changed with the option -Djava.compiler=NONE. My version of
Java : 1.5.0
Richard
thomas_okken@hotmail.com a �crit :
> Use -Djava.compiler=NONE
> This will disable the JIT, which is the evildoer that discards
> file/linenumber information.
>
> - Thomas
>
> Richard wrote:
>
>>Before I used the option -classic with java but it is not supported anymore.
>>
>>I would like to know the line where is the problem in my program.
>>
>>Thanks in advance for your answer.
>>
>>Richard
>
>
|
|
0
|
|
|
|
Reply
|
grin (12)
|
12/10/2005 9:14:22 PM
|
|
Perhaps your classes do not contain file/line information. If I
remember correctly, javac does emit this information by default, but
the Ant javac task does not. If you're using Ant, try invoking javac
using code like this:
<javac srcdir="src"
destdir="classes"
debug="on"
debuglevel="source,lines"/>
If you're using the javac tool, make sure you do not have -g:none on
the command line. If no -g option is present, javac will generate file
and line number information.
Hope this helps,
- Thomas
|
|
0
|
|
|
|
Reply
|
thomas_okken (19)
|
12/11/2005 5:36:55 PM
|
|
|
3 Replies
49 Views
(page loaded in 0.095 seconds)
Similiar Articles: I cannot run Matlab 7.1 properly - comp.soft-sys.matlab(Unknown Source) com.mathworks.mwswing.table ... followed by this very long error message that starts with the lines: javax.swing.border.EmptyBorder.<init> (unknown source ... String argument is an unknown option - comp.soft-sys.matlab ..."Francesco De Marianis" <francesco_demarianis@hotmail.com> wrote in message ... Unknown Source)> at java.lang.Runtime.exec(Unknown ... mindprod.com/jgloss/console.html ... Removing an item from a Jlist - comp.lang.java.help... message: ception occurred during event dispatching: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1 at java.awt.Container.remove(Unknown Source ... Matlab GUIDE stability issue - comp.soft-sys.matlab... GUIDE would freeze, and I see the CPU running max for Matlab, and see messages ... Java heap space at java.awt.image.DataBufferInt.<init>(Unknown Source) at java.awt ... Connection timed out - comp.lang.java.programmer... connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at ... Explains why you receive an error message when you connect to a Web site that ... Prevent PDF from being copied - comp.text.pdfIf I load a PDF file on to a server, how can I prevent ... Bert. <yehcp@pdfwizard.com> wrote in message news ... to prevent people from saving or viewing the source code ... Getting an image object from a JPanel that is not visible - comp ...... at javax.swing.ImageIcon.<init>(Unknown Source) because the ... Weidenfeller <nobody@ericsson.invalid> wrote in message ... There are a lot of places where AWT code will avoid ... open source version of the keytool - comp.lang.java.security ...... Green <look-on@mindprod.com.invalid> wrote in message ... you. :-p Of course, the time involved would prevent ... JavaKeyStore$JKS.engineLoad(Unknown Source) at java.security ... HandShaking Exception : No trusted Certificate Found - comp.lang ...... on the machine while other servers are generating the following error message ... found at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source ... Incompatible magic value 1008813135 error with applet - comp.lang ...The error message is below, but the important part seems to be "java.lang ... defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source ... java - log4j how to avoid "unknown source" message - Stack OverflowAm using my java application with log4j as logging mechanism. For most of the debug statements of the 3rd party jars am using, am getting filename with line numbers ... Citing Sources - Duke University Libraries - HomeCiting Sources connects users to style manuals (APA, MLA, Chicago, Turabian and CSE), citation management tools, and information about avoiding plagiarism. 7/17/2012 5:43:32 AM
|
|
|
|
|
|
|
|
|