title: F11 doesn't work but ctrl + F11 works, Java Eclipse
body: <p>I have a problem in Eclipse with a specific program I'm trying to run. I added an external library xchart which is basically for creating charts in java. Pressing ctrl+F11 runs the program normally but pressing F11 gives me FileNotFoundException even tho I am pretty sure the path is correct. It is I text file I have put inside the package called HistogramText.txt.</p>
  
  <pre><code>package mainP;
  
  import java.awt.Color;
  import java.io.File;
  import java.io.FileNotFoundException;
  import java.util.*;
  import org.knowm.xchart.CategoryChart;
  import org.knowm.xchart.CategoryChartBuilder;
  import org.knowm.xchart.SwingWrapper;
  import org.knowm.xchart.demo.charts.ExampleChart;
  import org.knowm.xchart.style.Styler.ChartTheme;
  import org.knowm.xchart.style.Styler.LegendPosition;
  
  public class HistogramBarChart implements ExampleChart&lt;CategoryChart&gt; {
  
  public static void main(String[] args) {
  try {
      ExampleChart&lt;CategoryChart&gt; barChart = new HistogramBarChart();
      CategoryChart bchart = barChart.getChart();
      new SwingWrapper&lt;CategoryChart&gt;(bchart).displayChart();
  
  }catch(Exception e) {
  System.out.println("");
  }
      }
  
  private int[] Temp() throws FileNotFoundException {
  
      int num = 0;
      int[] arr = new int[12];
      try {
      File file = new File("src/mainP/HistogramText.txt"); 
  
          Scanner fScan = new Scanner(file);
          while (fScan.hasNext()) {
              num = fScan.nextInt();
              arr[11]++;
              if (num &gt; 100) {
                  arr[10]++;
              }
  
              if (num &gt;= 1 &amp;&amp; num &lt;= 10) { // Adding all the values to array positions 0-9
                  arr[0]++;
              }
  
              if (num &gt;= 11 &amp;&amp; num &lt;= 20) {
                  arr[1]++;
              }
  
              if (num &gt;= 21 &amp;&amp; num &lt;= 30) {
                  arr[2]++;
              }
  
              if (num &gt;= 31 &amp;&amp; num &lt;= 40) {
                  arr[3]++;
              }
  
              if (num &gt;= 41 &amp;&amp; num &lt;= 50) {
                  arr[4]++;
              }
  
              if (num &gt;= 51 &amp;&amp; num &lt;= 60) {
                  arr[5]++;
              }
  
              if (num &gt;= 61 &amp;&amp; num &lt;= 70) {
                  arr[6]++;
              }
  
              if (num &gt;= 71 &amp;&amp; num &lt;= 80) {
                  arr[7]++;
              }
  
              if (num &gt;= 81 &amp;&amp; num &lt;= 90) {
                  arr[8]++;
              }
  
              if (num &gt;= 91 &amp;&amp; num &lt;= 100) {
                  arr[9]++;
              }
          }
  
          fScan.close();
      } catch (FileNotFoundException e) {
          System.out.println("Lmao");
      }
  
      return arr;
  }
  
  public CategoryChart getChart() {
      int[] arr;
          try {
              arr = Temp();
  
  
      // Create Chart
      CategoryChart chart = new CategoryChartBuilder().width(800).height(600).title("Histogram Bar Chart")
              .xAxisTitle("Range").yAxisTitle("Numbers").theme(ChartTheme.GGPlot2).build();
  
      // Customize Chart
      chart.getStyler().setLegendPosition(LegendPosition.InsideNW);
      chart.getStyler().setHasAnnotations(true);
      chart.getStyler().setChartFontColor(Color.black);
  
      // Series
      chart.addSeries("Numbers in HistrogramText",
              Arrays.asList(new String[] { "1 - 10", "11 - 20", "21 - 30", "31 - 40", "41 - 50", "51 - 60", "61 - 70",
                      "71 - 80", "81 - 90", "91 - 100", "100+", "All numbers" }),
              Arrays.asList(new Integer[] { arr[0], arr[1], arr[2], arr[3], arr[4], arr[5], arr[6], arr[7], arr[8],
                      arr[9], arr[10], arr[11] }));
  
      return chart;
          } catch (FileNotFoundException e) {
              e.printStackTrace();
              return null;
          }
  
  }
  
  }
  </code></pre>
  
  <p>This is pretty much the code. The external Libraries are xchart-3.5.0.jar and xchart-demo-3.5.0.jar </p>
  
  <pre><code>Thread [main] (Suspended (exception FileNotFoundException)) 
  FileInputStream.open0(String) line: not available [native method]   
  FileInputStream.open(String) line: not available    
  FileInputStream.&lt;init&gt;(File) line: not available    
  Toolkit$1.run() line: not available 
  Toolkit$1.run() line: not available 
  AccessController.doPrivileged(PrivilegedAction&lt;T&gt;) line: not available 
  [native method] 
  Toolkit.initAssistiveTechnologies() line: not available 
  Toolkit.&lt;clinit&gt;() line: not available  
  Font.&lt;clinit&gt;() line: not available 
  AbstractBaseTheme.&lt;clinit&gt;() line: 39   
  Styler$ChartTheme.newInstance(Styler$ChartTheme) line: 51   
  CategoryChart.&lt;init&gt;(int, int, Styler$ChartTheme) line: 79  
  CategoryChart.&lt;init&gt;(CategoryChartBuilder) line: 89 
  CategoryChartBuilder.build() line: 53   
  HistogramBarChart.getChart() line: 101  
  HistogramBarChart.getChart() line: 1    
  HistogramBarChart.main(String[]) line: 20   
  </code></pre>
  
  <p>And this is the error I get when I run with F11. I'm quite new at programming so some help would be appreciated :D</p>