Example: Call Java code from Epsilon


  • CreateJFrame.eol
  • Get it!
var frame := new Native('javax.swing.JFrame');
frame.setBounds(100,100,200,200);
frame.title := 'Opened from EOL';
frame.visible := true;

There are two ways to get the code of this example:

  1. download the following zip archive(s), extract them and import them as new Eclipse projects
  2. or check out the code from the SVN
    • go to the SVN repository
    • navigate to trunk/examples
    • check out the org.eclipse.epsilon.examples.calljava project

Once you have checked out/imported the code, to run the example you need to go through the following steps:

  1. right click the .launch file in the org.eclipse.epsilon.examples.calljava project
  2. select Run as... and click the first item in the menu that pops up