Search the web
Sign In
New User? Sign Up
macjava
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 187 - 216 of 246   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#216 From: jeff@...
Date: Mon Jul 16, 2001 5:23 am
Subject: Im a newbie and I need education.
jeff@...
Send Email Send Email
 
Educate me.  I like Cocoa.  I go thte Nutshell book and the Cocoa
Java tutorial PDF.

Hmmm...  Cocoa Java...  I should go to Starbucks.

#215 From: deanjudd@...
Date: Fri May 4, 2001 2:46 pm
Subject: Re: MRJ SDK
deanjudd@...
Send Email Send Email
 
Yes, it's called JBindery and it's included in the MRJ SDK 2.2 package.

#214 From: Patrick Curley <curley@...>
Date: Thu May 3, 2001 3:17 am
Subject: help
curley@...
Send Email Send Email
 
I'm running OS9 on an iMac and what to be able to write JAVA applets and
applications. What software do I need and where do I get it ?

#213 From: "Tobias Bohlin" <tobias.bohlin@...>
Date: Wed May 2, 2001 3:59 pm
Subject: MRJ SDK
tobias.bohlin@...
Send Email Send Email
 
Hi list! Just wondering what tools are included in the MRJ SDK package. Can
u build a stand-alone app + compile it and run it?

Reason for asking is, SDK messed up my OS and made my computer hang
irreversibly (won't boot with add-ons) (it's an old PPC), so it is worth the
effort?

Regards

Tobias Bohlin
Programmer

#212 From: Luis Flores <lflores@...>
Date: Mon Apr 30, 2001 6:11 pm
Subject: Re: IDE, compiler, executable
lflores@...
Send Email Send Email
 
try jedit ( at sourceforge ) with browser, compiler and project
plugin ... all open source

On Monday, April 30, 2001, at 05:58 PM, Tobias Bohlin wrote:

> If I have MRJ JDK 2.1.4 intalled and need SDK for that version, where
> can I
> download that? Can anyone recommend an IDE that is shareware or
> freeware?
> Need to compile regular apps not applets. Can u compile from a command
> line
> like on a IBM PC-compatible?
>
> System software 8.1 on a PPC.
>
> Regards
>
> Tobias Bohlin
> Programmer
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>

#211 From: "Tobias Bohlin" <tobias.bohlin@...>
Date: Mon Apr 30, 2001 5:58 pm
Subject: IDE, compiler, executable
tobias.bohlin@...
Send Email Send Email
 
If I have MRJ JDK 2.1.4 intalled and need SDK for that version, where can I
download that? Can anyone recommend an IDE that is shareware or freeware?
Need to compile regular apps not applets. Can u compile from a command line
like on a IBM PC-compatible?

System software 8.1 on a PPC.

Regards

Tobias Bohlin
Programmer

#210 From: "Tobias Bohlin" <tobias.bohlin@...>
Date: Mon Apr 30, 2001 3:42 pm
Subject: SV: JDK for Mac OS 8.1 computer being a PPC 6100
tobias.bohlin@...
Send Email Send Email
 
Still need info on this. I run Mac OS 8.1.

Even better would be a compiler that lets my run
simple java-apps, not being applets (regular programs). Again, small in
size, please. Does anyone know if u can write java - files in "write text"
(included with Mac OS) and compile them? Otherwise I'll have to use BBEdit,
presumably with success.

Regards

Tobias Bohlin
Programmer

#209 From: Ahmad Issawi <ahmadissawi@...>
Date: Mon Apr 30, 2001 6:58 am
Subject: RE: JDK for System 7.6.1 computer being a PPC 6100
ahmadissawi@...
Send Email Send Email
 
howdy list(s)!

I need a compiler. Preferably small in size (kB:s). I've tried MRJ but it
hangs etc. Tried to correct version for this computer. It has bad RAM so
some apps won't work. Just need to compile my applets, so I can run them in
an old Netscape browser. Even better would be a compiler that lets my run
simple java-apps, not being applets (regular programs). Again, small in
size, please. Does anyone know if u can write java - files in "write text"
(included with Mac OS) and compile them? Otherwise I'll have to use BBEdit,
presumably with success.

Regards

Tobias Bohlin
Programmer
--------------------

USE SIMPLE TEXT .. it works


-----------------------------------------------
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com

#208 From: "Tobias Bohlin" <tobias.bohlin@...>
Date: Sat Apr 28, 2001 5:32 pm
Subject: JDK for System 7.6.1 computer being a PPC 6100
tobias.bohlin@...
Send Email Send Email
 
