Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBuilder Installation and JDK Clash

 
Jas Oberai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
I had JDK 1.5 installed,and everything was working fine till i installed JBuilder2005,and now when i try to run my programs they thow this error:

I uninstalled it,and they started working fine ..now I again installed it and they stopped even after deleting the registry values set by Jbuilder and confuguring JDK settings in jBuilder.Please help me Guys.
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might ask this again at:
http://www.coderanch.com/forums/f-12/vc
for better help on IDE issues.

Nick
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just change the default JVM back to your 1.5 installation.
I normally hack such changes directly into the registry, but the Java control panel applet may work as well.
 
Jas Oberai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks friends,
Making changes to the registry worked..i just changed the current verison to 1.5 from 1.4 and deleted the 1.4 entries.
Cheers!!!
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should have kept the 1.4 entries. They're harmless and allow switching your default JVM to a 1.4 if needed for testing

Good to see JB still works without them though
 
Jas Oberai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks ....but I have deleted them now.I have one more question to ask here friends.Now when I compile my programs in JBuilder...it's using JDK1.4.Even though,i have configured tools->JDK->settings to JDK1.5.Please tell me how can i make my programs be compiled using JDK1.5 from inside JBuilder.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just tell JBuilder to compile against 1.5.

Project->Project Properties->JDK
Click Add... to add the 1.5 JDK if it's not already there and follow the instructions.
Then just select that JDK to be used for the project.

You will also want to set up the project to actually use the new language features under Build->Java->Language Features and Build->Java->Target VM in the project properties dialog.

P.S. if you do this for the default project properties all new projects will be set up for 1.5 automatically
[ April 08, 2005: Message edited by: Jeroen Wenting ]
 
Jas Oberai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Joreon,
Can you just recheck this,after I made changes to them as per your guidelines:

Cheers!!
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to IDEs...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic