![](_gb_images/_gb_sitenav_spacer.gif) |
![](_gb_images/_gb_clear.gif) |
Java 2 Standard Edition for mac?
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Mac Elite
Join Date: Jun 2000
Location: NY
Status:
Offline
|
|
Im taking an intro to java course at my university, unfortunately they use wintels in the course. I was informed that i can still use my mac in the course but i would need to download the Java 2 Platform, Standard Edition, v 1.4.2 (J2SE). I went on sun's site and this does not seem to be available to mac OSX. Any help in obtaining a mac version of this would be greatly appriciated. I really dont want to be using a pc while i program for hours heh.
|
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Fresh-Faced Recruit
Join Date: Oct 2001
Location: Vancouver, BC Canada.
Status:
Offline
|
|
Originally posted by Jsnuff1:
Im taking an intro to java course at my university, unfortunately they use wintels in the course. I was informed that i can still use my mac in the course but i would need to download the Java 2 Platform, Standard Edition, v 1.4.2 (J2SE). I went on sun's site and this does not seem to be available to mac OSX. Any help in obtaining a mac version of this would be greatly appriciated. I really dont want to be using a pc while i program for hours heh.
Java comes with MacOS X. It is supplied by Apple, so you don't need to download it from Sun.
If you start the Terminal application and type "java -version" it will give you what Java version you have installed. On my Panther machine with all the updates I have the v 1.4.1 version. It is probably good enough for your intro to Java course.
|
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Mac Elite
Join Date: Jun 2000
Location: NY
Status:
Offline
|
|
Originally posted by bertrandl:
Java comes with MacOS X. It is supplied by Apple, so you don't need to download it from Sun.
If you start the Terminal application and type "java -version" it will give you what Java version you have installed. On my Panther machine with all the updates I have the v 1.4.1 version. It is probably good enough for your intro to Java course.
I know, but the standard edition has certain classes that are needed for programing and i dont think are supplied by the version of java that apple ships with OSX.
|
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Senior User
Join Date: Mar 2002
Location: Golden, CO
Status:
Offline
|
|
Originally posted by Jsnuff1:
I know, but the standard edition has certain classes that are needed for programing and i dont think are supplied by the version of java that apple ships with OSX.
I highly doubt that. Not a heck of a lot changed from version 1.4.1 and 1.4.2. If you knew which classes and methods that you think might be new in 1.4.2 you could go to the Sun site and look for them in the 1.4.1 API. However, if you really do find something that's new in 1.4.2 that you just HAVE to have, you can go to developer.apple.com and join the ADC for free. Once you do that you'll be able to download a developer preview of Java 1.4.2. Keep in mind though that this is beta software. If you can get away with using 1.4.1 you should use that instead.
Also, the scope of an intro course rarely covers materiel that wasn't part of Java 1.1. Your professors are probably saying Java 1.4.2 because that's the version that they will use to test your code with. If that's the case, just develop your code in 1.4.1 and test it on a machine with 1.4.2 before you turn it in. I'll bet that your code will run exactly the same every time you do this.
|
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Forum Regular
Join Date: Dec 2002
Location: Pittsburgh, PA
Status:
Offline
|
|
You could go to connect.apple.com and download the java 1.4.2 from there. I have that installed and this is what is get when I run java -version from the terminal.
java version "1.4.2_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-113)
Java HotSpot(TM) Client VM (build 1.4.2-33, mixed mode)
|
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Senior User
Join Date: Feb 2003
Location: Atlanta
Status:
Offline
|
|
Originally posted by Jsnuff1:
I know, but the standard edition has certain classes that are needed for programing and i dont think are supplied by the version of java that apple ships with OSX.
That is BS. Apple ships the standard version with Mac OS X. There is nothing you would need for a java intro class that is not included.
|
2.16 Ghz Core 2 Macbook, 3GB Ram, 120 GB
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Mac Elite
Join Date: Feb 2001
Location: Washington, DC
Status:
Offline
|
|
J2SE is included with OS X.
I've worked with it before - all the classes are there.
And, for any work you'd do in an intro to java course, any 1.4 release would due. You could probably even use a 1.3 release and never know the difference.
relax. It's cool. ![Cool](http://forums.macnn.com/images/smilies/oldschool/cool.gif)
|
/Earth\ Mk\.\ I{2}/
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Mac Elite
Join Date: Apr 2002
Location: Illinois
Status:
Offline
|
|
OK, if you really care that much about getting 1.4.2,
Go to http://connect.apple.com/
Log in with your Apple ID.
Click on the Java link in the sidebar.
Download the 1.4.2 Virtual Machine (It may just be called Java 1.4.2, can't remember) and get the Java SDK (So you can compile it with all the new classes)
Install, restart, viola. You have 1.4.2 standard. (It's a beta but I've been OK with it for the last month.)
|
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Forum Regular
Join Date: Oct 2003
Status:
Offline
|
|
i would not advise using java 1.4.2 yet until it becomes official. if you install 1.4.2 you will loose support from two great IDE's for java IntelliJ and Eclipse. Neither seam to work with 1.4.2. That will probably be rectified when 1.4.2 goes release.
I gotta agree with everyone here as well... there is no point installing 1.4.2 ... there is very very little changed between that and 1.4.1 anyway.
Either way i would join the ADC and check out the documentation on java there. its pretty cool.
rgs
i_wolf
|
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Grizzled Veteran
Join Date: Jan 2002
Location: Melbourne, Australia
Status:
Offline
|
|
And here's what you get if you aren't running the beta:
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-99)
Java HotSpot(TM) Client VM (build 1.4.1_01-27, mixed mode)
Thus reconfirming that J2SE is shipped with the OS, good stuff huh! No need to download a single thing.
|
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Mac Elite
Join Date: Jun 2000
Location: NY
Status:
Offline
|
|
thanks for the info guys, one last question, is there a diffrence between the java 2 runtime enviroment, standard edition and java 2 platform, standard edition or is it just two diffrent names used by apple and sun?
|
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
Originally posted by Jsnuff1:
thanks for the info guys, one last question, is there a diffrence between the java 2 runtime enviroment, standard edition and java 2 platform, standard edition or is it just two diffrent names used by apple and sun?
Java 2 is any version of java 1.2 or newer. The Java Runtime Environment, or JRE, is just the parts of java required to RUN java code, not to compile it. Java 2 Standard Edition (J2SE) is the JRE plus the Software Development Kit (SDK), yielding everything you need to use java end to end (coding, debugging, deploying, running).
OSX comes with Java 2 Runtime installed. If you install the OSX developer tools, you get all the Java developer tools, man pages, and debugging tools installed too. At that point you have a full J2SE and you can do anything in java on OSX that you can on any other platform. Just be sure to run OSX 10.3 and XCode 1.1 so you have all the latest releases from Apple.
|
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Mac Elite
Join Date: Jun 2000
Location: NY
Status:
Offline
|
|
ok here is the problem i am having...i made a small java program that is supposed to show and alert message. the program seemed to compile correctly (no error messages were shown) but when i tried to run it in the command line window i received this error
[jsnuff:~] jsnuff1% java /test.class
Exception in thread "main" java.lang.NoClassDefFoundError: /test/class
[jsnuff:~] jsnuff1%
when i double clicked on the test.class icon though, the program ran as it should have. (i showed this to my proffesor, and he said that the error message is often associated
with setting the classpath environment variable on windows, whatever that is supposed to mean)
|
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Senior User
Join Date: Feb 2003
Location: Atlanta
Status:
Offline
|
|
Originally posted by Jsnuff1:
[jsnuff:~] jsnuff1% java /test.class
Exception in thread "main" java.lang.NoClassDefFoundError: /test/class
[jsnuff:~] jsnuff1%
Java can't find the file test.class in the root directory. Do you have one there?
Ex. run the command "java /uselessgarbagefile.class" (which obviously doesn't exist) and you will get the same error.
If you are in the directory with the file just do "java test.class" and that will run it.
|
2.16 Ghz Core 2 Macbook, 3GB Ram, 120 GB
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
Originally posted by Jsnuff1:
ok here is the problem i am having...i made a small java program that is supposed to show and alert message. the program seemed to compile correctly (no error messages were shown) but when i tried to run it in the command line window i received this error
[jsnuff:~] jsnuff1% java /test.class
Exception in thread "main" java.lang.NoClassDefFoundError: /test/class
[jsnuff:~] jsnuff1%
when i double clicked on the test.class icon though, the program ran as it should have. (i showed this to my proffesor, and he said that the error message is often associated
with setting the classpath environment variable on windows, whatever that is supposed to mean)
That's not how you run java apps. Assuming the class is called "test" and is in "test.class" just type "java test" to run it. No slash, no ".class".
|
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_clear.gif) |
|
|
|
![](_gb_images/_img_misc/_gb_mb_previousthread-off.gif)
|
|
![](_gb_images/_gb_clear.gif) |
Forum Rules
|
![](_gb_images/_gb_clear.gif) |
![](_gb_images/_gb_clear.gif) |
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
![](_gb_images/_gb_clear.gif) |
![](_gb_images/_gb_clear.gif) |
![](_gb_images/_gb_clear.gif) |
![](_gb_images/_gb_clear.gif) |
|
![](_gb_images/_gb_sitenav_spacer.gif) |