Howdy list(s)!

I need a compiler. Preferably small in size (kB:s). I've tried MRJ but it
hangs etc. Tried to correct version for this computer. It has bad RAM so
some apps won't work. Just need to compile my applets, so I can run them in
an old Netscape browser. Even better would be a compiler that lets my run
simple java-apps, not being applets (regular programs). Again, small in
size, please. Does anyone know if u can write java - files in "write text"
(included with Mac OS) and compile them? Otherwise I'll have to use BBEdit,
presumably with success.

Regards

Tobias Bohlin
Programmer

#207 From: "KRM" <k_rajaram@...>
Date: Wed Apr 4, 2001 3:12 am
Subject: Re: Re: [allmacs] Serial n:o for Interarchy
k_rajaram@...
Send Email Send Email
 
Hi,

     What is the problem you are facing? First of all in the following part
of your code:

public void setValue(){
theList[0] = {banana,1};
theList[1] = {apple,2};
theList[2] = {pear,1.5};
numItems = 3;
}

you should set the first argument within double quotes "banana", "apple"
etc. Also a good programming practice is to use enumeration for the common
names such as banana, apple, apple, pear etc. Also avoid hardcoding of array
size as 10 but try to use constant name say MAX_NUM which is initialized
globally as 10. Let me know your problem.

Thanks
Rajaram

----- Original Message -----
From: "kaz" <kaznie@...>
To: <macjava@yahoogroups.com>
Sent: Tuesday, April 03, 2001 2:11 PM
Subject: Re: [macjava] Re: [allmacs] Serial n:o for Interarchy


