• Post Reply Bookmark Topic Watch Topic
  • New Topic

System.out.println prints nothing??  RSS feed

 
olze oli
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i just downloaded the svn of htmlunit and wanted to debug it
as i get some heavy problems (the debugger stops on wrong lines etc.) i thought i simply put in some System.outs (ok thats better than nothing, at least i see where i am) but... they dont print anything?
what can be wrong? i renamed javaw.exe to javaw_.exe and copied java.exe to javaw.exe
that was my only thought what could be wrong... the logger shows some js error messages
this makes me crazy
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
olze oli wrote:as i get some heavy problems (the debugger stops on wrong lines etc.)

That's a sign that your compiled *.class files don't match your *.java files. Try recompiling all your code.
 
olze oli
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i even downloaded the whole svn again (it "looks" like its working now (debugging)), a simple clean&build didnt solve that debug issue but i have seen that this could be a bug in the sun jdk (even occurs with openjdk under linux)
but i still dont get any system.out message (i put in every method on that .java file the system.out directly after the method declaration)
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see, did you try to open the class file with *decompiler* and check whether the System.out.println statement appear in the file or not?
 
olze oli
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well it must be in the file because when i run the jar with java -jar file.jar i get the output i need
but i have to debug it in netbeans with the output
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!