You are not logged in.

#1 2009-01-19 13:58:30

MetalheadGautham
Member
From: Bangalore, India
Registered: 2008-07-27
Posts: 143
Website

JAVA: openjdk6 vs jre

This is a question which has been bugging me for a long time.

WHAT EXACTLY DOES JRE OFFER WHICH NEEDS PEOPLE TO INSTALL IT INSTEAD OF OPENJDK6 ?

I currently have jre installed, but I want to install openjdk6. Please advice me.

Also, in the last week of may, I am joining programming classes in Core Java where they teach via Eclipse. Would the programming experience be the same with both the packages ?

And yeah, jre is *just* jre, but openjdk6 is openjdk6 (note the bolded part). If the 7th version comes out, will I need a manual removal of openjdk6 to install openjdk7 ?

Offline

#2 2009-01-19 14:50:19

X/ax
Member
From: Oost vlaanderen, Belgium
Registered: 2008-01-13
Posts: 275
Website

Re: JAVA: openjdk6 vs jre

If the classes in may you are going to attend are nothing more than basics (with all means what basics is, just console programs going towards the extend of programming calculators etc...), you should be fine with any java library (I did my first java year with the ibm java package)

As of the update part, you won't need to manually remove the 6 version, provided you install it with pacman (or yaourt perhaps), point is, as long as you are within the package manager, you'll be fine on update...


My coding blog (or an attempt at it)
Archer start page (or an attempt at it)

Offline

#3 2009-01-19 18:45:25

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: JAVA: openjdk6 vs jre

Well, in my experience if you are dealing with more advanced programs they most probably expect jre to be installed, not openjdk and some things will not work properly if you don't have jre. At best you will get errors but the program will still kind of work or if you are unlucky the program will just spit out cryptic error messages and leave you scratching your head.
Just my 5 cents.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2009-01-19 19:04:00

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: JAVA: openjdk6 vs jre

R00KIE wrote:

... and some things will not work properly if you don't have jre...

This is the best point of all. OpenJDK is not 100% compatible with code written for the JRE, particularly when it comes to applets. The current beta for Java/JRE 6u12 b3 is working better for my limited uses than OpenJDK was, and the final will be released next month. Early in your Java education, I'd stick with releases as opposed to development branches.

Offline

#5 2009-01-19 19:10:51

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: JAVA: openjdk6 vs jre

Yeah, sadly, the only thing is use java for these days (and it's still very occasionally) is a poker game running as a java applet (pokerroom.com), and it only works with jre. No luck with openjdk.
Though I would still always try openjdk6 first, just to see if it works smile


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#6 2009-01-21 23:57:45

MetalheadGautham
Member
From: Bangalore, India
Registered: 2008-07-27
Posts: 143
Website

Re: JAVA: openjdk6 vs jre

And for 64bit users ?
I plan to migrate to 64bit around the same time I take up Java lessons.

Offline

#7 2009-01-22 02:23:58

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: JAVA: openjdk6 vs jre

MetalheadGautham wrote:

And for 64bit users ?

jre_beta from the AUR gets you a working java environment AND working native java plugin for 64 bit smile  Works great! No problems here so far!

Scott

Offline

#8 2009-01-22 04:12:32

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: JAVA: openjdk6 vs jre

MetalheadGautham wrote:

WHAT EXACTLY DOES JRE OFFER WHICH NEEDS PEOPLE TO INSTALL IT INSTEAD OF OPENJDK6 ?

AN ACTUALLY WORKING JAVA APPLET SO THAT I CAN USE MY NETBANK.

<click>Somewhat relevant picture</click>


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#9 2009-01-22 04:15:14

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: JAVA: openjdk6 vs jre

I will +1 what R00KIE said. _Basic_ Java will be perfectly fine in OpenJDK, but once you get more advanced things could be different, and it's not worth the risk. I also am taking Java courses (sadly, it's the only high-school programming course offered, even in AP) with Eclipse.

Last edited by Ranguvar (2009-01-22 04:17:28)

Offline

#10 2009-01-22 13:18:48

MetalheadGautham
Member
From: Bangalore, India
Registered: 2008-07-27
Posts: 143
Website

Re: JAVA: openjdk6 vs jre

Thanks for your inputs.

When can I expect OpenJDK to become 100% compatible with JRE ?
And yeah, whats IcedTea ?

offtopic: Which is lighter ? Eclipse or NetBeans ? And can I use Geany for basic java ? My rig is quite weak.

Offline

#11 2009-01-22 15:07:32

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: JAVA: openjdk6 vs jre

MetalheadGautham wrote:

And yeah, whats IcedTea ?

IcedTea is OpenJDK now. IcedTea was its name in the early stages when GNU Classpath and Sun's Java were merging. OpenJDK is going to remain the development branch for Java now.

Offline

#12 2009-01-24 03:16:11

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: JAVA: openjdk6 vs jre

MetalheadGautham wrote:

Thanks for your inputs.

When can I expect OpenJDK to become 100% compatible with JRE ?
And yeah, whats IcedTea ?

offtopic: Which is lighter ? Eclipse or NetBeans ? And can I use Geany for basic java ? My rig is quite weak.

You want Java on a weak machine? Not just using it, but working with it, too?

Alright, tongue-in-cheek jokes aside tongue Geany can be used, or so a little birdie (Google) told me. Well, you don't even need an IDE really... though it helps when the language of choice has a really freaking massive standard library, like Java.

Eclipse and Netbeans are both written in Java, so I would just try both and see.

Offline

#13 2009-01-28 17:49:31

MetalheadGautham
Member
From: Bangalore, India
Registered: 2008-07-27
Posts: 143
Website

Re: JAVA: openjdk6 vs jre

