Does Java apps has to have .class extension?

1998-10-05 Thread Danny Lu

Hi,
Can anyone tell me does Java applications has to have .class 
in order for it be to executed in Linux?

Dan



Re: Does Java apps has to have .class extension?

1998-10-05 Thread Danny Lu

But when I try to run a example program I wrote.. and I change
the extension.. I got an error stating "Can't find class Example"

okay at first I tried to compile my example program:
javac Example.java

and I got Example.class... now I change the name of the Example.class to 
Example:
mv Example.class Example

then I made the example executable:
chmod u+x Example

and then I ran it...
./Example

I got the error message saying:
"Can't find class Example"

that's what I was trying to say hehe =)

Dan



How come I get this error message?

1998-10-31 Thread Danny Lu

Hi,
How come I get these error messages when I run
java ICQ and other java applications?:


SIGSEGV   11*  segmentation violation
stackbase=0xb270, stackpointer=0xb174

Full thread dump:
"Finalizer thread" (TID:0x4064a208, sys_thread_t:0x4138ef04,
state:R) prio=1
"Async Garbage Collector" (TID:0x4064a250,
sys_thread_t:0x4136df04, state:R)
"Idle thread" (TID:0x4064a298, sys_thread_t:0x4134cf04, state:R)
prio=0
"Clock" (TID:0x4064a088, sys_thread_t:0x4132bf04, state:CW) prio=12
"main" (TID:0x4064a0b0, sys_thread_t:0x81b5670, state:R) prio=5
*current thr
java.lang.Runtime.loadLibrary(Runtime.java)
java.lang.System.loadLibrary(System.java)
sun.awt.motif.MToolkit.(MToolkit.java:46)
java.awt.Toolkit.getDefaultToolkit(Toolkit.java:402)
java.awt.Window.getToolkit(Window.java:239)
Mirabilis.ICQ.ListUI.ii.ã§(^G^MWARNING: Decompiling this code
may viola
^Z^L)
Mirabilis.ICQ.ListUI.ii.ã¨(^G^MWARNING: Decompiling this code
may viola
^Z^L)
Mirabilis.ICQ.NetAware.CNetAwareApp.(^G^MWARNING:
Decompiling this
^Z^L)
Mirabilis.ICQ.NetAware.CNetAwareApp.main(^G^MWARNING:
Decompiling this c
^Z^L)
Monitor Cache Dump:
java.lang.Class@1080355680/1080721984: owner "main" (0x81b5670, 1
entry)
java.lang.Runtime@1080355488/1080723112: owner "main" (0x81b5670,
1 entry)
Registered Monitor Dump:
Thread queue lock: 
Name and type hash table lock: 
String intern lock: 
JNI pinning lock: 
JNI global reference lock: 
BinClass lock: 
Class loading lock: 
Java stack lock: 
Code rewrite lock: 
Heap lock: 
Has finalization queue lock: 
Finalize me queue lock: 
Monitor IO lock: 
Child death monitor: 
Event monitor: 
I/O monitor: 
Alarm monitor: 
Waiting to be notified:
"Clock" (0x4132bf04)
Monitor registry: owner "main" (0x81b5670, 1 entry)
Thread Alarm Q:

_
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com