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
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/
>
>
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
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.
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
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
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/
>
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();
}
}
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
> 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
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
>
>
> -----------------------------------------
>
> 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.
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
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.
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.
>
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/
>
>
>
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.
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.
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/> .
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
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.
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.
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.
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.
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
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
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 ...