> From: kaz <kaznie@...>
> Date: 2001.04.03  01:35:00 US/Pacific
> To: macjava@yahoogroups.com
> Subject:
>
> I am currently studying Java using OS X.
> I have hard time solving following code.
> I'm totally confused with anything I have learnt so far.
> at the bottom, I add some code which I tried to solve.
> I really appreciate any comments or advice.
> thank you.
>
> kaz
>
> public class ShoppingList{
>      private ShoppingItem[] theList;
>      private int numItems;
>      public ShoppingList(){
> theList = new ShoppingItem[10];
> numItems = 0;
>      }
>
>      public void addItem(ShoppingItem s){
>      }//adds item to shopping list, expanding array if needed.
>
>      public double totalCost(){
> double result = 0.0;
> for( int i=0; i<numItems;i++){
>     result += theList[i].getCost();
> }
> return result;
>      }
> }
>
> public interface ShoppingItem{
>      public double getCost();
> }
>
> Suppose you want to represent ShoppingItems that are fruit.
> Fruit is bought by weight and has a cost per pound.
> Suppose bananas cost $0.25 per pound, apples cost $0.75 per pound, and
> pears cost $1.10 per pound.
>
> Write classes sufficient to create ShoppingItems of 1 pound of bananas,
> 2 puunds of apples, and one and a half pounds of pears and to evaluate
> their cost as a ShoppingList ( returning 3.40) using the totalCost
> method above.
> Write a driver that creates the above ShoppingList and prints its cost.
>
> here's my codes:
>
> public class ShoppingItem{
> private String s;
> private double d;
> ShoppingItem(String s, double d){
> this.s = s;
> this.d = d;
> }
>
> public void setValue(){
> theList[0] = {banana,1};
> theList[1] = {apple,2};
> theList[2] = {pear,1.5};
> numItems = 3;
> }
>
> public class
ver{
> public static void main(String[] args){
> ShoppingList SL = new ShoppingList();
> SL.setValue();
> System.out.println("the total cost is "+theList.totalCost();
> }
> }
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>

#206 From: kaz <kaznie@...>
Date: Tue Apr 3, 2001 8:41 am
Subject: Re: Re: [allmacs] Serial n:o for Interarchy
kaznie@...
Send Email Send Email
 
From: kaz <kaznie@...>
Date: 2001.04.03  01:35:00 US/Pacific
To: macjava@yahoogroups.com
Subject:

I am currently studying Java using OS X.
I have hard time solving following code.
I'm totally confused with anything I have learnt so far.
at the bottom, I add some code which I tried to solve.
I really appreciate any comments or advice.
thank you.

kaz

public class ShoppingList{
      private ShoppingItem[] theList;
      private int numItems;
      public ShoppingList(){
	 theList = new ShoppingItem[10];
	 numItems = 0;
      }

      public void addItem(ShoppingItem s){
      }//adds item to shopping list, expanding array if needed.

      public double totalCost(){
	 double result = 0.0;
	 for( int i=0; i<numItems;i++){
	     result += theList[i].getCost();
	 }
	 return result;
      }
}

public interface ShoppingItem{
      public double getCost();
}

Suppose you want to represent ShoppingItems that are fruit.
Fruit is bought by weight and has a cost per pound.
Suppose bananas cost $0.25 per pound, apples cost $0.75 per pound, and
pears cost $1.10 per pound.

Write classes sufficient to create ShoppingItems of 1 pound of bananas,
2 puunds of apples, and one and a half pounds of pears and to evaluate
their cost as a ShoppingList ( returning 3.40) using the totalCost
method above.
Write a driver that creates the above ShoppingList and prints its cost.

here's my codes:

public class ShoppingItem{
	 private String s;
	 private double d;
	 ShoppingItem(String s, double d){
		 this.s = s;
		 this.d = d;
}

public void setValue(){
	 theList[0] = {banana,1};
	 theList[1] = {apple,2};
	 theList[2] = {pear,1.5};
	 numItems = 3;
}

public class Driver{
	 public static void main(String[] args){
		 ShoppingList SL = new ShoppingList();
		 SL.setValue();
		 System.out.println("the total cost is "+theList.totalCost();
	 }
}

#205 From: "Vex Hex" <hi_word@...>
Date: Tue Mar 27, 2001 12:24 am
Subject: Re: Re: [java] Serial n:o for Interarchy
hi_word@...
Send Email Send Email
 

That is true, are you sure you are a programmer, I mean, you are not acting logical here.  I don't want your javacode on my web pages.

-vexHEX

>From: "Peter Schuller"
>Reply-To: macjava@yahoogroups.com
>To: java@yahoogroups.com
>CC: macjava , Linux_newbies , antalyaopss , InternetProgramming , The Mac , perl , Allmacs
>Subject: [macjava] Re: [java] Serial n:o for Interarchy
>Date: Mon, 26 Mar 2001 16:49:40 -0500
>
> > Howdy list. I'd like to have the serial number for Interarchy. It is
> > shareware and have quit
> > functioning, so I really need the n:o. Please someone.
>
>1) Buy the thing.
>
>2) If you absolutely must use it illegaly, don't SPAM multiple mailinglists
>about it.
>
>--
>/ Peter Schuller, InfiDyne Technologies HB
>
>PGP userID: 0x5584BD98 or 'Peter Schuller '
>Key retrival: Send an E-Mail to getpgpkey@...
>E-Mail: peter.schuller@... Web: http://scode.infidyne.com
>


Get your FREE download of MSN Explorer at http://explorer.msn.com


#204 From: "Peter Schuller" <peter.schuller@...>
Date: Mon Mar 26, 2001 9:49 pm
Subject: Re: [java] Serial n:o for Interarchy
peter.schuller@...
Send Email Send Email
 
> Howdy list. I'd like to have the serial number for Interarchy. It is
> shareware and have quit
> functioning, so I really need the n:o. Please someone.

1) Buy the thing.

2) If you absolutely must use it illegaly, don't SPAM multiple mailinglists
about it.

--
/ Peter Schuller, InfiDyne Technologies HB

PGP userID: 0x5584BD98 or 'Peter Schuller <peter.schuller@...>'
Key retrival: Send an E-Mail to getpgpkey@...
E-Mail: peter.schuller@... Web: http://scode.infidyne.com

#203 From: Eric Plowe <hypoluxa1@...>
Date: Mon Mar 26, 2001 4:12 am
Subject: Re: [allmacs] Serial n:o for Interarchy
hypoluxa1@...
Send Email Send Email
 
Typically we pay for shareware, it's not keen to ask for something illegal on a public mailing list(s)

~Eric
On Sunday, March 25, 2001, at 06:11 PM, Sven Svensson wrote:


> Howdy list. I'd like to have the serial number for Interarchy. It is
> shareware and have quit
> functioning, so I really need the n:o. Please someone.
>
> Best regards
>
> Sven Svensson
>
>

Yahoo! Groups Sponsor
www.debticated.com

>
>
> -----------------------------------------
>
> Email: allmacs@yahoogroups.com
> Website: http://128.218.190.56/
>
>
Wally Novak               
> wnovak@itsa.ucsf.edu
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


