Ok so in other words because Java has to confrom with the least common denominator without changing the environment

where I specify .classpath?
I mean where I put .classpath

i don't know what .classpath is, not what it has to do with the current working directory of a process.

okie

i am talking about operating system level processes.

So there is no way in java to read any input WITHOUT waiting for the user to hit the enter key?

de1, am I missing something? does Ctrl-D on Linux serve the same purpose as Ctrl-C on windows, stop the execution of a console app.

correct, unless you use a platform specific mechanism to switch the console from cooked to raw mode, or so.

de1, I thought it was Ctrl-C on both platforms, otherwise, what's the purpose of Ctrl-D in you app?

something really strange!

your* app

Ctrl-D on linux generates an EOF to input of the program. The same thing happens on windows with Ctrl-Z. So Ctrl-D for nix, Ctrl-Z for winblowsz. Ctrl-C is something different entirely, exiting whatever program may be running

I've made the function perform in the stateless bean

de1, right. sorry I meant Ctrl-Z

When sending a datagram packet using a datagramchannel object, will the outgoing packet be the bytebuffer's capacity or the bytebuffer's limit????

What's cooked or raw mode?

modes of the console. not java specific. but java switches the console to that mode upon execution.

Hmm

to switch the console to raw mode is a one liner in windows, but it has to be done in the process itself, thus JNI or so.

JNI?
java native interface, /me reading
Ok so in other words… because Java has to confrom with the least common denominator, without changing the environment in which java itself is being run (aka console raw mode, etc), java HAS to end std.in input with carriage returns?

no idea why java defaults to that console mode. it may have to do with the least common denominator, or maybe there was another reason to go for that.

but without changing the console mode, ALL std.in input is terminated by a carriage return?

try to connect stdin to a file, see wether that requires a linebreak. it might not.
it might only be so if the console is the one connected to stdin.

what does it mean "the type xxx cannot be resolved - it is indirectly referenced from required .class files"?

(and not necessarily if stdin is connected to a file)
no clue. are you compiling with javac on the console? if not, try, it might yield a different error message.

ok

I think it means that your class A uses class B which uses class C. B is in a jar somewhere, but C is not

oh ok..
umh..

The absolute path within the class path
I am using Resource(..) and that is what it told me to specify as a parameter
and it's driving me insane

class path, can contain paths, absolute and relative paths.

because I know the path I am providing is write
right
all the paths in my classpath are relative

why are you telling me that?

because I want to talk to someone else for a change
instead of myself

ok.. might it be that i'm using a package that uses the package i modified, and they mismatch on the classes i changed?

my eyes are more or less green.

Thanks so much for your help

but in this package i looked for references to that and i didnt find

welcome
pastebin the exact error message and possibly create a test case?

Clackwell, hmm … interesting … in my test on Windows XP, read() on an input stream returns -1 for Ctrl-Z, and Ctrl-C terminates the program, not line feed.
Clackwell, hmm … interesting … in my test on Windows XP, read() on an input stream returns -1 for Ctrl-Z, and Ctrl-C terminates the program, not line feed.
well, de1 is gone so who cares

so what does that mean again? Absolute path within the classpath?
I didn't quite understand your comment above..

i have no idea what you are talking about. you need to provide all the relevant information or i can't participate.
Clackwell is about to get disconnected by the way, connection dropped, etc.

oh.. there is a Clackwell and a Blackwell..
haha

in java is there a generic method that all objects have to free a class, even if the class doesn't extend any other class?

hi. is there a .class file reader? that is able to show the opcodes inside .class file

okay.. so I am using Spring.. and Spring has a method called.. ClassPathResource(..) which takes as a parameter some path to my context file..

what does "freeing a class" mean, and why does it matter wether that class extends any other classes?

free the memory taken by the instance of the class rather

decompiler? disassembler?

Blackwell, i want to see the opcodes out of a .class file

the documentation says that ClassPathResource takes in the absolute path relative to the classpath

not the source code

that's up to the garbage collector. unloading classes works more or less when following a few simple rules, as far as i know.

jwisher, "freeing" classes are handled automatically by the GC

decompiler? disassembler?

so there isn't any way to do it with code?

Blackwell, what's the difference?

no clue about spring.

Blackwell, when it comes to .class that is

jwisher, you can suggest that the GC free a resource, but it can ignore you.

one gets you bytecode assembler mnemonics, the other might get you more or less compilable java web hosting code.

ok thanks

might want to read up on garbage collection in java.
~gc

Blackwell, garbage collection is http://java.sun.com/javase/technologies/hotspot/gc/gc_tuning_6.html and http://www-128.ibm.com/developerworks/java/library/j-jtp09275.html?ca=dgr-lnxw07JavaUrbanLegends

will do, thx

Blackwell, i want to see the jvm opcodes of a .class file.. how?

decompiler? disassembler?

javap
~tooldocs

cheeser, tooldocs is http://java.sun.com/j2se/1.5.0/docs/tooldocs

studied the api doc, can't tell what that should mean shrug

Blackwell, bytecode assembler mnemonics

use a disassembler then, maybe javap as cheeser suggested?

javap is the right tool

an attempt to find example uses: http://www.google.com/search?q=%22new+classpathresource(%22&hl=en&start=10&sa=N

o man i'm confused

"all i wanted was a disassembler, and all you gave me is a disassembler, shame on you guys"

disassembler is not the correct term
or is it?

http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javap.html

ok nevermind.

~rif

Reading Is Fundamental

"Prints out disassembled code, i.e., the instructions that comprise the Java bytecodes, for each of the methods in the class."
getting people to do the work for you is a useful skill too, however ;]

i was thinking of something else

aha, ok

how to apply the terms disassembler/decompiler on java programs
etc
but i got it now
there was little confusion

http://www.google.com/search?hl=en&q=find+what+i+think&btnG=Search

b0r3d, you said you wanted opcodes–that implies disassembly

i would say it dictates disassembly
8^)=

I suppose that's true

excuz me im still a n0ob xD
where is javap.exe suppsed to reside? it's not in bin

it is in bin
JAVA_HOME/bin
not jre/bin

testing mIrc agent

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Comments are closed.


Blog Tags:

Similar posts: