Exporting Runnable Jar from project for Wiznet Configuration Tool

Introduction

This post introduces how to create runnable file from Wiznet github project. This configuration tool provides 2 ways to configure our product in GUI mode and Console mode, so users can choose a way depending on their convenience.

 

Project file(Github)

 

https://github.com/Wiznet/WIZnet_Configuration_Tool

 

Exporting project file

  1. Choose project on Project Browser and click right-button of mouse
  2. Select [Export]-[Java]-[Runnable JAR file]

1

3. In Launch configuration choose WIZnet_Configuration_Tool and designate exported   file path.

2

Handling with Project ‘configuration_tool’ is missing required library Error

When this project is imported and builded, following error might occur

3

This error occurs because Library path is set as absolute path in Eclipse, so this error can be solved following way. (This solution will be updated later)

  1. Select [x]-marked library and click [Edit] button
  2. Select corresponding library in your [Eclipse installed path]\plugins folder(Versions might be different depending on your develop environment)

45

 

Setup Window Builder for Java GUI

Wiznet Configuration tool is based on Java GUI Tool,Window Builder, so you need to install to make use of our source code.

  1. open eclipse.org/windowbuilder
  2. move to the Download page

6

3.On the red-squared area, click the download link site(Update Site), which suitable your Eclipse version.(Integration Version might be unstable, so choose Release Version)

7

4.When you click the link, a page below will show up (in this post I clicked “4.3(Kelper)”

8

5.Follow the instructions on the page, then plug-in will be installed.

6.Run Eclipse and select “Help -> Install New Software..”

9

7.In the pop-up window, clink [Add…] button and “Add Repository” window shows up.

10

8.In “Add Repository” window, enter arbitrary name in “Name” box, and copy and paste the address of the update site in “Location” box. (refer to red-squared box in following picture)

11

9.When “OK” button clicked, following contents will show up. Here, click “Select All” and “Next>” buttons

12

10.Items to be installed will show up. Confirm and click “Next >” button.

13

11.Accept the term and the license agreement. Click “Finish” button.

14

12.Installing will start

15

13. After finishing click “Yes” button and restart Eclipse.16

14.After restarting Eclipse, to activate Window Builder click 1. [Window -> Show Toolbar] and [Maximizing button] on upper right side.

17

 

 

 

 

 

 

Advertisements

Install Eclipse and Compiler for STM32 with W5500 on Linux

This installation was done on Debian Wheezy

Contents Installation and Configuration of

  • Build Essential
  • GNU GCC ARM Embedded tool chain
  • Oracle Java SE
  • Eclipse
  • GNU ARM Eclipse Plugins

Tool Chain – Install Build Essential

First you have to install the essential tool chain. Go to a root terminal,e.g., with “su” and do the following:

root@kallisto:~# apt-get update && apt-get install build-essential

Tool Chain – Install GCC ARM Embedded GNU

Go to https://launchpad.net/gcc-arm-embedded and download the latest “Linux installation tarball”. Then extract it. Most likely your filename will not be exactly gcc-arm-none-eabi-4_9-2014q4-20141203-linux.tar.bz2 but a little bit different – so adjust this command line to name of the downloaded one.
root@kallisto:/home/tw/Downloads# mkdir /usr/local/arm && tar xjvf gcc-arm-none-eabi-4_9-2014q4-20141203-linux.tar.bz2 -C /usr/local/arm

If you want to have it available for you users without the need for absolute pathes you can symbolic link it to the folder /usr/local/bin

root@kallisto:~# ln -s /usr/local/arm/gcc-arm-none-eabi-4_9-2014q4/bin/arm-none-eabi-* /usr/local/bin/

If you like, you can check this from the user account:

gccversion

JAVA SE Installation

There are no Oracle Java SDK repositories for Debian Wheezy, but you can add the ubuntu repository.

root@kallisto:~# echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" >> /etc/apt/sources.list && echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" >> /etc/apt/sources.list && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886

then install Oracle JAVA 8 after updating the repository:

root@kallisto:~# apt-get update && apt-get install oracle-java8-installer

If you like, you can check this from the user account:

Bildschirmfoto vom 2015-03-18 11:18:53

Eclipse Installation

First go to  http://eclipse.org/downloads/ and download the latest Version of “Eclipse IDE for C / C ++ Developers” – depending on the Java Version you installed you should go for 32bit or 64bit. As my Java is 64bit I’ll go for 64bit.

Bildschirmfoto vom 2015-03-18 11:29:22

Now extract eclipse:

root@kallisto:/home/tw/Downloads# tar xzvf eclipse-cpp-luna-SR2-linux-gtk-x86_64.tar.gz -C /usr/local/

Bildschirmfoto vom 2015-03-18 12:40:48

On my Debian Wheezy Eclipse Luna crashed during start (https://bugs.eclipse.org/bugs/show_bug.cgi?id=430736) . So in case your eclipse doesn’t start either you also have to execute “export SWT_GTK3=0” before the start of eclipse. You can make this persistent with:

tw@kallisto:~$ echo "export SWT_GTK3=0" >> ~/.profile

GNU ARM Eclipse Plugins

On the eclipse IDE, go to the Menu line and select  “Help” -> “Install New Software”. The following window will appear, where you have to click “Add”.

Bildschirmfoto vom 2015-03-18 12:56:37

There you have to enter the following data.
Name: GNU ARM Eclipse Plugins
Location: http://gnuarmeclipse.sourceforge.net/updates

On the next page, just select “GNU ARM C/C++ Cross Development Tools” and after some “Next” and “Finish” clicks the installation is finished.