aspose file tools*
The moose likes Beginning Java and the fly likes Two versions of java on same system ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Two versions of java on same system ?" Watch "Two versions of java on same system ?" New topic
Author

Two versions of java on same system ?

Shaan patil
Ranch Hand

Joined: Dec 22, 2007
Posts: 58
Hi Ranchites,

I came across a error saying two version of Two versions of java installed on your Os .

What exactly is the description of the error ?

Regards


"You cannot change the truth but truth can change you "
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

I've never seen that error. What OS and is that the error exactly? If not, copy it word for word so we can get a better idea.


GenRocket - Experts at Building Test Data
Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 689

On my Mac, it comes with several versions of Java installed, one of which is the default version. So I know that it is possible to have more than one version of Java installed on a Mac. I'm sure a PC should be able to do that too.

Shaan patil
Ranch Hand

Joined: Dec 22, 2007
Posts: 58
HI , I was installing BlueJ development tool. At the end of installation processit was giving the error.

There are two versions are Java in your system

Regards
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14102
    
  16

It's perfectly possible to install different versions of Java on the same system, so that should not be an error. I have Java 5 and 6 installed on my computer.

Maybe you have to configure BlueJ to tell it which version of Java to use. Maybe it wasn't an error at all, but just a warning to remind you that you have to watch out which Java version is being used. I don't know BlueJ, so I can't really answer that question.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38334
    
  23
I think that particular message is normal behaviour for BlueJ, although I haven't seen it for a long time. I have vague memories of seeing it over 3 years ago when I started using BlueJ, so I might be mistaken. I seem to remember it is follow by a dialogue box asking one to choose which version of Java to use.
Kaydell Leavitt
Ranch Hand

Joined: Nov 18, 2006
Posts: 689

My opinion of BlueJ is that it does way too much "hand-holding". For example, when I first tried it, I knew a little bit about Java. I knew that it was good to always put a package declaration at the beginning of every Java source file. This was one of many problems that BlueJ caused me. BlueJ would not let me type in Java source code myself. I had to go to a pull-down menu in BlueJ and have it type the package declaration in form me.

BlueJ is meant for people who know absolutely nothing about Java and much of what you do in BlueJ is not learning Java, but learning the BlueJ IDE. This is also true of other IDEs. In my opinion, you should first learn Java from the command line -- that is using no IDE, and then use a real-world IDE like Eclipse that is actually used in the workplace.

If you're taking a beginning Java programming class that requires the use of BlueJ, look for things in the UI and notice what BlueJ does in the source code. The thing to remember is the Java source code. At some point, a professional Java developer would graduate from BlueJ into a professional IDE (such as Eclipse).
[ January 07, 2008: Message edited by: Kaydell Leavitt ]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38334
    
  23
Agree with Kaydell Leavitt. I had no end of problems when I started with BlueJ; I had to graduate from BlueJ to command line to JCreatorLE (which I used as a glorified text editor) and then to Eclipse and NetBeans.
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

Kaydell has this thing very right. I have NOT used BlueJ at all. But i have used eclipse, netbeans, JDeveloper, EditPlus, TextPad, Notepad, Notepad++.

The first 3 stand for an IDE and the rest stand for an editor.

Yes, i still use the editors for small java programs and command line to manually compile and run my programs . I love that way which always help me for my continuous learning.


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Two versions of java on same system ?