Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Java 1.6/1.7 on Macintosh(Trouble running Eclipse with Java 1.7)
Java 1.6/1.7 on Macintosh [message #1332801] Sun, 04 May 2014 20:59 Go to next message
Paul Heiney is currently offline Paul HeineyFriend
Messages: 6
Registered: November 2012
Junior Member
I have a project that has been running successfully for quite a while on Java 1.6.
I am now porting it to Java 1.7 and, not surprisingly, encountering a few bugs. I am using Eclipse on Macintosh as my development platform. I can create a project that runs on 1.7 by exporting a runnable jar and building the application using Macintosh tools. To make sure the project uses Java 1.7, I use
Preferences->Java->Installed JRE's->Execution environment
However, I can't seem to get to change the version of Java that Eclipse uses to change from 1.6--if I use the green "Run" button it always seems to run on Java 1.6.0_65. This makes it hard to debug the 1.7-specific errors. Any suggestions on the best way way to proceed?

Thanks,
Paul
Re: Java 1.6/1.7 on Macintosh [message #1332817 is a reply to message #1332801] Sun, 04 May 2014 21:10 Go to previous messageGo to next message
Nikolay Metchev is currently offline Nikolay MetchevFriend
Messages: 15
Registered: July 2009
Junior Member
Sounds like the launch configurations you have are configured to run with a 1.6 JDK/JRE. You should select run... and edit the VM settings for the particular launch configuration you are running.
Re: Java 1.6/1.7 on Macintosh [message #1332840 is a reply to message #1332817] Sun, 04 May 2014 21:20 Go to previous messageGo to next message
Paul Heiney is currently offline Paul HeineyFriend
Messages: 6
Registered: November 2012
Junior Member
Nikolay,

Thanks for the rapid reply! I'm not sure I understand your instruction. I selected
Run/debug -> Launching-> Launch configuration
But I don't see any way there to edit the VM for a launch configuration.

Paul
Re: Java 1.6/1.7 on Macintosh [message #1332841 is a reply to message #1332840] Sun, 04 May 2014 21:23 Go to previous messageGo to next message
Nikolay Metchev is currently offline Nikolay MetchevFriend
Messages: 15
Registered: July 2009
Junior Member
Hopefully this link helps:
http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-choose_config_jre.htm
Re: Java 1.6/1.7 on Macintosh [message #1332870 is a reply to message #1332841] Sun, 04 May 2014 21:41 Go to previous message
Paul Heiney is currently offline Paul HeineyFriend
Messages: 6
Registered: November 2012
Junior Member
Perfect, that's exactly the information I needed. Smile

Paul
Previous Topic:Arquillian/JUnit Fails to Run in JBoss Tools Generated Project in Eclipse
Next Topic:There are no JREs installed in the workspace?
Goto Forum:
  


Current Time: Tue May 28 14:03:15 GMT 2024

Powered by FUDForum. Page generated in 0.03684 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top