compiling files
Hello All,
I am using JDK1.2 pre v2 on RH6.0. I am facing a typical problem.
Consider the situation:
file1.java
class file1{
public file1(){
xx=new file2();
}
}
file2.java
class file2(){
public file2(){
yy=new file3();
}
}
file3.java
class file3(){
public file3(){
}
}
Now, when i compile the main I think all the 3 files should make their
respective class files and do the required work. But instead class
files of file1.java and file2.java are made and file3.java is not
touched. I have to explicited compile file3.java first and then
file1.java to see the effect of file3. Is the feature built in compiler
like that or a bug?
I have read in java books that we dont need to compile the program
seperately.
I would like to hear from you.
Thanking All,
WIth regards
alpesh
===
KOTHARI ALPESH D.
STUDENT M. TECH.
CEDT
INDIAN INSTITUTE OF SCIENCE
BANGALORE-560 012
INDIA
__
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
listining action from child frame
Hello all, I have got a main window and a child window. I want to listen the action of the button pressed from the child window and take necessary action in the main window. What should I do? Also, if some reference of Web, or book is available please let me know. With regards, alpesh === KOTHARI ALPESH D. STUDENT M. TECH. CEDT INDIAN INSTITUTE OF SCIENCE BANGALORE-560 012 INDIA __ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: OT: Mailing list control
With some mailing lists, you have to confirm before you actually start getting mail. I don't know why anyone would not want positive confirmation. -T Nathan Meyers wrote: > > Charles Forsythe wrote: > > > > Hey, is it possible to setup "read-only" participants? You know, so they > > continue to get the wisdom of Java-Linux mailing list, but can't send anything > > to the list? > > Mr. Reitwiesner's request is not unreasonable. He didn't ask to get on > this list... it was someone else's idea of a joke or revenge. The topic > of using better mailing-list software has come up before, but it never > seems to get anywhere. Such software is freely available. > > Nathan > -- +---+ + Thomas M. Sasala, Electrical Engineer [EMAIL PROTECTED] + + MRJ Technology Solutionshttp://www.mrj.com + + 10461 White Granite Drive, Suite 102(W)(703)277-1714 + + Oakton, VA 22124 (F)(703)277-1702 + +---+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: listining action from child frame
Add an event listener for the child window within the main window: childwindow.addActionListener(parentWindow) You'll have to play with it to get the correct syntax. Also, comp.lang.java would be a better place for this question. -Tom ALPESH KOTHARI wrote: > > Hello all, > > I have got a main window and a child window. I want to listen the > action of the button pressed from the child window and take necessary > action in the main window. What should I do? > > Also, if some reference of Web, or book is available please let me > know. > > With regards, > alpesh > -- +---+ + Thomas M. Sasala, Electrical Engineer [EMAIL PROTECTED] + + MRJ Technology Solutionshttp://www.mrj.com + + 10461 White Granite Drive, Suite 102(W)(703)277-1714 + + Oakton, VA 22124 (F)(703)277-1702 + +---+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Who do you have to know...
Hello, Excuse me for being thick, but I felt like I could help (not an easy thing to extend an offer for (My free time (my wife's not happy with the lack there of)). But I have been look for a way to contribute to linux and I thought help Blackdown would be killer. So I gather up some motivation and wrote a response to Juergen call below. Well I know we are busy, so I gave it a couple of days... nothing. So I though maybe this was the wrong approach, I'll try a simpler one and offer to aid in testing (He mentioned how many combinations it takes (and the 10,000+ tests required by the JCK validation)). Well I thought for sure they could use help there or at least the could point me to a set of tasks that show me what I need to know (can or can't do) to help out. But still nothing. So finally a third email was sent, asking if he (Juergen) was the right person to address inquires to. At this point I was expect the thanks but no thanks response. Nothing. So I said maybe he is really busy and/or on holiday so I have just let it sit. Still nothing. The last one being sent (8/18/99). I'm not looking for a bunch of me too's added to my message (and/or flames). I'm just wondering (from the blackdown team) how the selection process works. Is there another mailing list that I have overlooked. Is there minimum number of bug request required to be considered for the team. Do you have to prove that you can compile the source before your consider worthy (we're not worthy). Is there someone I need to send a resume to (and/or call)? Again I tried to find other avenues to pursue this on, and I started to think how large is the group? How does it grow? Who do ya gotta know? I have solid background (fall '97) with Java and have been network programing in C for years (early 90's). I have a large application written in Java that I need to get working on Linux and was hoping to help the team in the process. I have been using/developing on Linux/UNIX since late 80's. Cheers Tod Matola Sr Systems Analyst OCLC [EMAIL PROTECTED] http://purl.oclc.org/net/tod Juergen Kreileder wrote: > The JDK 1.1.8 is nearly finished (the remaining problem is the native > threads vm). > The next JDK 1.2 release will be 1.2.1 because AFAIK there still is no > JCK testsuite for 1.2.2. > Other stuff we currently work on are: JAI, Java3D, JMF, plugins for > 1.1 (to be released with the JDK 1.1.8) and 1.2. > > This is quite a lot of stuff, so if you would like to help please > contact me. You should have some basic knowledge of Java, but what is > more important is C. I really would like to hear from people who can > do low level X programming (I don't think Sun will fix the color > depths problems soon), pthreads programming (with some knowledge of > the LinuxThreads internals), and/or network programming. > Please reply only if really intend to actively work on the JDK, I'm > really tired of 'volunteers' who never contribute anything. > > Juergen > > -- > Juergen Kreileder, Blackdown Java-Linux Porting Team > http://www.blackdown.org/java-linux.html > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: compiling files
Without any "import" statements, I'm a little surprised it compiled
file2.java. Try adding
import file2;
to file1.java, and
import file3;
to file2.java. See if that helps.
-Andy
> -Original Message-
> From: ALPESH KOTHARI [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 02, 1999 4:03 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: compiling files
>
>
> Hello All,
>
> I am using JDK1.2 pre v2 on RH6.0. I am facing a typical problem.
> Consider the situation:
>
> file1.java
>
> class file1{
>
> public file1(){
>
> xx=new file2();
>
> }
> }
>
> file2.java
>
> class file2(){
>
> public file2(){
>
> yy=new file3();
>
> }
> }
>
> file3.java
>
> class file3(){
> public file3(){
>
>
> }
> }
>
> Now, when i compile the main I think all the 3 files should make their
> respective class files and do the required work. But instead class
> files of file1.java and file2.java are made and file3.java is not
> touched. I have to explicited compile file3.java first and then
> file1.java to see the effect of file3. Is the feature built in compiler
> like that or a bug?
>
> I have read in java books that we dont need to compile the program
> seperately.
>
> I would like to hear from you.
>
> Thanking All,
> WIth regards
> alpesh
>
> ===
> KOTHARI ALPESH D.
> STUDENT M. TECH.
> CEDT
> INDIAN INSTITUTE OF SCIENCE
> BANGALORE-560 012
> INDIA
> __
> Do You Yahoo!?
> Bid and sell for free at http://auctions.yahoo.com
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
>
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Native thread behaviour
Hi guys...
Playing with native methods, I have created a very basic program that
creates a TCP/IP socket from Java by using the corresponding C call (i.e.,
socket()).
My code (excluding error handling parts) is something like:
// File NativeSocketApplication.java
public class NativeSocketApplication
{
private static NativeSocket socket;
public static void main(String args[])
{
System.out.print("\n\nApplication started");
socket = new NativeSocket();
System.out.print("\n\nNativeSocket() returned
successfully.");
}
}
// File NativeSocket.java
public class NativeSocket()
{
public NativeSocket()
{
System.out.print("\n\nCalling native method");
nativeSocketCreate(AF_INET, SOCK_DGRAM, PF_INET);
}
private void nativeSocketCreate(int family, int type, int protocol)
{
// Calls Linux socket(family, type, protocol) function
}
}
// File native_socket.c
{
// My nativeSocketCreate function with JNI syntactic sugar
JNIEXPORT void JNICALL Java_NativeSocket_nativeSocketCreate
(JNIEnv *env, jobject jthis, jint family, jint type, jint
protocol)
{
printf("\n\nCreating native socket...");
socket(family, protocol, data);
}
}
Very simple, BUT: When I run the program under windows, as expected, I get
the following output:
Application started
Calling native method
Creating native socket...
NativeSocket() returned successfully.
which is reasonable (I use only one thread).
In Linux, things are not doing that well. Using either JDK 1.1.7 or JDK 1.2,
I get
Application started
Calling native method
NativeSocket() returned successfully.
==> Creating native socket... (!!!)
In JDK 1.1.7, the last message is even printed after the Unix prompt(!)...
Is this just a problem related to interaction with the output (can't be that
the order of execution is altered, surely!), or does it mean potential
synchronisation problems?
Thanks,
Dimitris
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
AlphaWorks not responding?
Hi all, has anybody had trouble connecting to Alphaworks, as i hevent been able to connect for more than a month now. And if it is down, is there anywhere else i could get the IBM port of the JDK? thanks, Justin. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [OFF-TOPIC] Drawing Package Required For Java Linux Web Graphics
[EMAIL PROTECTED] wrote: > Here's the URL. Seems pretty busy, I'll try to download it tonight. > > http://www.sun.com/dot-com/staroffice.html > Thanks Now I am going to roll with killustrator-0.6.tar.gz (standalone version) Peter P -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
System.out oddity
Hi all,
I suddenly started to get the following when trying to compile files.
[johnr@medoc ~]$ java -green -version
Warning: JIT compiler "sunwjit" not found. Will use interpreter.
java version "1.2"
Classic VM (build Linux_JDK_1.2_pre-release-v2, green threads, nojit)
[johnr@medoc ~]$ cd /usr/src/ApacheJServ-1.0/example/
[johnr@medoc example]$ javac -green MRTG_Interface_Cfg.java
Warning: JIT compiler "sunwjit" not found. Will use interpreter.
MRTG_Interface_Cfg.java:32: No variable out defined in class System.
System.out.println("hello");
^
Note, that class files that I had compiled error are running ok on the
command-line.
Any ideas ?
John
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Native thread behaviour
Dimitris Terzis wrote:
>
> Hi guys...
>
> Playing with native methods, I have created a very basic program that
> creates a TCP/IP socket from Java by using the corresponding C call (i.e.,
> socket()).
You are sending your output through two different mechanisms. The
System.out.print mechanism managed by Java and the stdio mechanism
managed by libc have different sets of output buffers that happen to
flush at different times. There's no reason to expect any sort of
synchronization between them. If you want some predictability in the
order of output, you can put in explicit flush calls -
System.out.flush() on the Java side and fflush(stdout) on the C side.
Nathan
>
> My code (excluding error handling parts) is something like:
>
> // File NativeSocketApplication.java
> public class NativeSocketApplication
> {
> private static NativeSocket socket;
>
> public static void main(String args[])
> {
> System.out.print("\n\nApplication started");
>
> socket = new NativeSocket();
>
> System.out.print("\n\nNativeSocket() returned
> successfully.");
> }
> }
>
> // File NativeSocket.java
> public class NativeSocket()
> {
> public NativeSocket()
> {
> System.out.print("\n\nCalling native method");
>
> nativeSocketCreate(AF_INET, SOCK_DGRAM, PF_INET);
> }
>
> private void nativeSocketCreate(int family, int type, int protocol)
> {
> // Calls Linux socket(family, type, protocol) function
> }
> }
>
> // File native_socket.c
> {
> // My nativeSocketCreate function with JNI syntactic sugar
> JNIEXPORT void JNICALL Java_NativeSocket_nativeSocketCreate
> (JNIEnv *env, jobject jthis, jint family, jint type, jint
> protocol)
> {
> printf("\n\nCreating native socket...");
> socket(family, protocol, data);
> }
> }
>
> Very simple, BUT: When I run the program under windows, as expected, I get
> the following output:
>
> Application started
>
> Calling native method
>
> Creating native socket...
>
> NativeSocket() returned successfully.
>
> which is reasonable (I use only one thread).
>
> In Linux, things are not doing that well. Using either JDK 1.1.7 or JDK 1.2,
> I get
>
> Application started
>
> Calling native method
>
> NativeSocket() returned successfully.
>
> ==> Creating native socket... (!!!)
>
> In JDK 1.1.7, the last message is even printed after the Unix prompt(!)...
>
> Is this just a problem related to interaction with the output (can't be that
> the order of execution is altered, surely!), or does it mean potential
> synchronisation problems?
>
> Thanks,
>
> Dimitris
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: AlphaWorks not responding?
> "Justin" == Justin Lawler <[EMAIL PROTECTED]> writes: Justin> Hi all, has anybody had trouble connecting to Alphaworks, Justin> as i hevent been able to connect for more than a month Justin> now. And if it is down, is there anywhere else i could get Justin> the IBM port of the JDK? Works fine for me at http://www.alphaworks.ibm.com . Ulli -- ETH Zentrum, IFW B43, CH-8092 Zürich // http://www.cinderella.de Phone +41-1-63 27393 // FAX +41-1-63 21172 // http://www.inf.ethz.ch/~kortenka The Interactive Geometry Software Cinderella: http://www.cinderella.de -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: OT: Mailing list control
I also had difficulty at one point with another aspect of the list -- none of my posts would make it through. I had a correspondence with a fellow named Karl Asha in which we finally figured out that it was because I was subscribed to the digest rather than the full list, but still it surprised me that not only was blocking digest subscribers' posts a policy (is that the only option?), but that this policy seemed to have been instituted out of the blue, with no notices sent or posted on the web site. The nature of Mr Asha's reactions to my suggestions led me to believe that he's probably the wrong person to turn to when it comes to requesting modifications to the mechanics of this list. I wonder who the real administrator is? -Armen > Thomas M. Sasala wrote: > With some mailing lists, you have to confirm before > you actually start getting mail. I don't know why anyone would > not want positive confirmation. > > -T > > Nathan Meyers wrote: > > > > Charles Forsythe wrote: > > > > > > Hey, is it possible to setup "read-only" participants? You know, so they > > > continue to get the wisdom of Java-Linux mailing list, but can't send anything > > > to the list? > > > > Mr. Reitwiesner's request is not unreasonable. He didn't ask to get on > > this list... it was someone else's idea of a joke or revenge. The topic > > of using better mailing-list software has come up before, but it never > > seems to get anywhere. Such software is freely available. > > > > Nathan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Popup Trigger
Am Wed, 01 Sep 1999 schrieb Michael Emmel: > What is the popup mouse event trigger under Linux I tried a few combos > nothing would set the popup flag ??? > > Mike you have have to insert MouseEvent.isPopupTrigger() BOTH in mousePressed() and mouseReleased() to get the Popup for Windows AND Linux. isPopupTrigger() is a system dependent method, and this is mentioned in the documentation.. regards Wolfgang -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: OT: Mailing list control
Guys... I have no connection to the blackdown people but, as a volunteer in some social activities, I believe we should be a bit more tolerant... Regarding the issue of "read-only" lists presented in this thread, I can't understand why there are still out there at the first place! For the exchange of this type of information (i.e., of specific interest and never too confidential), a newsgroup is immensely better. Just think of the browsing facilities services like deja.com offer! Regards, Dimitris > -Original Message- > From: Armen Yampolsky [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, September 02, 1999 8:11 PM > To: Java-Linux List; [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: OT: Mailing list control > > I also had difficulty at one point with another aspect of the list -- none > of my > posts would make it through. I had a correspondence with a fellow named > Karl Asha in > which we finally figured out that it was because I was subscribed to the > digest > rather than the full list, but still it surprised me that not only was > blocking > digest subscribers' posts a policy (is that the only option?), but that > this policy > seemed to have been instituted out of the blue, with no notices sent or > posted on the > web site. The nature of Mr Asha's reactions to my suggestions led me to > believe that > he's probably the wrong person to turn to when it comes to requesting > modifications > to the mechanics of this list. I wonder who the real administrator is? > > -Armen > > > > Thomas M. Sasala wrote: > > With some mailing lists, you have to confirm before > > you actually start getting mail. I don't know why anyone would > > not want positive confirmation. > > > > -T > > > > Nathan Meyers wrote: > > > > > > Charles Forsythe wrote: > > > > > > > > Hey, is it possible to setup "read-only" participants? You know, so > they > > > > continue to get the wisdom of Java-Linux mailing list, but can't > send anything > > > > to the list? > > > > > > Mr. Reitwiesner's request is not unreasonable. He didn't ask to get on > > > this list... it was someone else's idea of a joke or revenge. The > topic > > > of using better mailing-list software has come up before, but it never > > > seems to get anywhere. Such software is freely available. > > > > > > Nathan > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact > [EMAIL PROTECTED] > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: OT: Mailing list control
From: "Dimitris Terzis" <[EMAIL PROTECTED]> Date: Thu, 2 Sep 1999 21:40:06 +0100 >I have no connection to the blackdown people but, as a volunteer in some >social activities, I believe we should be a bit more tolerant... I appreciate what blackdown is doing. But it's a bit frustrating to not know what's going on when you're livelihood depends, to some extent, on the software that they are putting out. I'm not asking for working software, I just want to know what's going on so I can make a decision on whether to use their software. I think the answer is yes, but there's been some doubt about the future of the project on this list, and I'd like to put those fears to rest. >Regarding the issue of "read-only" lists presented in this thread, I can't >understand why there are still out there at the first place! For the >exchange of this type of information (i.e., of specific interest and never >too confidential), a newsgroup is immensely better. Just think of the >browsing facilities services like deja.com offer! Newgroups require a good news feed and have latency issues, I don't have a way of spoofing email addresses for newsposting, and mail is delivered, not picked up. Deja.com is not a great way to read recent news. And, since we are talking about issues in which timeliness can be important, a mailing list works very well indeed. When is the next 1.2 due out? -Jerry -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
