Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

How to avoid the message "Unknown source"?

Thread view: 
Richard - 10 Dec 2005 17:16 GMT
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
thomas_okken@hotmail.com - 10 Dec 2005 18:04 GMT
Use -Djava.compiler=NONE
This will disable the JIT, which is the evildoer that discards
file/linenumber information.

- Thomas

> Before I used the option -classic with java but it is not supported anymore.
>
[quoted text clipped - 3 lines]
>
> Richard
Richard - 10 Dec 2005 21:14 GMT
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
[quoted text clipped - 9 lines]
>>
>>Richard
Thomas Okken - 11 Dec 2005 17:36 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.