Forums Register Login

System.out.println prints nothing??

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
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)
+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
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
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1973 times.
Similar Threads
diff btw java and javaw
<terminated, exit value: 0>C:\Program Files\Java\jre6\bin\javaw.exe (Feb 12, 2009 1:54:50 PM)
difference
JARS and Manifest files
jar
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:57:56.