Geany works ? Thats great then. I already use it for C and C++ and also for learning Python.
Its really awesome because it supports different languages.

But I am talking about later stages, when I may need GUI development, etc.

My configuration is:

Intel Pentium 4 Processor 506 (2.66Ghz, 1MB L2 Cache)
Symtronics 256MB DDR1 400Mhz RAM
Intel GMA 900 Graphics Accelerator
Seagate Baracuda 80GB PATA HardDisc.

I am buying another GB of RAM somewhere on May 2009.

Offline

#14 2009-01-28 18:31:06

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: JAVA: openjdk6 vs jre

MetalheadGautham wrote:

... But I am talking about later stages, when I may need GUI development, etc.

What about simply learning something like Vim? It handles every language and is very well supported. It may seem like more work to make GUI initially, but I'm confident that it's more efficient once one's understanding is in place.

Offline

#15 2009-01-28 21:20:34

MetalheadGautham
Member
From: Bangalore, India
Registered: 2008-07-27
Posts: 143
Website

Re: JAVA: openjdk6 vs jre

skottish wrote:
MetalheadGautham wrote:

... But I am talking about later stages, when I may need GUI development, etc.

What about simply learning something like Vim? It handles every language and is very well supported. It may seem like more work to make GUI initially, but I'm confident that it's more efficient once one's understanding is in place.

I am uncomfortable with the idea of commandline IDEs. While I am a lover of nano when it comes to editing configuration files, I am still afraid to use Vim.

Offline

#16 2009-01-29 00:38:57

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: JAVA: openjdk6 vs jre

MetalheadGautham wrote:
skottish wrote:
MetalheadGautham wrote:

... But I am talking about later stages, when I may need GUI development, etc.

What about simply learning something like Vim? It handles every language and is very well supported. It may seem like more work to make GUI initially, but I'm confident that it's more efficient once one's understanding is in place.

I am uncomfortable with the idea of commandline IDEs. While I am a lover of nano when it comes to editing configuration files, I am still afraid to use Vim.

Don't be afraid smile

And you can use GVim for a graphical Vim...

Once you see how fast and powerful CLI apps can be, you'll be fine wink

Offline

#17 2009-01-29 03:35:11

MetalheadGautham
Member
From: Bangalore, India
Registered: 2008-07-27
Posts: 143
Website

Re: JAVA: openjdk6 vs jre

I never understood HOW I can use vim. How can I rely on only keyboard in an IDE ?
Will I get the block collapse feature I get in Geany ?
And does it have controls for invoking the compiler ?

PS: I have a friend who is much junior to me as far as linux usage is concerned, but he says that 3 hours with vim made him think that its the bestest best thing in the world. Says that it enhances productivity a lot.

Offline

#18 2009-01-29 04:11:38

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: JAVA: openjdk6 vs jre

MetalheadGautham wrote:

I never understood HOW I can use vim. How can I rely on only keyboard in an IDE ?
Will I get the block collapse feature I get in Geany ?
And does it have controls for invoking the compiler ?

Yes, Vim does do code folding, as well as has complete control over compilers. The latter is a combination of having both a powerful internal scripting engine, as well as can call any external command.

One hurdle that you'll have to get over going from Geany to Vim is appearance. Geany is very aesthetically pleasing. gVim at it's best looks nowhere near as nice. I'm using Vim in urxvt. It took some getting use to.

MetalheadGautham wrote:

PS: I have a friend who is much junior to me as far as linux usage is concerned, but he says that 3 hours with vim made him think that its the bestest best thing in the world. Says that it enhances productivity a lot.

It took me three weeks before I was reasonably happy with my .vimrc file! There's a learning curve, but it will become obvious very quickly just how efficient it is.

Offline

#19 2009-01-29 04:22:00

MetalheadGautham
Member
From: Bangalore, India
Registered: 2008-07-27
Posts: 143
Website

Re: JAVA: openjdk6 vs jre

Wait a sec, is gvim a GUI app ?

Offline

#20 2009-01-29 04:28:44

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: JAVA: openjdk6 vs jre

MetalheadGautham wrote:

Wait a sec, is gvim a GUI app ?

Yes, but it's not fancy like some of the other IDE.

Offline

#21 2009-01-29 04:44:43

MetalheadGautham
Member
From: Bangalore, India
Registered: 2008-07-27
Posts: 143
Website

Re: JAVA: openjdk6 vs jre

And dependencies ? Does it need gnome or some other bulky library ?

Offline

#22 2009-01-29 04:50:03

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: JAVA: openjdk6 vs jre

MetalheadGautham wrote:

And dependencies ? Does it need gnome or some other bulky library ?

gVim doesn't add much more than Vim. But, Vim as Arch has it set up requires Ruby, Perl, and Python. The total install is a bit large if you don't already use those languages.

Offline

#23 2009-01-29 05:10:03

MetalheadGautham
Member
From: Bangalore, India
Registered: 2008-07-27
Posts: 143
Website

Re: JAVA: openjdk6 vs jre

I HAD to install perl because I use powerpill, while I am trying to learn python. That puts ruby as the only thing I need to install.

Offline

#24 2009-01-29 05:15:28

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: JAVA: openjdk6 vs jre

When I installed Vim, Ruby was the only one that I didn't have. Ruby plus termcap-compat (the only dependency that I didn't already have) came in around 60MB installed. You really don't have much more to get.

Offline

#25 2009-01-29 05:33:58

MetalheadGautham
Member
From: Bangalore, India
Registered: 2008-07-27
Posts: 143
Website

Re: JAVA: openjdk6 vs jre

But, WHATS the system requirements of NetBeans and Eclipse ? Can I actually run them ?

Offline

Board footer

Powered by FluxBB