#202 From: "Sven Svensson" <tobias.bohlin@...>
Date: Sun Mar 25, 2001 11:11 pm
Subject: Serial n:o for Interarchy
tobias.bohlin@...
Send Email Send Email
 
Howdy list. I'd like to have the serial number for Interarchy. It is
shareware and have quit
functioning, so I really need the n:o. Please someone.

Best regards

Sven Svensson

#201 From: "Tobias Bohlin" <tobias_bohlin@...>
Date: Wed Mar 21, 2001 9:58 pm
Subject: Apple MRJ 2.1.4 - SDK 2.2 incompability
tobias_bohlin@...
Send Email Send Email
 
Strange indeed. Perhaps Apple don't take Java seriously. I do not get SDK
2.2 to run with MRJ 2.1.4. I've tried. So now I'd like to get a java
compiler. Any suggestions anyone?

Regards

Tobias Bohlin
IT Consultant

>Hello Tobias
>
>I insist on my proposal.
>
>1. I cannot believe that MRJ SDK 2.2 requires MRJ 2.2. On the page shown
>below you can download a series of old releases of MRJ, including the one
>that you use. Why should you invited to do so, when they don't support the
>SDK?
>2. Whatever release of SDK you use, they all compile and run your programs
>by dragging and dropping. It i s strange. I have a new iMac, but I don't
>even have a reasonable user interface for compiling and running my
>formidable programs.
>
>But perhaps I haven't understood your problem.
>
>Good luck
>
>Alban
>
>
>
>
>
>----------
> >Von: macjava@yahoogroups.com
> >An: macjava@yahoogroups.com
> >Betreff: [macjava] Digest Number 44
> >Datum: Mon, 19. Mär 2001 10:05 Uhr
> >
>
> >
> > There is 1 message in this issue.
> >
> > Topics in this digest:
> >
> >       1. Re: MRJ SDK
> >            From: "Tobias Bohlin" <tobias_bohlin@...>
> >
> >
> > ________________________________________________________________________
> > ________________________________________________________________________
> >
> > Message: 1
> >    Date: Sun, 18 Mar 2001 22:09:29 +0100
> >    From: "Tobias Bohlin" <tobias_bohlin@...>
> > Subject: Re: MRJ SDK
> >
> > I can't use the SDK as it requires a MRJ 2.2 installation. I use MRJ
>2.1.4.
> > I have an old shitty PPC. Got any older tools that might work? Need the
>drag
> > and drop - functionality.
> >
> > Regards
> >
> > Tobias Bohlin
> > IT Consultant
> >
> >>Hello Tobias
> >>
> >>Here is a SDK your your description applies to:
> >>
> >>http://developer.apple.com/java/download.html
> >>
> >>Enjoy it
> >>
> >>Alban
> >>
> >
> >
>_________________________________________________________________________
> > Get Your Private, Free E-mail from MSN Hotmail at
>http://www.hotmail.com.
> >
> >
> >
> > ________________________________________________________________________
> > ________________________________________________________________________
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
>http://docs.yahoo.com/info/terms/
> >
> >
> >

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

#200 From: pbj <pbjones@...>
Date: Thu Mar 22, 2001 8:10 am
Subject: Re: Digest Number 45
pbjones@...
Send Email Send Email
 
yes!

  and much thanks
next problem, the classes are written for Java 1.3

thanks to all
PBJ

> From: macjava@yahoogroups.com
> Reply-To: macjava@yahoogroups.com
> Date: 20 Mar 2001 09:10:32 -0000
> To: macjava@yahoogroups.com
> Subject: [macjava] Digest Number 45
>
>
> Download an Mac application called JBindery. Using this JBindery create an
> executable application from your class files.Run the created application. This
> will execute your class files.
>

#199 From: "Alban Clemenz" <alban.clemenz@...>
Date: Tue Mar 20, 2001 9:15 pm
Subject: Re: Digest Number 44
alban.clemenz@...
Send Email Send Email
 
Hello Tobias

I insist on my proposal.

1. I cannot believe that MRJ SDK 2.2 requires MRJ 2.2. On the page shown
below you can download a series of old releases of MRJ, including the one
that you use. Why should you invited to do so, when they don't support the
SDK?
2. Whatever release of SDK you use, they all compile and run your programs
by dragging and dropping. It i s strange. I have a new iMac, but I don't
even have a reasonable user interface for compiling and running my
formidable programs.

But perhaps I haven't understood your problem.

Good luck

Alban





----------
>Von: macjava@yahoogroups.com
>An: macjava@yahoogroups.com
>Betreff: [macjava] Digest Number 44
>Datum: Mon, 19. Mär 2001 10:05 Uhr
>

>
> There is 1 message in this issue.
>
> Topics in this digest:
>
>       1. Re: MRJ SDK
>            From: "Tobias Bohlin" <tobias_bohlin@...>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 1
>    Date: Sun, 18 Mar 2001 22:09:29 +0100
>    From: "Tobias Bohlin" <tobias_bohlin@...>
> Subject: Re: MRJ SDK
>
> I can't use the SDK as it requires a MRJ 2.2 installation. I use MRJ 2.1.4.
> I have an old shitty PPC. Got any older tools that might work? Need the drag
> and drop - functionality.
>
> Regards
>
> Tobias Bohlin
> IT Consultant
>
>>Hello Tobias
>>
>>Here is a SDK your your description applies to:
>>
>>http://developer.apple.com/java/download.html
>>
>>Enjoy it
>>
>>Alban
>>
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>

#198 From: "KRM" <k_rajaram@...>
Date: Tue Mar 20, 2001 4:12 am
Subject: Re: MacJava newby question
k_rajaram@...
Send Email Send Email
 
Hi,
 
    Download an Mac application called JBindery. Using this JBindery create an executable application from your class files.Run the created application. This will execute your class files.
 
Rajaram
 
----- Original Message -----
From: Paul Jones
Sent: Tuesday, March 20, 2001 5:17 AM
Subject: [macjava] MacJava newby question

Sorry for this simple quest but...
I have a collection of Java .class files, how do I 'run' this application on a Mac??

forgive me, I have tried including the .class file in a HTML doc, but it didn't seem to work. Using the Applet runner does seem to want anything to do with these files.

regards
Paul B Jones



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

#197 From: Dean Baluch <dbaluch@...>
Date: Tue Mar 20, 2001 4:05 am
Subject: Re: MacJava newby question
dbaluch@...
Send Email Send Email
 
Or, if you have not written an applet, you can open your class files with the java application, or jbindery ( I think, it's been awhile since I used java, what app do they use now?).  

From: Paul Jones <paulj@...>
Reply-To: macjava@yahoogroups.com
Date: Tue, 20 Mar 2001 07:47:32 +0800
To: "'macjava@yahoogroups.com'" <macjava@yahoogroups.com>
Subject: [macjava] MacJava newby question



Sorry for this simple quest but...
I have a collection of Java .class files, how do I 'run' this application on a Mac??

forgive me, I have tried including the .class file in a HTML doc, but it didn't seem to work. Using the Applet runner does seem to want anything to do with these files.

regards
Paul B Jones
Yahoo! Groups Sponsor
Click Here to Find Software Faster <http://rd.yahoo.com/M=162801.1342140.2934632/D=egroupmail/S=1700006764:N/A=599120/*http://www.knowledgestorm.com/jump_white.html?c=Yahoo&n=eLert_ComputersInternet_ProgrammingLang_WhiteGridTime&t=ad>
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .


#196 From: deanjudd@...
Date: Mon Mar 19, 2001 8:39 pm
Subject: Re: Drag and drop equip for Java hacker
deanjudd@...
Send Email Send Email
 
Try the web address below for both the  MRJ SDK 2.2 and the  MRJ 2.2.4.


http://developer.apple.com/java/classic.html

#195 From: deanjudd@...
Date: Mon Mar 19, 2001 8:27 pm
Subject: Re: MacJava newby question
deanjudd@...
Send Email Send Email
 
Hi Paul:

You need to build an HTML file which includes an <APPPLET> statement in it
which refers to your "Class" file(s).  Below is a very simple one:

<HTML>

<BODY>

<APPLET CODE="YOUR.class"  >

</APPLET>

</BODY>
</HTML>

---------------------------------------

Then using a browser, Netscape or Internet Explorer will do, "open" the file
containing the  above information .  That's all there is to it.

   Dean Judd

#194 From: "Tobias Bohlin" <tobias_bohlin@...>
Date: Sat Mar 17, 2001 5:28 pm
Subject: Drag and drop equip for Java hacker
tobias_bohlin@...
Send Email Send Email
 
Howdy macjava. I need to drop my java files and make class files. There is a
SDK for that out there. Where can it be?

Regards the best

Tobias Bohlin
IT Consultant
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

#193 From: "Paul Jones" <paulj@...>
Date: Mon Mar 19, 2001 11:47 pm
Subject: MacJava newby question
paulj@...
Send Email Send Email
 

Sorry for this simple quest but...
I have a collection of Java .class files, how do I 'run' this application on a Mac??

forgive me, I have tried including the .class file in a HTML doc, but it didn't seem to work. Using the Applet runner does seem to want anything to do with these files.

regards
Paul B Jones


#192 From: "Tobias Bohlin" <tobias_bohlin@...>
Date: Sun Mar 18, 2001 9:09 pm
Subject: Re: MRJ SDK
tobias_bohlin@...
Send Email Send Email
 
I can't use the SDK as it requires a MRJ 2.2 installation. I use MRJ 2.1.4.
I have an old shitty PPC. Got any older tools that might work? Need the drag
and drop - functionality.

Regards

Tobias Bohlin
IT Consultant

>Hello Tobias
>
>Here is a SDK your your description applies to:
>
>http://developer.apple.com/java/download.html
>
>Enjoy it
>
>Alban
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

#191 From: "Tobias Bohlin" <tobias_bohlin@...>
Date: Sat Mar 17, 2001 1:23 pm
Subject: SDK with drag and drop
tobias_bohlin@...
Send Email Send Email
 
Howdy all. I have used a SDK that you could drop java-files on and get
class-files. I'd like to download it again. Where can I find it?

Regards

Tobias Bohlin
IT Consultant
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

#190 From: "Alban Clemenz" <alban.clemenz@...>
Date: Thu Mar 15, 2001 3:45 am
Subject: HelloAl
alban.clemenz@...
Send Email Send Email
 
Hello

I am so happy now that - with a little help from our club member Dean
- my little Hello programm doesn't call me "null" anymore.

Alban

#189 From: deanjudd@...
Date: Tue Mar 13, 2001 9:09 pm
Subject: Re: class HelloAl
deanjudd@...
Send Email Send Email
 
Hi Clemenz:

   The input Stream reader is looking for some input  and unless you give it
something, it will return null, which is what you saw.

   To fix, when the Jbindery program produces the screen with the HelloAl
Class name, merely redirect the stdin to a text edited file where you will
have placed a name, "Clemenz", for example.

   Then hit the RUN key and the stdout (which defaults to the java console)
will show the phrase:

              Enter your name: Hello Clemenz!

  Simple, eh?

  Good luck!  Dean Judd

#188 From: "Alban Clemenz" <alban.clemenz@...>
Date: Wed Mar 14, 2001 12:59 am
Subject: class HelloAl
alban.clemenz@...
Send Email Send Email
 
Hello!

My name is Alban Clemenz. I'm new to this club.
I'm working with the Compiler "javac" from the MRJ SDK. Everything is
going just fine - except for a little problem that drives me nuts.

Here is the code (< John R. Hubbard: Schaum's Outline of Theory and
Problems of Programming with Java):

import java.io.*;
public class HelloAl
{  public static void main(String[] args) throws IOException
    {  InputStreamReader reader = new InputStreamReader(System.in);
       BufferedReader input = new BufferedReader(reader);
       System.out.print("Enter your name: ");
       String name = input.readLine();
       System.out.println("Hello, " + name + "!");
    }
}

The code compiles fine, but when I run the programm, all I get is:

Enter your name:
Hello, Null!

Please try the code and write me what you get.

See ya!

Alb

#187 From: "Powell, Andrew" <PowellA2@...>
Date: Tue Feb 27, 2001 9:44 pm
Subject: RE: Digest Number 38
PowellA2@...
Send Email Send Email
 
You shouldn't have to have a 'public' declaration in the class declaration
as it is default. Try to compile/run without it.
	 AP
--
Hello All

"Voila mon problem..."
My system is :
iMac 500 Mhz
Mac OS 9.0.4
I use javac of the MRJ SDK 2.2 as compiler and it's ok but when simply i
change the name of the class in both the file name and the class
declaration, it makes an error... for example i consider the following code
and it's ok :

public class Fruit
{
public static void main(String[] args)
{
System.out.println("Please help me");
}
}
BUT when i put the name "help" in both the file name and the class
declaration, it makes a 1 error and gives me the following message :
-----------
javac: invalid argument: /iMac 30GB/Desktop Folder/help.java
use: javac [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath
path][-nowrite][-deprecation][-d dir][-J<runtime flag>] file.java...
Done
-----------
so, Please help me ...

Messages 187 - 216 of 246   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help