Skip to content
Browse files

Properly create Java projects. Reference the JRE container, instead o…

…f adding individual libraries.
  • Loading branch information...
1 parent 340526f commit 5b5b69fa7f8a689f0e364e673074bfce75b213ab @dragos dragos committed Sep 2, 2012
View
5 org.scala-ide.sdt.core.tests/src/scala/tools/eclipse/EclipseUserSimulator.scala
@@ -34,10 +34,7 @@ class EclipseUserSimulator {
javaProject.setOutputLocation(new Path("/" + projectName + "/bin"), null);
var entries = new ArrayBuffer[IClasspathEntry]();
- val vmInstall = JavaRuntime.getDefaultVMInstall();
- val locations = JavaRuntime.getLibraryLocations(vmInstall);
- for (element <- locations)
- entries += JavaCore.newLibraryEntry(element.getSystemLibraryPath(), null, null);
+ entries += JavaRuntime.getDefaultJREContainerEntry()
if (withSourceRoot) {
val sourceFolder = project.getFolder("/src");

0 comments on commit 5b5b69f

Please sign in to comment.
Something went wrong with that request. Please try again.