Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save imuchene/9527112 to your computer and use it in GitHub Desktop.
Save imuchene/9527112 to your computer and use it in GitHub Desktop.
1)Enable partner repos, backports repo, restricted repos on the sources list:
sudo vi /etc/apt/sources.list
2) Add the canonical partner repos, then update the sources list:
sudo add-apt-repository "deb http://archive.canonical.com/ maverick partner"
sudo apt-get update
3) Install Sun Java JRE, and set it as the default runtime:
sudo apt-get install sun-java6-jre sun-java6-plugin
sudo update-alternatives --config java [** select the sun java runtime]
[*** In ubuntu 64 bit: sudo apt-get install ia32-sun-java6-bin, and set it as the default runtime.]
4) Download the JME WTK from the oracle site:
https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=sun_java_wireless_toolkit-2.5.2_01b-oth-JPR@CDS-CDS_Developer
5) Make the WTK executable (chmod +x), run the file (./<file_name>), then select:
default java 2 SDK directory: /usr/bin
directory for the java wtk: (default)
product updates: no
5) Install netbeans IDE, lampserver, phpmyadmin:
sudo apt-get install netbeans, lamp-server^, phpmyadmin
6)Configure netbeans with the jme wtk:
1. tools -> plugins:- mark the "Mobility" plugin for installation. Permit netbeans to shutdown and restart.
2. tools -> Java Platforms:- click the "Add Platform" button. Select "Java ME MIDP Platform Emulator" and navigate the file chooser dialog to the directory where you installed the toolkit (e.g. /opt/WTK2.5.2). The toolkit attributes are displayed and you click next and then finish.
7) Configure phpmyadmin:
Should you get a 404 "Not Found" error when you point your browser to the location of phpMyAdmin (such as: http://localhost/phpmyadmin) this is likely caused by not checking the 'Apache 2' selection during installation. To redo the installation run the following:
sudo dpkg-reconfigure -plow phpmyadmin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment