Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 25, 2005, 10:29 PM   #1
damgpro
macrumors member
 
Join Date: Aug 2004
Location: nyc
Send a message via AIM to damgpro Send a message via MSN to damgpro
Java Question

Hey I'm a computer science major and I've just started my programming 1 course and we're using Java. My professor wants us to be using JDK 5, what JDK is with XCode? If it isn't 5 is it compatible?

Thanks!
__________________
17" Powerbook 1.5Ghz
1GB DDR RAM | 80GB 5400 RPM Drive | USB 2.0 120GB 7200 RPM | Superdrive | 4G 40GB iPod
rad-ev
damgpro is offline   0 Reply With Quote
Old Jan 25, 2005, 11:49 PM   #2
jamdr
macrumors 6502a
 
jamdr's Avatar
 
Join Date: Jul 2003
Location: Bay Area
Apple has decided to release Java 5 along with OS X Tiger, and not before for some reason. So the Java version that comes pre-installed on Macs with Panther is 1.4.2. I've heard that the Java 5 beta that comes with OS X Tiger beta will work just fine on Panther, though, if it's that important and you want to try to get your hands on it.
jamdr is offline   0 Reply With Quote
Old Jan 26, 2005, 12:23 PM   #3
damgpro
Thread Starter
macrumors member
 
Join Date: Aug 2004
Location: nyc
Send a message via AIM to damgpro Send a message via MSN to damgpro
Thanks for the info jamdr, guess I'll have to do the work on my PC for class
__________________
17" Powerbook 1.5Ghz
1GB DDR RAM | 80GB 5400 RPM Drive | USB 2.0 120GB 7200 RPM | Superdrive | 4G 40GB iPod
rad-ev
damgpro is offline   0 Reply With Quote
Old Jan 26, 2005, 12:43 PM   #4
cluthz
macrumors 68040
 
cluthz's Avatar
 
Join Date: Jun 2004
Location: Norway
Send a message via MSN to cluthz
Yeah it sucks!

Java 1.5/5.0 has been available for Win and linux/x86 for 6 months...
I have to use java 5.0, so have to compile and run my apps on a crappy P3/400MHz machine (from Remote dektop on my powerbook...).

Apple is really shutting out java developers!

I mailed apple developer connections about Java 1.5/5.0 progress, but since I "only" have the $100 student account and not the $500 regular account they wouldn't discuss it. They said it isn't their policy to talk about unreleased programs!

I actually bought my powerbook because I needed a portable java production machine. What a waste!
__________________
-tb
MacBook Air 13" i5 osx10.7.5
HackPro 4.3GHz, 16GB RAM, GTX780GHz Edition, 3x SSD , win7+osx10.9.2
cluthz is offline   0 Reply With Quote
Old Jan 26, 2005, 01:08 PM   #5
iJed
macrumors 6502
 
Join Date: Sep 2001
Location: West Sussex, UK
Quote:
Originally Posted by damgpro
Thanks for the info jamdr, guess I'll have to do the work on my PC for class
If you write your code under Java SDK 1.4 on Mac OS X there should be no problem getting it to compile with Java 5. However the older version of the language lacks some of the features of the new version but this will probably not matter for an introductory programming course.

I really wish that Apple would hurry up and release Java 5 for Mac OS X. The delay before every major Java release on the Mac must be causing people to not consider buying Macs. Fortunately for Apple it will take developers quite a while to move to the new version since the installed base is still so small. At work I've just started a new Java project using SDK 1.4 and SWT. I won't consider Java 5 until its supported properly in SWT, and even then, I'm not a big fan of many of the new features. Although generics and no typecasting are great.
iJed is offline   0 Reply With Quote
Old Jan 26, 2005, 01:20 PM   #6
stoid
macrumors 68040
 
stoid's Avatar
 
Join Date: Feb 2002
Location: So long, and thanks for all the fish!
Quote:
Originally Posted by iJed
If you write your code under Java SDK 1.4 on Mac OS X there should be no problem getting it to compile with Java 5. However the older version of the language lacks some of the features of the new version but this will probably not matter for an introductory programming course.
Actually, you may run into problems. I've heard/read that Jave 1.5/5.0 simplified File IO so no more BufferedReader(new FileReader(File)), just a single level that accesses the file.

As for basic Java development on the Mac, I have found XCode to be like shooting a nuke to kill a fly. For basic Java dev, I would use Eclipse, and for simpe coding take a look at BlueJ. They should both come up if you search for them over at versiontracker or MacUpdate.
stoid is offline   0 Reply With Quote
Old Jan 26, 2005, 01:39 PM   #7
cluthz
macrumors 68040
 
cluthz's Avatar
 
Join Date: Jun 2004
Location: Norway
Send a message via MSN to cluthz
There's acutally many new features that makes Java 5.0 much easier and better than the 1.4.2.
Things like automatic boxing and unboxing makes a huge difference.
Also the new Scanner class is making reading input from a terminal/xterm much easier, this is very important for learning java. The tables are much better too. Static import (oh yeah! never have to type System.out.println...), enum.. etc...
There are many things that makes java much easier to learn, therefore many programming classes have switched to java 5.0.

Also Mac is the only large platform that doesn't have java 5.0..
__________________
-tb
MacBook Air 13" i5 osx10.7.5
HackPro 4.3GHz, 16GB RAM, GTX780GHz Edition, 3x SSD , win7+osx10.9.2
cluthz is offline   0 Reply With Quote
Old Jan 26, 2005, 02:49 PM   #8
ChrisBrightwell
macrumors 68020
 
ChrisBrightwell's Avatar
 
Join Date: Apr 2004
Location: Huntsville, AL
Quote:
Originally Posted by damgpro
Thanks for the info jamdr, guess I'll have to do the work on my PC for class
What are you using that's specific to Java 5? If you're just doing an intro-level course, I doubt there's anything you'd do in 1.4.2 that won't work (or works differently) in 5.

If nothing else, you can use the Apple tools and copy them over to your PC to make sure that they build w/ Java 5. You could also setup a Virtual PC w/ Windows 2000 and test your code that way.

HTH.
__________________
"Simplicity is the ultimate sophistication."
ChrisBrightwell is offline   0 Reply With Quote
Old Jan 26, 2005, 04:59 PM   #9
damgpro
Thread Starter
macrumors member
 
Join Date: Aug 2004
Location: nyc
Send a message via AIM to damgpro Send a message via MSN to damgpro
Thanks for all the suggestions everyone. I'm prolly going to do as ChrisBrightwell stated and write the code on my mac and then compile it on the PC, or perhaps through Virtual PC or remote desktop connection. I found out that the main reason for using Java JDK 5 in my class was for the new scanner class that cluthz mentioned.

Thanks again!
__________________
17" Powerbook 1.5Ghz
1GB DDR RAM | 80GB 5400 RPM Drive | USB 2.0 120GB 7200 RPM | Superdrive | 4G 40GB iPod
rad-ev
damgpro is offline   0 Reply With Quote
Old Jan 27, 2005, 02:59 AM   #10
iJed
macrumors 6502
 
Join Date: Sep 2001
Location: West Sussex, UK
Quote:
Originally Posted by stoid
Actually, you may run into problems. I've heard/read that Jave 1.5/5.0 simplified File IO so no more BufferedReader(new FileReader(File)), just a single level that accesses the file.

As for basic Java development on the Mac, I have found XCode to be like shooting a nuke to kill a fly. For basic Java dev, I would use Eclipse, and for simpe coding take a look at BlueJ. They should both come up if you search for them over at versiontracker or MacUpdate.

BufferedReader/BufferedWriter and FileReader/FileWriter are both still there and have no sign of being deprecated. There would be simply no reason to remove these extremely useful classes.

I find Eclipse to be a much better Java editor than Xcode is. Hopefully Apple is going to make Java a firstclass language with Xcode 2, because just now Xcode is really for C/C++ and Obj-C.
iJed is offline   0 Reply With Quote
Old Jan 27, 2005, 11:46 AM   #11
cluthz
macrumors 68040
 
cluthz's Avatar
 
Join Date: Jun 2004
Location: Norway
Send a message via MSN to cluthz
Quote:
Originally Posted by iJed
BufferedReader/BufferedWriter and FileReader/FileWriter are both still there and have no sign of being deprecated. There would be simply no reason to remove these extremely useful classes.

I find Eclipse to be a much better Java editor than Xcode is. Hopefully Apple is going to make Java a firstclass language with Xcode 2, because just now Xcode is really for C/C++ and Obj-C.
BufferedReader isn't removed, but Scanner will make some things much easier than Buffered reader did.
__________________
-tb
MacBook Air 13" i5 osx10.7.5
HackPro 4.3GHz, 16GB RAM, GTX780GHz Edition, 3x SSD , win7+osx10.9.2
cluthz is offline   0 Reply With Quote
Old Feb 1, 2005, 06:35 PM   #12
MacFan26
macrumors 65816
 
MacFan26's Avatar
 
Join Date: Jan 2003
Location: San Jose, California
Send a message via Yahoo to MacFan26
Quote:
Originally Posted by iJed
I find Eclipse to be a much better Java editor than Xcode is. Hopefully Apple is going to make Java a firstclass language with Xcode 2, because just now Xcode is really for C/C++ and Obj-C.
Oh yeah, definitely Eclipse. I'd even recommend it over NetBeans, which I used to like a lot better. Eclipse isn't the most friendly app, but it's pretty much the same when going back between Mac and PC, which is nice in a school environment where the labs only have PCs...
__________________
15" i7 MacBook Pro antiglare, iPhone 4, 5G black iPod 60GB, iPod shuffle (red), new AppleTV
MacFan26 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Java question brentg33 OS X Mavericks (10.9) 2 Jan 25, 2014 09:42 AM
Java question brentg33 Mac Applications and Mac App Store 4 Aug 5, 2013 04:59 PM
Chrome on OS X -- Java plugin / Java 7 vs Java 6 Issue booyahbooyah Mac Applications and Mac App Store 4 May 31, 2013 09:13 AM
Java SE 7 13 question brentg33 Mac Applications and Mac App Store 1 Feb 2, 2013 12:11 PM
Java question brentg33 Mac Applications and Mac App Store 1 Aug 28, 2012 06:45 PM

Forum Jump

All times are GMT -5. The time now is 10:42 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC